Hello,
 
I am having problem with mouse zoom in my application.
 
The problem is :
 
When i am trying to room the image its zooming well but after certain point the image is disappearing i.e i can't able to see the image.
 
So i want to know how to control the zoom , so that i can zoom exactly to the size of my boundingsphere.
 
This is the coading i am using . pls correct my mistakes and advice me how to get rid of this problem.
 
public ObjLoad(String args[]) {
 
   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();
 
  if (!spin) {
OrbitBehavior orbit = new OrbitBehavior(c,
    OrbitBehavior.REVERSE_ALL | OrbitBehavior.STOP_ZOOM);
          
           
    TransformGroup objTrans = new TransformGroup BoundingSphere   bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 1000);
            
orbit.setSchedulingBounds( bounds  );
      
    viewingPlatform.setViewPlatformBehavior(orbit)  }
 u.addBranchGraph(scene);
   
 
 }
public void destroy() {
  
 u.removeAllLocales();
 
 }


Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign! =========================================================================== 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