Login  Register

Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI

Posted by Mr.Marbles on Aug 28, 2015; 1:57am
URL: https://forum.jogamp.org/JOGL-2-support-for-Ardor3D-JMonkeyEngine-3-jzy3d-and-NiftyGUI-tp1706747p4035148.html

The JOGL jme renderer fails to start. For example I tried running the TestSafeCanvas app, using settings.setRenderer("JOGL"), and it threw the following exception:

Exception in thread "main" com.jogamp.opengl.GLException: main: No OpenGL context current on this thread
        at com.jogamp.opengl.GLContext.getCurrentGL(GLContext.java:509)
        at com.jme3.renderer.jogl.JoglRenderer.setMainFrameBufferSrgb(JoglRenderer.java:2686)
        at com.jme3.system.jogl.JoglNewtAbstractDisplay.initGLCanvas(JoglNewtAbstractDisplay.java:149)
        at com.jme3.system.jogl.JoglNewtCanvas.initGLCanvas(JoglNewtCanvas.java:54)
        at com.jme3.system.jogl.JoglNewtCanvas.<init>(JoglNewtCanvas.java:49)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
        at java.lang.Class.newInstance(Class.java:442)
        at com.jme3.system.JmeDesktopSystem.newContextJogl(JmeDesktopSystem.java:230)
        at com.jme3.system.JmeDesktopSystem.newContext(JmeDesktopSystem.java:274)
        at com.jme3.system.JmeSystem.newContext(JmeSystem.java:162)
        at com.jme3.app.Application.createCanvas(Application.java:494)
        at jme3test.awt.TestSafeCanvas.main(TestSafeCanvas.java:26)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)