Title: Message
Hi,
Well, as Mike said, I think it is a simple problem of clip distance.
 
If you are using the SimpleUniverse class you can use the following method:
 
simpleU.getViewer().getView().setBackClipDistance(20d);
 
Cheers,
Bobby
-----Original Message-----
From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED] On Behalf Of terrolle herve
Sent: Wednesday, July 21, 2004 11:15 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] reg:problem with mouse zoom

hi,
 
there is nothing with boundSphere but with your wiewing platfrom.
I do not remenber the method how allow you to increase the distance you can see the object. But you should have a look at the available method.
You can also have a look at the forum. Iam sure this is explain somewhere.
 
if you do not find it i try to have a look before tonigth.
 
read the doc.
 
Herve
-----Message d'origine-----
De : RAHUL KHANNA <[EMAIL PROTECTED]>
À : [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date : mardi 20 juillet 2004 19:01
Objet : [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! =========================================================================== 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".
=========================================================================== 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