Hi Gedalia, On 13 May 2018 at 15:27, Gedalia Pasternak <gpaster...@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. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org