[osg-users] Setting Camera View Matrix Not Taking Effect
OpenSceneGraph Users
osg-users at lists.openscenegraph.org
Tue Apr 21 17:05:00 PDT 2020
Worth pointing out that if you don’t want any camera manipulator, you can just call setCameraManipulator(NULL) on each of the Viewer’s views:
Views views;
pViewer->getViews(views);
for (Views::iterator it = views.begin(); it != views.end(); it++) {
(*it)->setCameraManipulator(NULL);
}
> On 21/04/2020, at 8:33 PM, OpenSceneGraph Users <osg-users at lists.openscenegraph.org> wrote:
>
> Hi, camera settings are updated frame by frame by the camera
> manipulator, so although you are changing the settings, the manipulator
> resets them to whatever it wants. It is created by default when you
> just call "run()" on a viewer (it can be seen in the source code).
>
> You should modify the camera manipulator to do what you want.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200422/f27c16de/attachment.html>
More information about the osg-users
mailing list