Marcel Quintana wrote:
I do not want to use sun libraries, e.g. "IncorrectFormatException" class, otherwise I have to bundle sun jars too.
You are going to have to anyway. Note that the Web3DLoader implements the Sun Loader classes. In order for the JVM to not barf, you're going to need to include the Sun JARs.
1. I just want to deal with high level processing of the tree, just in VRML or X3D, not Java3d neither OpenGL nor DirectX. Is there any way?
You can do it, but it's going to take a lot more work than just the Loader-style interface. Have a look at the code to examples/browser/DIYBrowser and that will show you how to start the loading of a file using the internal interfaces.
2. Are there some easy source code examples for this case? I have been browsing in x3jd and internet and I do not find good examples for what I need.
Not really. Almost anyone that has wanted to use Xj3D wants to use it as a loader or just through the normal interfaces like EAI/SAI. We haven't spent much time documenting how to make use of the internal interfaces to do custom loading.
3. How can I save to file with xj3d library? is there any source code example?
There's no example that I know of. Xj3D is a runtime library, not a file format exporter. To save the file as VRML or X3D, you will have to do all the work yourself. If you've already got the runtime internal scene graph, have a look at the class org.web3d.vrml.nodes.SceneGraphTraverser for a class that will walk the scene graph and generate you a serialised stream of structural event callbacks. You can then write your own writer from there.
4. Opinions about if it is good approach to change to xj3d or it is still not mature to work with it .
FWIW, CyberVRML is now very old. Satoshi has changed the name to CyberX3D and updated to handle X3D files too. Not sure which encodings he currently supports, or how extensively the new spec features are supported. At least it should handle X3D equivalent files of what you have with VRML, and the API should be almost the same as what you are currently using.
-- 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/ ------------------------------------------------------------------- Programming is essentially a markup language surrounding mathematical formulae and thus, should not be patentable. -------------------------------------------------------------------
=========================================================================== 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".