Thanks Alan

I did find the loader class where you said though I had already found it by
going through every jar file on my system!  (silly or what!)  I feel my
classPath may be all over the place as I have only been working in Java for a
few months out of Uni and being the only developer at a company of engineers I
have had to set up my own software development environment (Just gettting
around to starting to use JUint!) as a result I have aded so many jar packages
to it!  I currently use JCreator to costruct my code and comiple in so I edit
my JDK profile through the IDE etc.

As regaurds XJ3D in my code I have managed to load a very basic VRML model
though I have a question does the VRML97Loader allow for the importing of
interperlators e.g position Interperlators, prototypes and script notes?  and
If so where can I get information on it like documentation and example code?

I thankyou for you help and time.

Yours Phil Colbert :)

>===== Original Message From Discussion list for Java 3D API
<[EMAIL PROTECTED]> =====
>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".

Philip J Colbert
Software Engineer
RCID, Bruce Building
University of Newcastle Upon Tyne
NE1 7RU
Phone 0191-2225306
Fax 0191-2225833
This e-mail, including any attached files, may contain confidential and privileged 
information for the sole use of the intended recipient(s). If you are not the intended 
recipient, please note that any circulation or copying of this e-mail is strictly 
prohibited. If you have received this e-mail in error please contact the sender by 
reply e-mail and delete all copies of this message.

The RCID makes every effort to ensure that this e-mail and any attachments are sent 
virus free. However it is the responsibility of the recipient to perform any checks 
they deem necessary.

===========================================================================
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".

Reply via email to