Hello,
I have been following this newsgroup more than 6 months but this is the first time I will publish. I do it because I am desperate. I am a newbie in this field so my apologizes if my questions are very trivial.
Current development:
-------------------------------
JSP web server - client application using CyberVRML, VRML and Java to produce dynamic worlds.
New development:
----------------------------
I started to use Xj3D library to get rid of CyberVRML and use more standard tools, and I would like to get to X3D too.
Problem:
-------------
I just start to play around with it. Source code to load the world :
protected boolean loadWorld(String file) throws java.io.FileNotFoundException,
IncorrectFormatException, ParsingErrorException {
int flag = Web3DLoader.LOAD_ALL;
if (staticLoad)
flag &= ~Web3DLoader.LOAD_BEHAVIOR_NODES;
Web3DLoader loader = new Web3DLoader(flag);
loader.load(file);
// if the file is a directory, ignore it
File f = new File(file);
if (f.exists() && !f.isFile()) {
return false;
}
saiVRMLScene = (CRVRMLScene) loader.getVRMLScene();
if (saiVRMLScene != null) {
return true;
} else {
return false;
}
}
I do not want to use sun libraries, e.g. "IncorrectFormatException" class, otherwise I have to bundle sun jars too.
Questions:
----------------
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?
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.
3. How can I save to file with xj3d library? is there any source code example?
4. Opinions about if it is good approach to change to xj3d or it is still not mature to work with it .
Thanks very much to everybody,
/Marcel =========================================================================== 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".
- Re: [JAVA3D] Xj3d source code examples and references Marcel Quintana