Hi Tobias,
> I wonder how I can add a TransformGroup to another compiled
> TransformGroup. ...
> But it says: javax.media.j3d.RestrictedAccessException:
> Group: only a BranchGroup node may be added.
Don't you believe that exception message? Just believe it: only
BranchGroups may be added to or removed (detached) from a live/
compiled scene graph.
> Is there a way to do this I'm asking for?
Yes, simply insert a pair of BranchGroups at the connection point:
...
+- rotateTransformGroup
|
+- parentBranchGroup
| <== connection point
+- child1BranchGroup
| |
| +- child1TransformGroup
| |
| +- whatEver
| ...
+- child2BranchGroup
| |
| +- child2TransformGroup
| |
| +- whatEver
... ...
parentBranchGroup must have set capabilities ALLOW_CHILDREN_EXTEND
and ALLOW_CHILDREN_WRITE and the childXBranchGroups must have set
the capability ALLOW_DETACH.
regards
Georg
___ ___
| + | |__ Georg Rehfeld Woltmanstr. 12 20097 Hamburg
|_|_\ |___ [EMAIL PROTECTED] +49 (40) 23 53 27 10
===========================================================================
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".