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
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org