Hi,
osg::Matrixd mt;
mt->setUpdateCallback (New UpdateNode(camera));
class UpdateNode::: public osg::NodeCallback
{
osg::camera* camera;
UpdateNode(*camera)
{camera=camera;}
operate(osg::Node* node, osg::NodeVisitor* nv)
{
mt=camera->getMatrix();
traverse(osg::Node* node, osg::NodeVisitor* nv);
}
}
If can I use this way to get the camera in every Callback?
If not,how can I get the camera in UpdateCallback Node everytime?
Thank you!
Cheers,
GeoXY
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17166#17166
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org