Isn't it possible to perform a two step vrml parsing ? One to lookup what
actual nodes are used and establish the parsing strategy for the second
step. That way you can optimise the scenegraph, especialy for the two cases:
a) static scenegraph (nothing ever change or move) and b) unmodifiable
scenegraph (object may move, but no objects are added or removed).

Cheers,

Florin

-----Urspr�ngliche Nachricht-----
Von: Alan Hudson [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 12. Juni 2003 22:00
An: [EMAIL PROTECTED]
Betreff: Re: [JAVA3D] confusing VRML SceneGraph


Martin Frey wrote:

> Hi
> I wrote a simple VRML97 / OBJ SceneGraphViewer.
>
> And here's my question:
> 1. Why is the VRML SceneGraph so confusing?
> 2. Why can't ObjectFile load Textures from a mtl-file stored in a
jar-file?
>
>
VRML allows a node to be added/removed at any time.  So all grouping
nodes have to be wrapped in a BranchGroup.  We also have to support
DEF/USE which allows sub-scenegraphs to be reused, hence the need for
SharedGroups and Links.  Definate mismatch between Java3D scenegraph and
VRML's.  It works, but its not optimal.

--
Alan Hudson
President: Yumetech, Inc.                      http://www.yumetech.com/
Web3D Open Source Chair        http://www.web3d.org/TaskGroups/source/

===========================================================================
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".

==========================================================================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".

Reply via email to