Rick Goldberg <[EMAIL PROTECTED]> on 01/29/99 12:44:48 PM
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
cc: [EMAIL PROTECTED], [EMAIL PROTECTED] (bcc: Gary Moss/arl)
Subject: Re: [java3d] Loading files via the vrml-java3d VRML97 loader


Gary, 

the README does mention that absolute paths may not work, 
so it is as advertised. In the meantime, check to see how
Vrml97Player handles paths returned from fileDialog.


                        Rick

Hi Rick,

 I believe that the README is refering to path names
inside the VRML file itself, I am just using simple file
names there for now and placing textures in the same
directory with the WRL files.

 I looked at Vrml97Player and it actually forms a URL
with "file:"+fd.getDirectory()+fd.getFile() rather than
using a String path name, so it may avoid the bug. In other
words, it's using:

 VrmlLoader.load( URL url )
rather than
 VrmlLoader.load( String pathname )

 Using the URL works for me too, I just tried it, so
I can move on, but I still wonder if there isn't a bug
involving the specification of an absolute path name via
the second form of the load() method above. Is it supported
or not. I just realized my mistake in my use of the
com.sun.j3d.loaders.Loader.setBasePath() method.  It only
sets the basepath for the data files associated with the
file passed to load(), ie the VRML textures.

Thanks,
-Gary

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to