Lee Zhou wrote: > Does Sun Microsystem provide a VRML loader that is as easy to use as the > Wavefront file (.OBJ) loader?
Sun provides a loader, but it is not part of the standard utilities download that you get with J3D. The only way you are able to get it today is through the J3DFly application. If you want a more complete loader, then the current Xj3D code would be a much better choice. Sun's loader is fairly minimalistic. If you want static geometry and maybe simple animation with position/orientation interpolation, you should be fine. If you want something complex like GeoVRML, then you're stuffed. On the otherhand, the current Xj3D is quite a pig from a memory/num JARs POV, but we implement the VRML spec properly. Proper ecmascript/Java scripting support, EAI, externproto/proto, X3D, both UTF8 and XML etc etc. If you need just a small download for an applet, use Sun's, if you have an application, use the current Xj3D code. Xj3D can be found at: http://www.web3d.org/TaskGroups/source/xj3d.html > Hope the VRML loader is avaible in the j3d loader package and a simple > example of using VRML loader > can be found inside the Java3D API tutorial. All loaders work the same. All you need to do is create an instance of the class that implements the Loader interface and then call one of the load() methods. You get a Scene instance back and work with that. So, if there is a tutorial that is using ObjLoader then just swap Obj for VRML and it should all be the same. -- Justin Couch http://www.vlc.com.au/~justin/ Java Architect & Bit Twiddler http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Humanism is dead. Animals think, feel; so do machines now. Neither man nor woman is the measure of all things. Every organism processes data according to its domain, its environment; you, with all your brains, would be useless in a mouse's universe..." - Greg Bear, Slant ------------------------------------------------------------------- =========================================================================== 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".
