Posted by snowstm
on July 9, 2004 at 12:03 PM PDT
FYI: JOGL code can be used within the Java3D environment.
After the Canvas3D environment has been created, add the following to create a JOGL environment:
WindowsOnscreenGLContext wgl = new WindowsOnscreenGLContext( this, new GLCapabilities(), null, null );
GL gl = wgl.getGL();
Now use gl in either/or preRender or postRender with the OpenGL commands you want to display either before the scene graph or after the scene graph. Great for display only elements using JOGL capabilities.
I have only begun testing this capability, however so far it works perfectly, and should work with similar commands for Linux and MacOS as well. Do not use any of the context code as that will likely fail, it uses the current OpenGL context already set by Java3D.
I am using it for a head up display over a Java3D scene graph.