Login  Register

Re: JOGL 2.0 (OpenGL/OpenGL-ES) backend for LibGDX

Posted by Headmade on Oct 25, 2015; 6:08pm
URL: https://forum.jogamp.org/JOGL-2-0-OpenGL-OpenGL-ES-backend-for-LibGDX-tp4027689p4035587.html

Thank you for the help.

I'm now using the the latest version (1.7.1-SNAPSHOT).
One thing I noticed is that in the main pom.xml is missing the module
<module>backends/gdx-backend-jogamp</module>

I added it, installed the version and made my game use it. I made sure I use JoglNewtApplicationConfiguration and JoglNewtApplication as can be seen here: https://github.com/headmadegames/ArtTag/blob/raspberry/desktop/src/headmade/arttag/desktop/ArtTagLauncher.java

It's still not working on my Raspberry Pi but I get a different Error now:

Exception in thread "main-AWTAnimator#00"
com.jogamp.opengl.util.AnimatorBase$UncaughtAnimatorException:
com.jogamp.opengl.GLException: Caught NullPointerException: null on
thread main-AWTAnimator#00
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:92)
        at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
        at com.jogamp.opengl.util.Animator$MainLoop.run(Animator.java:204)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.jogamp.opengl.GLException: Caught NullPointerException:
null on thread main-AWTAnimator#00
        at com.jogamp.opengl.GLException.newGLException(GLException.java:76)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1327)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
        ... 3 more
Caused by: java.lang.NullPointerException
        at com.badlogic.gdx.backends.jogamp.JoglGraphicsBase.display(JoglGraphicsBase.java:165)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
        at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
        ... 6 more


Thank you for reminding me of the limitations of an executable jar.
Currently I do not care about these limitations as I just need to get it to run on a single system by the 28th of October. The plan is to exhibit the game in an arcade machine in the British Library. I can provide a proper release later.