On 8/22/07, Paul Martz <[EMAIL PROTECTED]> wrote:
> >     viewer.getCamera()->setProjectionMatrix(...);
>
> Hi Robert -- That's good for the projection matrix. If I can, I'd like to
> explore setting the view matrix a little further.
>
> Seems like there are three ways an osgViewer-based app can set the view
> matrix:
>
> 1) Attach a camera manipulator to the viewer. The camera manipulator owns
> setting the view, the app need do nothing else.
>
> 2) Don't attach a camera manipulator. The app owns changing the view by
> calling viewer->getCamera() and using the camera's many view-setting
> methods.
>
> 3) Like 1) above, except the app can explicitly change the view by calling
> into the camera manipulator (e.g., setByMatrix()).
>
> Is that a pretty good summary? Comments and corrections, please.

The fourth way is to attach a custom update callback to the camera.

Robert
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to