Summary: | Nearer objects show up behind closer objects | ||
---|---|---|---|
Product: | [JogAmp] Jogl | Reporter: | Wyatt <wspear> |
Component: | core | Assignee: | Sven Gothel <sgothel> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | sgothel |
Priority: | --- | ||
Version: | 2.3.0 | ||
Hardware: | pc_all | ||
OS: | linux | ||
Type: | --- | SCM Refs: | |
Workaround: | --- | ||
Attachments: |
Small program demonstrates this bug
Simplified test program |
Description
Wyatt
2014-01-04 01:55:53 CET
Created attachment 572 [details]
Simplified test program
This is a significantly simplified code base for the test case. You can zoom in and out with the mouse wheel to make the incorrectly overlapping spheres more obvious. The majority of the rendering and control of rotation and zooming of the scene takes place in VisRenderer.java.
This simplified test also displays a problem I had encountered earlier in my JOGL upgrade process but thought had been fixed with an update. When dragging the application from one monitor to another (on a dual monitor setup with Ubuntu running their default Nouveau drivers) the window sticks to the edge of the new monitor. That behavior in itself is ok, but at the same time the rendered scene goes blank and does not return.
Wyat, I just downloaded your code and compiled it w/ 2.2.1 (did the little patch getWidth() -> getSurfaceWidth(), etc. I fail to see the issue, sorry. Either my 3D vision is insufficient (no lighting, all red balls) or it doesn't show up here. I dumped the requested/chosen GLCaps in your GLEL: Requested: GLCaps[rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, stereo, hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]] Chosen : GLCaps[glx vid 0x29, fbc 0x111: rgba 8/8/8/0, opaque, accum-rgba 16/16/16/16, dp/st/ms 24/0/0, one, mono , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]] So depth 24 bits should be fine and I see that you do enable 'gl.glEnable(GL.GL_DEPTH_TEST)'. Maybe you can attach an OK picture and an ERROR picture. Or is the issue already solved ? closing due to lack of reply and not able to reproduce. pls reopen if bug still exists and offering more collaboration to fix the issue. |