What exactly must be done to add a behavior to a 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);
But, when I try to run this, the last line gives the following error:
javax.media.j3d.RestrictedAccessException: Group: only a BranchGroup
node may be added
Any suggestion on how I would accomplish what I am trying to do?
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".