Re: Issue with Java 3D under OpenJDK 7 / Mac OS X
Posted by
InteractiveMesh on
Jan 19, 2013; 2:36pm
URL: https://forum.jogamp.org/Issue-with-Java-3D-under-OpenJDK-7-Mac-OS-X-tp4025259p4027942.html
Sorry for remaining silent for such a long time.
I struggled with issues caused by textures. JOGL's FBObject is using a texture as offscreen render target which name/ID is generated by OpenGL, but Java 3D creates its own texture IDs. The ID '1' is used by both for different textures. This results in not really funny rendering. So, I'm going to adapt the texture ID generation in Java 3D.
A Java 3D compliant capability chooser is now implemented. But GraphicsConfigTemplate3D still doesn't allow to set the number of samples for scene antialiasing and JCanvas3D still disables double buffering.
It seems that the resizing issue is fixed.
Offscreen rendering is now based on FBO with MSAA support. Pbuffer (deprecated on Mac) will be used if FBO is not supported (unlikely on 10.7+ with dedicated graphics card). Mac OS X doesn't support MSAA for pbuffers on AMD cards without a workaround.
Most critical: Mac/Oracle JRE/JOGL's x/y-positioning and z-ordering issues, see
http://forum.jogamp.org/Mac-OS-X-10-7-Oracle-JRE-7-Swing-integration-issues-td4027780.html . Java 3D's Canvas3D is affected accordingly. A workaround for the x/y-positioning might be to change the size of the Canvas3D or its parent after the Canvas3D is added and visible.
August