<div><div dir="auto">Does that mean it’s used incorrectly in <div>OcclusionQueryNode::getPassed()? That was what I was basing my understanding on.</div><div dir="auto">Gedalia</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div>On Sun, May 13, 2018 at 10:57 AM Robert Osfield <<a href="mailto:robert.osfield@gmail.com">robert.osfield@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Gedalia,<br>
<br>
On 13 May 2018 at 15:27, Gedalia Pasternak <<a href="mailto:gpasternak@mak.com" target="_blank">gpasternak@mak.com</a>> wrote:<br>
>    But won’t just simply removing it mean that adding a render leaf will be<br>
> changing what the current frame is?<br>
<br>
TraversalNumber is local value to a visitor it isn't a the frame<br>
number, this is retrieved with the osg::FrameStamp::getFrameStamp().<br>
<br>
>  For occlusion nodes I’ve realized that it’s not currently possible to use<br>
> them within instanced hierarchy without tracking which traversal generated a<br>
> given query, the cull visitor traversal index (along with other changes) can<br>
> help disambiguate which draw query it was.<br>
<br>
The FrameStamp is probably what you should be using, it's attached the<br>
CullVisitor and the osg::State as well as the viewer.<br>
<br>
Robert.<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">DI-Guy Engineering Lead, <span style="font-family:arial,sans-serif;background-color:rgb(255,255,255)"><span style="font-size:9pt;line-height:13px;color:black">VT MÄK</span></span><br><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">150 Cambridge Park Drive, </span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">3rd Floor, </span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Cambridge, MA 02140</span><span style="font-family:arial,sans-serif;background-color:rgb(255,255,255)"><br></span><br></div></div>