Hi Laurens,

On 25 January 2013 16:57, Laurens Voerman <[email protected]> wrote:
> Hi Robbert,
> the _resultmask is now inherited from an unrelated node, and not set to
> _maskStack.back()  like it would be if osg::Polytope::contains(const
> osg::BoundingSphere& bs) would do if culling was enabled.

OK, this makes it a bit clearer.

Could the problem stem from the fact that Polytop::popCullingMask()
doesn't set the _resultsMask, instead deferring to the next
isCulled(BoundingSphere&)?

Or perhaps just change CullStack::isCulling(Node&) so that it does
something like:

if (node.isCullingActive()) return
getCurrentCullingSet().isCulled(node.getBound());
else  getCurrentCullingSet().resetCullingMask(); // where
resetCullingMask() needs to be implemented to the _resultMask =
_maskStack.back();

I'm more inclined to think that popCullingMask might be the most
appropriate place to do a  _resultMask = _maskStack.back(); as this
would keep it's state more self consistent.

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

Reply via email to