Hi Sonya,
On 19 July 2014 09:16, Sonya Blade <[email protected]> wrote: > Dear All, > I need to switch off the camera manipulator in one of the views in > composite viewer. > Setting the view->setCameraManipulator(NULL); doesn't work in my case, > setting camera > manipulator to the 0 value doesn't help also. > What do you mean by "doesn't help"? If there is no CameraManipulator assigned to a View then View's Camera's ViewMatrix will be left alone completely and will be up to your application to update directly. By default View's are constructed without a CameraManipulator so normally one would not need to do a view->setCameraManipulator(0); > Furthermore, having calling the > view->getCamera()->setProjectionMatrixAsOrtho2D(-newx,newx,-newy,newy); > in each scrolling doesn't cause any wreak havoc or any performance > penalty, right? > It's very lightweight to update Camera's View and Projection matrix on each frame, there is essentially negligible cost. The only thing I'd add is that normally one doesn't implementing panning of view by updating the projection matrix, but by updating the view matrix. Robert.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

