Re: [osg-users] Camera Placement Question: Geocentric reference

2009-06-18 Thread Allen Saucier
Thanks Ulrich!  I got this to work!


Allen

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





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


[osg-users] Camera Placement Question: Geocentric reference

2009-06-09 Thread Allen Saucier
Hi all,
I'm having difficulty moving a camera to a specific point to look at in a 
geocentric coordinate reference frame.

I've got a geocentric point that I want my camera to look at and the point is 
in x,y,z form where x,y,z are in meters.  
I do not understand how to translate and rotate my camera to this point.

Is there a setByViewMatrix method in OSG any more?  Some examples refer to it 
and I can't find it.  If not, is there an equivalent?  Or is there an easier 
way all the way around?

Thanks for the help!


Allen

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





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


Re: [osg-users] Camera Placement Question: Geocentric reference

2009-06-09 Thread Ulrich Hertlein

On 09.06.2009 17:59 Uhr, Allen Saucier wrote:

I've got a geocentric point that I want my camera to look at and the point is 
in
x,y,z form where x,y,z are in meters. I do not understand how to translate and 
rotate
my camera to this point.

Is there a setByViewMatrix method in OSG any more?  Some examples refer to it 
and I
can't find it.  If not, is there an equivalent?  Or is there an easier way all 
the way
around?


There is osg::Camera::setViewMatrixByLookAt() which lets you specify an eye, lookat, and 
up vector.


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