Hi All, On 15 May 2014 09:42, Robert Osfield <[email protected]> wrote: > I hadn't thought of this enlarged bounding volume issue with adding > Drawable directly to Group. The solution would be to check whether a > child is a Drawable and has a bounding box and then handle this in the > Group::computeBound(). I have look at implementing this now.
I have just checked a change to Group::computeBound() so that is uses a Drawable::getBoundingBox() when a child is a Drawable. This should mean that the Geode containing Drawables, or a Group containing Drawables will have the same bounding volume and hence culling effectiveness. To support this change I also added a Node::asDrawable() and Node::asGeometry() to provide a low cost way of casting to Drawable and Geometry. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

