Quickly looking at the OrbitBehavior API it looks like it only supports a min radius and not a max.
The image is probably disappearing because it is passing through your back clipping plane. If you want more control over the movement you may have to write your own behavior. -mike -----Original Message----- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED] On Behalf Of RAHUL KHANNA Sent: Tuesday, July 20, 2004 12:01 PM To: [EMAIL PROTECTED] Subject: [JAVA3D] reg:problem with mouse zoom 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! <http://advision.webevents.yahoo.com/yahoo/votelifeengine/> =========================================================================== 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".