Hi all !
I have tried to test the VRML loader. It works fine from application.
But I have tried to use it from an applet. The way to do it is like the ObjLoader (I
think):
import com.sun.j3d.loaders.vrml97.VrmlLoader;
import com.sun.j3d.loaders.ParsingErrorException;
import com.sun.j3d.loaders.IncorrectFormatException;
import com.sun.j3d.loaders.Scene;
...
VrmlLoader f = new VrmlLoader();
Scene s = null;
try {
s = f.load(new URL("file:./test.wrl"));
}
catch (FileNotFoundException e) {
System.err.println(e);
System.exit(1);
}
catch (ParsingErrorException e) {
System.err.println(e);
System.exit(1);
}
catch (IncorrectFormatException e) {
System.err.println(e);
System.exit(1);
}
objRoot.addChild(s.getSceneGroup());
...
but it gives an AccessControlException, while the ObjLoader works by this way.
I have tested different ways to construct the URL, for example, new URL(getCodeBase(),
"test.wrl"), but also fails.
I'm desperated !! What is the problem ? Am I doing something wrong or the VRML loader
isn't able to work from applets ?
Has anybody been able to do this ?
Thanks in advanced !!
Dani
--
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".