Hi,
I want to set the modelview matrix with
viewer.getCamera()->setViewMatrix(modelViewMatrix) like in the
following code:
int main(int argc, char **argv)
{
osgViewer::Viewer viewer;
osg::Node* rootNode = createRootNode();
viewer.setSceneData(rootNode);
return viewer.run();
}
Later, in an osg::NodeCallback, I perform:
viewer.getCamera()->setViewMatrix(modelViewMatrix);
But the modelview matrix isn't modified at all.
On the other hand,
viewer.getCamera()->setProjectionMatrix(projectionMatrix) seems to
work.
What should I do to the viewer in order for setViewMatrix() to work?
Thank you!
Cheers,
Juan
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org