Philip J Colbert wrote:
Hi all
This is my first attempt with this Email group so please be nice!
I have been looking at Java 3D for a few months now and having to learn it all
from scratch is interesting to say the least! I have been looking at ways to
import VRML into a java scene and then be able to use the objects imported
etc. I have been using the sun loader "vrml97.jar" and importing these files
etc.
import com.sun.j3d.loaders.vrml97.VrmlLoader.*;
import com.sun.j3d.loaders.vrml97.*;
import com.sun.j3d.loaders.Scene;
I have had a few problems reading in some VRML models with this so I decieded
to investigate XJ3d as there seamed to be tonnes of talk about it on this
mailing list. So I have downloaded the exe file from the super guys at XJ3D
and proceeded to follow the instructions for set up. I feel I have this done
succesfully as the XJ3D browser will run and import a VRML file (well some) I
then thought I would try and see how the VRML importing was achieved and
looked at the "Loader.java" file for an example.
The problem is that when I try to compile that file the compiler can not find
a package which I am buggered if I can work out what it is supposed to be or
where it may be located. the message is:
--------------------Configuration: j2sdk1.4.0_01 <Default>--------------------
C:\j2sdk1.4.0_01\x3d\examples\loader\LoaderDemo.java:36: package
org.web3d.j3d.loaders does not exist
import org.web3d.j3d.loaders.VRML97Loader;
Any of you knds Sirs out there help me with this as I have spent all morning
looking at how to import VRML using the newer loaders produced by XJ3D but my
head is about to explode!
I have included on my classPath all these Jar files recomended by the install
notes.
For compilation:
j3d-org.jar
xj3d-j3d.jar
look inside your xj3d-j3d.jar. You should find the VRML97Loader class
in that.
you might also try doing a javap org.web3d.j3d.loaders.VRML97Loader if
it doesn't find the class then your classpath is not setup correctly.
Post your CLASSPATH environment variable setting and I'll take a look at it.
--
Alan Hudson
President: Yumetech, Inc. http://www.yumetech.com/
Web3D Open Source Chair http://www.web3d.org/TaskGroups/source/
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".