[osg-users] How to get Center Parameter of CameraManipulator

duc nguyen osgforum at tevs.eu
Tue Mar 14 20:27:58 PDT 2017


Hi,
After setCameraManipulator for my viewer i can get the Eye parameter of camera but cannot get the Center parameter to get the point of my camera looking at. How to get this value?

Here is the way i get the Eye parameter:


Code:
osg::Matrixd mt = _viewer->getCameraManipulator()->getMatrix();
Vec3d eye = mt.getTrans();





Thank you!

Cheers,
duc

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70495#70495








More information about the osg-users mailing list