Login  Register

Re: Looking for working Ardor3d example...

Posted by Clint on Jan 12, 2016; 8:06pm
URL: https://forum.jogamp.org/Looking-for-working-Ardor3d-example-tp4032279p4036000.html

But the problem I'm having is probably the one he was having.  That is, in this section of the code:

            final JoglContextCapabilities caps = new JoglContextCapabilities(dc.getGL(), new DirectNioBuffersSet());
            final RenderContext rc = new RenderContext(dc.getGLContext(), caps);

WorldWind's DrawContext (the dc variable) provides a getGL() method, which is what was passed into the JoglContextCapabilities constructor for version 1.0.  This gives you a javax.media.opengl.GL, but the constructor is expecting com.jogamp.opengl.GL.

Also, I'm not really sure what "new DirectNioBufferSet()" is providing or whether this will work in my application.  But one problem at a time...

I'm using WorldWind 2.0 (uses jogl 2.0) and the ardor3d that has been ported to jogl 2.0.

Also, thank you so much for responding and helping!!!