Hi,
I have a problem adding a Behavior node to a live scenegraph.
The first time I can add a RotationInterpolator no problems, and the
target TransformGroup starts animating.
But then when I try to add another RotationInterpolator, I get "can only
add a BranchGroup to a live scenegraph" message.
The TransformGroup is already part of the scenegraph and is the parent
of the target TransformGroup for the RotationInterpolator.
I've set ALLOW_DETACH in a root BranchGroup(rootBG).
It is now live.

The code goes a little like this:

rootBG.detach()
tg.addChild(myRotInterpolator) // This works the first time...
myUniverse.addBranchGroup(objRoot)

Does this have something to do with the fact that after I add the first
Behavior and things start animating, the scenegraph is in a different
state? I can't see why I can add a Behavior to the live scenegraph the
first time, but not after that.
thanks,

Nick.

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