[osg-users] Deactivate cull mask testing

Robert Osfield robert.osfield at gmail.com
Mon Jul 29 01:07:10 PDT 2019

HI Catalin,

On Mon, 29 Jul 2019 at 08:38, Catalin Flower <inbox.icf at gmail.com> wrote:

> Is there is a way to deactivate the entire part of the engine which it is
> testing the cull mask for every node?

I believe you are the first to ever ask this question :-)

The osg::NodeVisitor, which osgUtil::CullVisitor derives from,has the the

        /** Set the NodeMaskOverride mask.
          * Used in validNodeMask() to determine whether to operate on a
node or its
          * subgraph, by OR'ing NodeVisitor::_nodeMaskOverride with the
Node's own Node::_nodeMask.
          * Typically used to force on nodes which may have
          * been switched off by their own Node::_nodeMask.*/
        inline void setNodeMaskOverride(Node::NodeMask mask) {
_nodeMaskOverride = mask; }

        /** Get the NodeMaskOverride mask.*/
        inline Node::NodeMask getNodeMaskOverride() const { return
_nodeMaskOverride; }

Perhaps this could be used.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190729/19944251/attachment.html>

More information about the osg-users mailing list