[osg-users] Bug in Cull Visitor

Robert Osfield robert.osfield at gmail.com
Sun May 13 07:57:19 PDT 2018


Hi Gedalia,

On 13 May 2018 at 15:27, Gedalia Pasternak <gpasternak at mak.com> wrote:
>    But won’t just simply removing it mean that adding a render leaf will be
> changing what the current frame is?

TraversalNumber is local value to a visitor it isn't a the frame
number, this is retrieved with the osg::FrameStamp::getFrameStamp().

>  For occlusion nodes I’ve realized that it’s not currently possible to use
> them within instanced hierarchy without tracking which traversal generated a
> given query, the cull visitor traversal index (along with other changes) can
> help disambiguate which draw query it was.

The FrameStamp is probably what you should be using, it's attached the
CullVisitor and the osg::State as well as the viewer.

Robert.


More information about the osg-users mailing list