J3d port to Jogl

We have been for some time now developing a small game in Java3d. The java 3d package is good but lacks a few things in the rendering department that we could really use.
So my question is if we want to use jogl for the project how painful is the port from one to the other.
We have already written several loaders for the model formats thats are being used and we have a pretty good scenegraph setup along with a few custom objects.

Is everything going to have to be rewrote or is it possible to use j3d with jogl. I ask because I can’t seem to find any info that compares the 2 packages. Any pointers to info or just raw info would be great.

Thanks in advance
Matt

JOGL doesn’t have a scene graph, so you use it in an entirely different way. To port from J3D to JOGL means a copmlete rewrite. You may want to think about porting to Xith wich has a scene graph but is built on top of JOGL and allows you to access the low level stuff as well.

Or you can do what I did and write your own scene graph, but it’s alot of work. However, in the end you get the ulitmate level of control.

Ya thats what I suspect and was afraid of. I appriciate the info though. :’(

Thanks
Matt

At a guess I suspect you could refactor your code to use Xith in very little time. The two fiddly bits are that Xith uses floats instead of doubles and that Xith is not thread-safe.

Cas :slight_smile:

Ya we have decided to maybe look into adding what we need to Java3d. Primarly some forms of Dynamic shadows and lightmaps.

Its probably just about as much work but maybe we can pass it along to help the next person who would like to use it.

Thanks
Matt

Hi, you may look at these urls:

http://java3d.virtualworlds.de/j3dwiki/index.php/How_can_I_use_Java_3D_and_OpenGL_together%3F

http://www.javadesktop.org/forums/thread.jspa?threadID=3222&tstart=0

They describe how JOGL code can be used within the Java3D environment.