On Thu, 13 Dec 2001, Andreas Bauer wrote: > To play the animation I must get a Behavior through the Scene Object and > start it, right? Is the behavior already a part of the scene graph?
The way we do it is to include allt he behaviours as part of the scene graph. Unfrotunately, because of the way the Loader interface works we can't expose the full functionality ofa true VRML browser. So, what we do is place as much as possible into the loader and make a bunch of assumptions about what to includde. For example, we have no way of telling if you really want to inline files, so we do it anyway. However, those inlined files will not give you access to their Behaviour objects, you can only get Behaviours for the top level file. We do similar things with scripts and textures. So long as you keep your VRML to geometry, textures and simple animatoins then you will be fine using VRML/X3D as your import file format. Anything more complex, and using a Loader is really the wrong way to do it, yoiu should be using the full Xj3D API to embed the capabilties into your app. -- Justin Couch http://www.vlc.com.au/~justin/ Freelance Java Consultant http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Look through the lens, and the light breaks down into many lights. Turn it or move it, and a new set of arrangements appears... is it a single light or many lights, lights that one must know how to distinguish, recognise and appreciate? Is it one light with many frames or one frame for many lights?" -Subcomandante Marcos ------------------------------------------------------------------- =========================================================================== 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".
