Importing a WRML-file into my JOGL-program

I have created a scenery “by hand” and now, i’d like to use a WRML-file that a friend sent me to “paste” it into my little world. One way to do it is “by hand” but i intend not to go insane, really, yet. I understand one can use “SOMETHING” to read a VRML-file and to
pop-up an other “SOMETHING” that can be used to draw in the 3D-scenery. Now - what is SOMETHING1 and SOMETHING2?

I’ve a rather long experience with Java itself but JOGL, i’ve been doing for two weeks only. WinXP, JVM1.5.

Use Xj3D, Xith3D or Java3D. Xj3D is VRML-specific; Xith3D and Java3D probably have VRML loaders but I’m not sure of their completeness or how up-to-date they are.

OK, i’ve decided to go with Xj3d, since it’s VRML-specific. The thing is that i have no idea of how to get started. I have installed it, but i have no idea of what constructors to use and so on. I haven´t found any source code samples. Any hints?

I need a minimal example of java code loading .wrl-file using the Xj3d.

You can easily use Xj3D, but it’s unclear exactly what you are trying to do. Xj3D can run as a stanalone application that “plays” VRML and X3D files. It also has a toolkit mode that allows it to act as a content loader for use within another application. However, it doesn’t produce anything that looks like just a series of raw OpenGL calls (I’m not sure why else you’d be posting the question in this specific forum otherwise).

To see how to use Xj3D as a Java3D loader, head to http://www. xj3d.org and look under the tutorials/examples section.