Hi,

Perhaps you should try :


Code:


class CullCallback : public osg::NodeCallback
{
    virtual void operator()(osg::Node* node, osg::NodeVisitor* nv)
    {
        osgUtil::CullVisitor* cullVisitor = dynamic_cast<osgUtil::CullVisitor 
*>(nv);
        bool wasCulled = cullVisitor->isCulled(*geode);
    printf("Was my geode culled? %d\n", wasCulled);

        // traverse after getting the value to get previous value
        traverse(geode, nv);
    }
};





I've dug around all over the forums and still can't seem to figure this out. 
Any help would be greatly appreciated.

Thanks for the help!
--

Christian[/quote]

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





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

Reply via email to