I've done this before, several times, but now I can't see where the problem is.
What I want is simply to get the modelviewmatrix from the cullvisitor. But it returns the identity matrix. The viewpoint and modelviewmatrix are unchanged even if I move the camera around.
// Attach callback geode->setCullCallback(new MyCullCallback()); class MyCullCallback : public osg::NodeCallback { public: MyCullCallback() : osg::NodeCallback() { } void operator () (osg::Node* node, osg::NodeVisitor* nv) { osgUtil::CullVisitor* cv = dynamic_cast<osgUtil::CullVisitor*>(nv); if(cv) { cv->getModelViewMatrix(); // Returns identity matrix. cv->getViewPoint(); // Returns (0,0,0) } ... Is not this the way to do it? What am I missing? -- Joakim Simonsson _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org