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

Werner Modenbach Werner.Modenbach at texion.eu
Wed Mar 15 01:45:26 PDT 2017


view->getCamera()->getViewMatrixAsLookAt(...)

Am 15.03.2017 um 04:27 schrieb duc nguyen:
> 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
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-- 
*TEXION Software Solutions, Rotter Bruch 26a, D-52068 Aachen*
Phone: +49 241 475757-0
Fax: +49 241 475757-29
Web: http://texion.eu
eMail: info at texion.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170315/35ad0ee6/attachment-0002.htm>


More information about the osg-users mailing list