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

duc nguyen osgforum at tevs.eu
Wed Mar 15 18:26:40 PDT 2017


Dear wernerM,
I use osgGA::CameraManipulator class to manage viewer of my scene. I dont use osg::Camera class so i cannot use getViewMatrixAsLookAt method


wernerM wrote:
> 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 (http://forum.openscenegraph.org/viewtopic.php?p=70495#70495)
> > > 
> > > 
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > osg-users mailing list
> > >  ()
> > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-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 (http://texion.eu)
> eMail:  ()
> 
>  ------------------
> Post generated by Mail2Forum


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








More information about the osg-users mailing list