Well what I actually need is whether it is being culled in the current frame. 
Doesn't do me any good to know if it was culled on the last frame because my 
program uses lazy rendering.

Let's try switching gears, I also know you can use a DrawableCullCallback as 
well, but I can't seems to figure out how to get whether that drawable was 
culled or not either. Here's an example of what I'm trying that doesn't get me 
anywhere either.


Code:


struct DrawableCullCallback : public osg::Drawable::CullCallback
{
    virtual bool cull(osg::NodeVisitor* nv, osg::Drawable* drawable, 
osg::RenderInfo* renderInfo) const
    {
        bool wasCulled = osg::Drawable::CullCallback::cull(nv, drawable, 
renderInfo);
        printf("My drawable was culled: %d\n", wasCulled);
        return wasCulled;
    }
};





Thanks again,
--

Christian

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





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

Reply via email to