Jaun, A couple of suggestions here...
1) look at the source code for setViewMatrixAsLookAt(...) to understand what it is doing with the input to create the view matrix. It calls a method makeLookAt(...) which creates an orthonormal basis in the rotation portion of the matrix from the eye,center,up input and then pre multiplies the result with the eye. 2) set the view matrix with setViewMatrixAsLookAt(...) and then get the resultant view matrix back out. Compare the returned result with your view matrix that you're passing into setViewMatrix(...) and see what is different. -Shayne -----Original Message----- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Juan Herrera Sent: Monday, November 28, 2011 11:07 PM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Setting modelview matrix withviewer.getCamera()->setViewMatrix(modelViewMatrix) not working I might add that viewer.getCamera()->setViewMatrixAsLookAt(eye, center, up) does work. Why is this different? Cheers, Juan Herrera ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44086#44086 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org