[osg-users] Camera control and view matrix

Paul Martz pmartz at skew-matrix.com
Thu Sep 18 13:06:29 PDT 2008


Grepping the osgViewer source for TrackballManipulator should reveal that
you only get one by default if you call Viewer::run(). Don't call that,
instead call Viewer::done() and Viewer::frame(). Then you won't get a
default camera manipulator.
   -Paul
 


  _____  

From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Renan
Mendes
Sent: Thursday, September 18, 2008 11:39 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Camera control and view matrix


Hi, Robert. 

You've said:

"As for examples of manage the view matrix, there should be examples in
the archives, but in the end it all boils down to not using a
CameraManipulator and instead calling on each frame:

 viewer.getCamera()->setViewMatrix(viewMatrix);"

How do I stop using the default camera manipulator, that I believe is
TrackballManipulator? Thanks.

Renan M Z Mendes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080918/30930756/attachment-0003.htm>


More information about the osg-users mailing list