When I set the camera, I use code essentially like yours and it works
fine. So you'll need to be more specific when you say "it does not do
what it's supposed to do", otherwise no one will be able to help you.
Paul Martz
Skew Matrix Software LLC
_http://www.skew-matrix.com_ <http://www.skew-matrix.com/>
+1 303 859 9466
Rabbi Robinson wrote:
Hi,
I need to position my camera at certain location and look at another. Can
someone tell me how to do that?
I have the following code the it does not do what it's supposed to do
camera->setProjectionMatrixAsPerspective(45.0, 1.0, 0.5, 1000);
camera->setProjectionMatrix(osg::Matrix::lookAt(Vec3(0, 0, 200), Vec3(0, 0, 0),
Vec3(0, 1, 0)));
Thank you!
Cheers,
Rabbi
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=22562#22562
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org