Hi Allesandro,
what do you mean with "relaxed compliance with the specs"?
Thank
you in advance,
Fausto Mancini
From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED] On Behalf Of Alessandro Borges
Sent: Wednesday, September 29, 2004 13:55
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] j3d-vrml97 working?
One of the biggest problems with vrml files is the relaxed compliance with
the specs...
Alessandro
Alan Brockett <[EMAIL PROTECTED]> wrote:
Noticed on j3d.org that the old Sun VRML loader is being resurrected, as
j3d-vrml97 (see http://www.j3d.org/utilities/loaders/vrml/j3d-vrml97.html)
However, I can't get it to work - always crashes with:
java.lang.InstantiationError: vrml.node.Node
at org.jdesktop.j3d.loaders.vrml97.impl.Node.wrap(Node.java:187)
at org.jdesktop.j3d.loaders.vrml97.VrmlScene.(VrmlScene.java:80)
at org.jdesktop.j3d.loaders.vrml97.VrmlLoader.doLoad(VrmlLoader.java:159)
at org.jdesktop.j3d.loaders.vrml97.VrmlLoader.load(VrmlLoader.java:139)
[... rest deleted ...]
Code is very simple:
VrmlLoader f = new VrmlLoader();
Scene s = null;
try {
s = f.load(filename);
}
catch (FileNotFoundException e) {
System.err.println(e);
System.exit(1);
}
I've successfully used the CyberVRML97 and NCSA Portfolio loaders, as well
as several of the OBJ and 3DS loaders, so I think the rest of my app is ok.
Ultimately what I want is the ability to load a VRML file and have any
textures automatically applied. Couldn't tell if this loader could do that
or not.
Thanks for any help!
Alan Brockett
===========================================================================
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".
__________________________________________________
Do You Yahoo!?
Tired
of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
=========================================================================== 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".