On Wed, Jul 7, 2010 at 4:12 PM, Andy Skinner <[email protected]>wrote:
> What is the difference between the cull callback set on a Drawable and a > NodeCallback set as a cull callback on a Node? > > I saw one thread on the list where someone was confusing them, and the > difference was mentioned, but not spelled out. It appears the > Drawable::CullCallback is used to decide whether to cull the drawable. What > does the cull callback on the Node do? > > The difference stems from the fact that a Drawable isn't a first-class scene graph node and exists below the bottom leaves of the scene graph. a Node cull callback is responsible for continuing the traversal by calling traverse() on its children if they are not culled. A Drawable cull callback returns a true or false indication whether or not the Drawable should be culled. You can actually do more than that in a Drawable cull callback, but you would need to get down and dirty with the internals of the CullVisitor class. Tim > thanks > andy > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

