Login  Register

Re: WWJ - JME3 - JOGL2

Posted by gouessej on Aug 22, 2013; 1:17pm
URL: https://forum.jogamp.org/WWJ-JME3-JOGL2-tp4029842p4029852.html

Hi

If you just want to use WWJ with a scene graph, rather use Ardor3D.

If you absolutely want to use JMonkeyEngine 3 with WWJ, please try to follow my suggestions instead of using WorldWindGLCanvas.

I advised you NOT to use WorldWindGLCanvas. You have to create an additional layer like someone did for Ardor3D. At the beginning of doRender(), you need a current OpenGL context. In your case, maybe you have nothing to do, maybe you just have to get the OpenGL context created by WWJ with DrawContext?getGLContext(), maybe you have to call makeCurrent() on it if it isn't current yet, maybe not. Then you have to ensure JMonkeyEngine uses this OpenGL context (in JMEContext?).

I have only a very few knowledge of WWJ. You should look for a tutorial explaining how to add a layer into it.
Julien Gouesse | Personal blog | Website