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.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to