¿À½Â¿ì(Sengwoo Oh) wrote: > There were many many question about loading animation data from vrml > file. i want to load simple motion data( position and rotation key data) > by using Xj3d loader.
[snip] > I can get behavior node by using Scene.getBehaviorNodes(), however, I > can't know how to get the keyframe data. The getBehaviorNodes call is not what you are looking for. This returns Java3D Behavior objects, of which we only have two in the system. Animation (ie Position and OrientationInterpolators) do not use Java3D behaviours to run. Instead, we process them within our own runtime engine because it is much more efficient to do so. So, if you want to extract just the animation information and place it into your own scene, you're going have a lot of trouble. You may consider an alternative to be to DEF the appropriate interpolator nodes inside the VRML file and use getNamedNode() on it. Unfortunately that won't work either as the getNamedNode() call returns a SceneGraphObject - ie an item of Java3D scene graph. Since our interpolator implementation does not have any Java3D code at all, you'll never find the Java3D node, which is not really helpful to you at all. Just looking through our Javadoc, we don't even give you access to the raw high-level VRML Scene that we create so it looks like you're stuffed at the moment. That definitely looks like an oversight on our part as I'm sure some people would like that access, so I'll fix that for our next dev release. -- 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".