A couple questions I was hoping you all could help me with:

I'm attempting to add different objects dynamically to a scene.

1)  Within my class, I can create a TransformGroup, and add a shape3D to it;
however, outside that class, I have a getTransformGroup method that returns
said TransformGroup, and I attempt to add a Shape3D to it, I get an error.
i.e. myClass.getTransformGroup().addChile(myShape3D).  It compiles fine, but
when running, errors out:
  javax.media.j3d.RestrictedAccessException: Group: only a BranchGroup node
may be added

This doesn't appear like it should be the case from the API; any ideas?

2)  To get around the problem in 1), I'm creating a BranchGroup containing
my Shape3D, and adding that to my origional TransformGroup.  The problem is
that my mouse behaviors (the MouseRotate, MouseTranslate, and MouseZoom
behaviors in (com.sun.j3d.utils.behaviors.mouse.MouseBehavior ) don't have
the same affect on the objects origionally added to it, and the objects
added to it later.  MouseBehaviors, bounds, Branchgroups, etc, are all the
default values.
Any ideas greatly appreciated.

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