Hi,
I have LOD with 3 nodes and use updatecallback to Animate children, I setup 
updatecallback to my highest LOD, my when i switch to medium lod my update 
callback worked also. Is it possible to switch it off when my model switches to 
another LOD.
my updatecallback
class ModelNodeCallbackTower : public osg::NodeCallback
    {
    public:
       virtual void operator()(osg::Node* node, osg::NodeVisitor* nv)
       {
           osg::MatrixTransform* mtx = 
dynamic_cast<osg::MatrixTransform*>(node);

                     if (mtx && nv->getFrameStamp())
                     {
                          std::cout<<"!!!"<<std::endl;
                     }


    traverse(node, nv);
       }
    };  

... 

Thank you!

Cheers,
Roman

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





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

Reply via email to