Thanks for taking care of my issue.
How could I take the inverse of the cows transformation ? I dont understand why this could give me what the cow is seeing. It seems that its what you do in your osg3rdpersonview example. (line 124) Mainly, could this be done by something like: osg::Matrixd mv = camera->getViewMatrix(); osg::MatrixTransform* mt = new osg::MatrixTransform; mt->setMatrix(osg::Matrixd::inverse(mv)); //where camera points to my main camera in my scene I will try it and I will give you a feedback asap. Thanks again for your help. Jon De : Paul Martz [mailto:[EMAIL PROTECTED] Envoyé : vendredi 21 mars 2008 22:51 À : 'Jonathan Delfour'; 'OpenSceneGraph Users' Objet : RE: [osg-users] Little slave cam that represents the scene For a view of what the cow is seeing, take the inverse of the cow's transformation and set it as the view matrix. Hope that helps, -Paul _____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Sent: Friday, March 21, 2008 1:56 PM To: [email protected] Subject: [osg-users] Little slave cam that represents the scene Hi Paul, Thanks for your indication. Your example is very nice ! I took it from the trac :p Unfortunately, its not quite what I expected If you take the cow, and your example, I would like to have on the top screen the model moving (like currently adding a wireframe to see what the cow see) and the other view would represent what the cow see (so we cannot see the cow). Its a view corresponding to what the eyes of the cow are seeing. I hope Im clear enough. I think I can adapt your example to my needs, but my osg skill (like my English) are poor! So if you have indications on how adapt it, it would be very nice! Thanks again for your help and your very nice example. Jon
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

