Hi,

after migration from OSG 3.2.0 to 3.5.1 we have discovered a bit unexpected 
behaviour of Geodes, which property setCullingActive was setted to "false". 
Suppose, we have a Geode with some linked Drawables. Now all Drawables is 
trying to make cull tests independently of parent's setCullingActive state.

I'm not sure is it a bug or feature, but the code in CullVisitor.cpp, void 
CullVisitor::apply(osg::Drawable& drawable) method looks questionably:


Code:
if (!getNodePath().empty() && getNodePath().back()->isCullingActive() && 
isCulled(bb)) return;



Could you please confirm, is that expected behaviour or it was planned that 
isCullingActive property should be asked from parent node, not current drawable 
(im apply method getNodePath().back() is already equal to drawable)?

Thank you!

Best regards,
Anton Semenov

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





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

Reply via email to