Hi,

The problem seemed to be twofold:

* I was first using OSG 2.8.3, for which
viewer.getCamera()->setViewMatrix(modelViewMatrix)
required that modelViewMatrix were a cv::Matrixd. This is not the case with 
3.0.1, which works with cv::Matrix too.

* Like filip suggested, I used 
viewer.getCameraManipulator()->setByMatrix(modelViewMatrix)
in the callback. It worked. I still have some registration glitches in the 
modeview matrix compared to my desired result, but maybe my original modelview 
matrix is wrong.

* I tried Paul's solution with both getCamera()->setViewMatrix() and 
getCameraManipulator()->setByMatrix(), but I wasn't able to reproduce the 
desired result (that's the solution in the Quickstart guide anyway, so I guess 
I may be missing something).

Thank you!

Cheers,
Juan Herrera

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=44125#44125





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

Reply via email to