Hi, I'm new to OSG and am in need of assistance with how to position a camera in a scene. I am using OSG 2.6.1 on linux (centos4). Here's my setting: 1) I've setup my scene (only one node - terrain). 2) I've setup my 1 and only 1 camera in my only viewer by calling: setProjectionMatrixAsPerspective ( 30.0f, static_cast<double> ( width ) /static_cast<double> ( height ), 1.0f, 10000.0f ); 3) I CAN add a slave camera & translate it in ONLY the x & y planes. I can scale too but this still is not what I'm looking for.

My Question: How to I get my Camera to be positioned at a certain spot over my terrain and looking at a particular spot on my terrain? For the life of me, I can't figure this out & I"ve been pouring through dozens of examples, the API, and trying all sorts of experiments with EVERY camera method I can find, view & viewer method I can find that might help me.

Thx everyone for your help.  I really appreciate this.

--
Sincerely, Allen

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to