hello everone,
i am having problems with zoom.
when i am trying to zoom ojects , the objects are going out of the bound.
So can any one tell me how to control zoom , so that i can zoom
only to certain point so that my objects wont disappear.
The code i am using is as fallows:
setLayout(new BorderLayout());
GraphicsConfiguration config =
SimpleUniverse.getPreferredConfiguration();
Canvas3D c = new Canvas3D(config );
add( "Center", c);
BranchGroup scene = createSceneGraph(args);
u = new SimpleUniverse(c);
ViewingPlatform viewingPlatform = u.getViewingPlatform();
viewingPlatform.setNominalViewingTransform();
OrbitBehavior orbit = new OrbitBehavior(c,
OrbitBehavior.REVERSE_ALL | OrbitBehavior.STOP_ZOOM);
BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0),100 );
orbit.setSchedulingBounds( bounds );
viewingPlatform.setViewPlatformBehavior(orbit) ;
u.addBranchGraph(scene);
GraphicsConfiguration config =
SimpleUniverse.getPreferredConfiguration();
Canvas3D c = new Canvas3D(config );
add( "Center", c);
BranchGroup scene = createSceneGraph(args);
u = new SimpleUniverse(c);
ViewingPlatform viewingPlatform = u.getViewingPlatform();
viewingPlatform.setNominalViewingTransform();
OrbitBehavior orbit = new OrbitBehavior(c,
OrbitBehavior.REVERSE_ALL | OrbitBehavior.STOP_ZOOM);
BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0),100 );
orbit.setSchedulingBounds( bounds );
viewingPlatform.setViewPlatformBehavior(orbit) ;
u.addBranchGraph(scene);
So please correct or give me some suggestions reg zoom.
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages! =========================================================================== 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".