Hi,
 
When I set my camera's position to (100.0, 60.0, 100.0) using 
 
matrix.setTrans(100.0, 60.0, 100.0);
keyswitchmanipulator->setByMatrix(matrix);
 
the camera cannot be zoomed in any further. Must I change the CENTER vector of 
the camera to (0,0,0) from (100.0, 60.0, 100.0) before I can zoom in any 
further? How do I change the CENTER vector of the camera?
 
Regards,
Tim

________________________________

From: [EMAIL PROTECTED] on behalf of Robert Osfield
Sent: Mon 5/15/2006 4:45 PM
To: osg users
Subject: Re: [osg-users] Camera zoom problem


On 5/15/06, #POH CHENG GUAN# <[EMAIL PROTECTED]> wrote: 

        I setup my viewer by using the following settings:
        
        unsigned int settings = osgProducer::Viewer::TRACKBALL_MANIPULATOR |
                                        
osgProducer::Viewer::TERRAIN_MANIPULATOR |
                                        osgProducer::Viewer::SKY_LIGHT_SOURCE | 
                                        osgProducer::Viewer::STATS_MANIPULATOR;
        
        _viewer->setUpViewer(settings);
        
        Does this mean that I've implemented trackball in my program? Please 
enlighten as I'm a newbie in openscenegraph. 
        


Yes you have enable the osgGA::TrackballManipulator (not a Producer::Trackball 
which is entirely different trackball implementation)

I can't comment on the zoom in problem its not something I've come across, so 
its likely something else in the way you've set up the viewer is different. The 
viewer realize function kicks off the a camera manipulator set up so that the 
manipulator knows about the scene graph that its viewing.  Perhaps you've 
loaded your data after this point by manipulator hasn't been imformed about it. 

Robert.

Robert.

<<winmail.dat>>

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to