Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
This post was updated on Jul 09, 2015; 9:58am.
I'm having some problems using Graph API text rendering in my project so I tried running the tests from jogl-tests. All JUnit tests pass ok, but some output screenshots are blank.
Test 1: TestTextRendererNEWT00 runs ok, shows the text. Test 2: TestTextRendererNEWT01 doesn't show any text, only white screen. Test 3: TestTextRendererNEWT10 runs ok, shows the text. Test 4: TestRegionRendererNEWT01 doesn't show anything, only white screen. What I did next: 1. Removing gl.glEnable(GL.GL_DEPTH_TEST); from Test 2 init() method makes that test work ok, text is shown - so I assume depth test is the problem. 2. Adding gl.glEnable(GL.GL_DEPTH_TEST); to Test 3 makes the text dissappear -> expected. 3. Adding gl.glEnable(GL.GL_DEPTH_TEST); to Test 1 doesn't do anything - the text is rendered normally. This part is really weird. 4. Adding gl.glDisable(GL.GL_DEPTH_TEST); to Test 4 makes the test work, the shapes are rendered. The weird part is that depth test was never enabled in the original code. So I guess something is being done right in Test 1 because I can't break it. :) I can't tell looking at the source what is the problem with other tests. The problem I'm having in my application - I can't use VBAA or MSAA with my text renderer, event though it works ok in Test 1. Using textRenderUtil = new TextRegionUtil(0); works ok, looks the same with any sampleCount. Using textRenderUtil = new TextRegionUtil(Region.VBAA_RENDERING_BIT); or textRenderUtil = new TextRegionUtil(Region.MSAA_RENDERING_BIT); doesn't work, no text is shown, no matter which sampleCount is chosen. I tried disabling depth test but nothing changes. I guess explaining the problems with the tests above might help me with my problem. Any ideas? |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I realized what was missing in my application - vp_width and vp_height for renderer were both set to 0. I had to call renderer.reshapeNotify(width, height); inside my GLEventListener reshape() to set it.
The problems with all of the above tests and GL_DEPTH_TEST still persist. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
In reply to this post by asambol
I have created bug reports:
- existing tests not giving expected results: https://jogamp.org/bugzilla/show_bug.cgi?id=1229 - not possible to change glBlendFunc: https://jogamp.org/bugzilla/show_bug.cgi?id=1228 - existing tests not working if glEnable(GL.GL_CULL_FACE): https://jogamp.org/bugzilla/show_bug.cgi?id=1230 ![]() |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
On 09/23/2015 02:43 PM, asambol [via jogamp] wrote:
> I have created bug reports: > - existing tests not giving expected results: > https://jogamp.org/bugzilla/show_bug.cgi?id=1229 > - not possible to change glBlendFunc: > https://jogamp.org/bugzilla/show_bug.cgi?id=1228 > - existing tests not working if glEnable(GL.GL_CULL_FACE): > https://jogamp.org/bugzilla/show_bug.cgi?id=1230 Just saw that, KUDOS! Will tackle this this week. ~Sven |
Free forum by Nabble | Edit this page |