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

2018-01-11 Thread Julien Valentin
Hi Ben
If I remember correctly getHomePosition() doesn't refer to the camera 
dynamic(t) view center but to the static(t) center of the scene...
Cheers


cfjob wrote:
> Hi,
> 
> Why not use getHomePosition(), which is a member of CameraManipulator
> ... 
> 
> Thank you!
> 
> Cheers,
> Ben


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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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

2018-01-10 Thread Ben Chern
Hi,

Why not use getHomePosition(), which is a member of CameraManipulator
... 

Thank you!

Cheers,
Ben

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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

2017-03-15 Thread duc nguyen
ah, now i can get exactly position of cameramanipulator object by 
getTransformation method of TrackballManipulator object
duc

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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

2017-03-15 Thread duc nguyen
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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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

2017-03-15 Thread Werner Modenbach

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@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: i...@texion.eu
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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

2017-03-14 Thread 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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org