[osg-users] TrackBall Rotation

Robert Osfield robert.osfield at gmail.com
Tue Mar 31 02:34:44 PDT 2009


Hi Rajesh,

On Tue, Mar 31, 2009 at 9:52 AM, Rajesh.R <osgforum at tevs.eu> wrote:

> How does OSG uses the  Rotation matrix computed by TrackBall
> functionality?.
>
> Whether setviewbyMatrix functionality can  use  rotation matrix for viewing
> the rotation.
>

The osgViewer::Viewer updateTraversal() copies the trackball matrix across
to the viewers camera on each frame.  Go look at the code.  It doesn't use
the "Rotation matrix" as there is no rotation matrix in the
TrackballManipulator, just a complete 4x4 matrix.

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


More information about the osg-users mailing list