>From the java.sun.com's Java3D section, they have a link to the Xj3D project,
which is the developement of a standard parallel (or meant to succeed) VRML,
it supports VRML files as well as the X3D files.
http://hypermultimedia.com/Xj3D/
This is where the instructions to install it are at..
http://www.web3d.org/TaskGroups/source/xj3d.html
But I find the instructions to be made a little more complex then they need
to be (a kind of useless plug of Cygwin in there). Chances are you already
installed the JDK and Java3D so you can skip 2 and 3, You can skip the Cygwin
portion of it which is 5.
So basicly just do this, download and install JAXP (Java API XML Processing)
http://java.sun.com/xml/?frontpage-spotlight
Download these three files and place them in your "jdk1.3/jre/lib/ext"
directory (where ever you installed the jdk).
http://www.web3d.org/TaskGroups/source/x3d.jar
http://www.web3d.org/TaskGroups/source/dtdparser113a.jar
http://www.web3d.org/TaskGroups/source/SaiX3d.jar
And you have installed Xj3D. To quickly test to see if it worked, get rid of
(move it to another directory) the vrml97.jar file from the loaders directory
in the j3d fly demo, and start the program and enable VRML viewing and see if
it still loads VRML (it worked for me). If it works then you have installed
it properly...
To use it you need to import...
import com.sun.j3d.loaders.vrml97.VrmlLoader;
in addition to the normal...
import com.sun.j3d.loaders.ParsingErrorException;
import com.sun.j3d.loaders.IncorrectFormatException;
import com.sun.j3d.loaders.Scene;
once imported you can do something simple like this for an application..
VrmlLoader f = new VrmlLoader();
Scene s = null;
try {
s = f.load("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());
Leyland Needham
===========================================================================
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".