On 20.11.2015 2:21, Jannik Heller wrote:
I noticed that OSG is not culling empty nodes. By "empty" nodes, I mean nodes 
that do not have a bounding sphere set, so they're by default set to the invalid bounding 
sphere. isCullingActive() returns false for invalid bounding spheres, so these nodes are 
never culled.

Hi Jannik,

Unfortunately, this new cull behavior would brake my existing application 
(heavily relaying on original behavior), too. Anyway, I don't see any harm 
doing this kind of optimization on the existing intersectors, though. Luckily, 
the osg  can be extended in many ways, and with that being said, one might be 
able to simply subclass original CullVisitor and other classes of interest and 
do the special handling of the bounding volumes there. The custom CullVisitor 
can be installed on init with:

osgUtil::CullVisitor::prototype() = new CullVisitorPrivate;

Cheers,
Robert Milharcic

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

Reply via email to