I pulled down the latest Xith3d (Xith3D_2005-05-25_cvs.tar.tar) and attempted to use com.xith3d.render.lwjgl.; when attempting to run the cube example. however it compiles runs and then pukes with the below NullPointerException. if I use com.xith3d.render.jogl.; it works fine???
run:
java.lang.NullPointerException
at org.lwjgl.opengl.GL11.glGetInteger(GL11.java:1161)
at com.xith3d.render.lwjgl.CanvasPeerImpl.renderStart(CanvasPeerImpl.java:285)
at com.xith3d.render.lwjgl.CanvasPeerImpl.display(CanvasPeerImpl.java:868)
at com.xith3d.render.lwjgl.CanvasPeerImpl.render(CanvasPeerImpl.java:1035)
at com.xith3d.scenegraph.View.renderOnce(View.java:604)
at com.xith3d.scenegraph.View.renderOnce(View.java:537)
at com.xith3d.scenegraph.View$ViewRunner.run(View.java:1276)
at java.lang.Thread.run(Thread.java:595)
Exception in thread “Thread-1” java.lang.Error: java.lang.NullPointerException
at com.xith3d.render.lwjgl.CanvasPeerImpl.display(CanvasPeerImpl.java:987)
at com.xith3d.render.lwjgl.CanvasPeerImpl.render(CanvasPeerImpl.java:1035)
at com.xith3d.scenegraph.View.renderOnce(View.java:604)
at com.xith3d.scenegraph.View.renderOnce(View.java:537)
at com.xith3d.scenegraph.View$ViewRunner.run(View.java:1276)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at org.lwjgl.opengl.GL11.glGetInteger(GL11.java:1161)
at com.xith3d.render.lwjgl.CanvasPeerImpl.renderStart(CanvasPeerImpl.java:285)
at com.xith3d.render.lwjgl.CanvasPeerImpl.display(CanvasPeerImpl.java:868)
… 5 more
BUILD SUCCESSFUL (total time: 2 seconds)
The only version of LWJGL that is supported by Xith3D is the version that it is distributed with.
Currently, LWJGL 0.97a is distributed with Xith3D.
When the LWJGL API becomes more stable, the impact of this will reduce.
Will.