Hi,
I have VRML code available as a String, so I'm trying to use the method
VrmlLoader.load(Reader), with the Reader being a StringReader. The VRML code
seems to be imported correctly, since the model is rendered and displayed in
a Canvas3D. However, every time I read VRML code using the Reader, this
Exception is caught:
java.net.MalformedURLException: no protocol: ./
at java.net.URL.<init>(URL.java:308)
at
com.sun.j3d.loaders.vrml97.impl.Loader.setWorldURL(Loader.java:243)
at com.sun.j3d.loaders.vrml97.VrmlLoader.load(VrmlLoader.java:88)
at Camera.gotoLocation(Camera.java:171)
at Camera.startCamera(Camera.java:129)
at Camera.init(Camera.java:324)
at sun.applet.AppletPanel.run(AppletPanel.java:333)
at java.lang.Thread.run(Thread.java:479)
Is there any way to avoid this Exception being thrown? It seems to me that
no URL is needed when a StringReader is used, let alone a protocol?
I use a X3D.jar dated 29 october 1999 and Java3D 1.2.
Eelco van den Berg.
===========================================================================
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".