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".

Reply via email to