jPCT - a 3d engine for Java > Bugs

jPCT dose not support jogl 2.1.5

(1/4) > >>

Since jogl 2.1.5 have many refactors on GL* classes, jPCT' glfacade can not  find the old classes in old version jogl.
Actually, it is a simple task to update jPCT and glfacade for new jogl version.

Would u plz modify them and release new versions.

Or you may make them open source, i can do that quickly:)

Forgive my Chinglish:)

That's actually not a bug. I just didn't care to support because I got no reports from people that are actually using this solution nor does anybody requested a version for 2.x. Anyway, here you go:

It would be nice, if you could return the version for 2.x to me, so that I can include it and everybody can benefit from it.

Edit: You'll need these two from the com.threed.jpct-package as well:

BTW: I haven't tested this facade code for a while. There's a small chance that it misses some methods that newer versions of jPCT are using. If you encounter such thing, please let me know...thanks!

I want to integrate some 3d engine into NASA WorldWind, so that i can load 3d models and animations.
Now, WW uses jogl 2.1.5 in my configuration.
And i think jPCT is a nice work for that purpose.

I'll try your suggestions and post my result.


After modifying about ten lines, the new glfacade seems to be working.
I run the HelloWorldAWTGL without lwjgl jars, it works(and tell me the jogl is injected).

But the HelloWorldOGL can not run, the errors are:

Loading Texture...from InputStream
Java version is: 1.8.0_45
-> support for BufferedImage
Version helper for 1.5+ initialized!
-> using BufferedImage
Software renderer (OpenGL mode) initialized
Software renderer disposed
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/opengl/Display
   at com.threed.jpct.GLHelper.findMode(
   at com.threed.jpct.GLHelper.findMode(
   at com.threed.jpct.GLHelper.init(
   at com.threed.jpct.GLRenderer.init(
   at com.threed.jpct.FrameBuffer.enableRenderer(
   at com.threed.jpct.FrameBuffer.enableRenderer(
   at com.threed.jpct.FrameBuffer.enableRenderer(
   at helloworld.HelloWorldOGL.loop(
   at helloworld.HelloWorldOGL.main(
Caused by: java.lang.ClassNotFoundException: org.lwjgl.opengl.Display
   at java.lang.ClassLoader.loadClass(
   at sun.misc.Launcher$AppClassLoader.loadClass(
   at java.lang.ClassLoader.loadClass(
   ... 9 more

the org.lwjgl.opengl.Display can not be found in glfacade, it is in lwjgl.jar, but how can we find it when that jar excluded.
i comment the lines in the HelloWorldOGL to make it runnable.

All files are in attachment.

I manage them in maven-Eclipse.
Don't forget to replace the JOGLCanvas and JOGLRenderer in the jPCT project.

I really hope that the main jPCT project can be open sourced.


[0] Message Index

[#] Next page

Go to full version