If you really want to add a node to that specific node, you have to create a
branch group node, attatch the behavior to that node, and then attatch the
behavior to this new branch node.
Hope it helps.



----- Original Message -----
From: Dennis Goetz <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 06, 2000 9:01 PM
Subject: [JAVA3D] please help with this error


> When I try to add a behavior to a viewpoint transform, I get the following
> error:
>     javax.media.j3d.RestrictedAccessException: Group: only a BranchGroup
> node may be added
>
> What exactly must be done to add a behavior to the viewpoint transform?
The
> following is most of the relevant code for what I am trying to do:
>    TransformGroup vpTrans;
>    SimpleUniverse universe = new SimpleUniverse(canvas3D);
>    universe.getViewingPlatform().setNominalViewingTransform();
>    universe.addBranchGraph(scene3D);
>    ....
>    ....
>    vpTrans = universe.getViewingPlatform().getViewPlatformTransform();
>    CameraBehaviour cameraBehaviour = new CameraBehaviour(vpTrans,20);
>    cameraBehaviour.setSchedulingBounds(bounds);
>    vpTrans.addChild(cameraBehaviour);
>
> Thanks,
> Dennis Goetz
>
>
===========================================================================
> 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".

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