Hi,
I'm trying to add cameras to the scene (dropping models across the scene)
and the user could drag them or rotate them and change its parameters.
All works good for the first time, however, I lose track if the user
rotates the camera representing object. I'm banging my head with simple
math but I'm unable to figure out how the camera's center/up vector change
if the camera object rotates. I put the eye to where the node is translated
to.

I tried to figure out the rotation angle so that I could initialize the
camera with the original parameters for the center and up and then apply
rotation to the model view matrix but it doesn't seem to make the camera
look at, in the correct direction. I'm using daggers for rotating and
translating the node.

Tried looking at source for some manipulators but could not understand much.

Sorry for the noob question but would be glad if anyone could help.

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

Reply via email to