I have tested it passing the file as an URL like this:

VrmlLoader loader = new VrmlLoader();

URL fileURL = getClass().getResource("test.wrl");

Scene s = loader.load(fileURL);

and it works.

Hope this helps !!

Dani
--------------------------------------------------------
Hi,guys and gals,

   Maybe I haven't explain my question clearly, so nobody answer me. :)

   I embed a Java3D applet in an html to present some 3D models,  in the applet I use 
VrmlLoader to load outer VRML files (.wrl files), My puzzle
is: the applet cann't load the wrl files correctly because of some security
problems.  I think that it's the restriction of applet, but how can the
Java3D applet load VRML files from local system or remote webserver?

   Any your reply is much appreciated!



Wu AnBo

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





--

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn 
Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, 
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das 
unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorised copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.
==========================================================================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