Does that mean it’s used incorrectly in OcclusionQueryNode::getPassed()? That was what I was basing my understanding on. Gedalia
On Sun, May 13, 2018 at 10:57 AM Robert Osfield <[email protected]> wrote: > Hi Gedalia, > > On 13 May 2018 at 15:27, Gedalia Pasternak <[email protected]> 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 > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- DI-Guy Engineering Lead, VT MÄK 150 Cambridge Park Drive, 3rd Floor, Cambridge, MA 02140
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

