<div dir="ltr"><div>Ah, right, now I see it!</div><div><br></div><div>Thank you both! It's working now.<br></div><br>On Thursday, May 21, 2020 at 5:48:32 AM UTC-3, OpenSceneGraph Users wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
  
    
  
  <div>
    Hi Rodrigo,<br>
    <br>
    from my understanding the number of Billboards, each an individual
    instance, is not<br>
    the problem in OSG. The cull traversal has to handle it independant
    of being an individual <br>
    instance or being a single instance, reused after a transform. So
    you can create them and give names to them.<br>
    The important point is the resource of the icons. You should load
    them externally and assign them to the billboards<br>
    by using their pointers. This will ensure OSG will keep only one
    instance of each kind of icon.<br>
    <br>
    - Werner -<br>
    <br>
    <div>Am 21.05.2020 um 10:11 schrieb
      OpenSceneGraph Users:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div>Thank you for your reply, Robert, but one of us is not
          understanding the other.</div>
        <div><br>
        </div>
        <div>"if you are reuse the same subgraph the node above the
          reused part like the osg::Billboard is what is unique so put
          your unique name on that"</div>
        <div><br>
        </div>
        <div>Actually, I have only one osg::Billboard
          (geodeHidreletrica) for hundreds of hydroelectric dam icons
          (thus hundreds of different names). Should I have hundreds of
          billboards? Hundreds of quads/geometries? I don't quite get
          how addDrawable copies the icons to different places using
          (what seems to be) a single osg::Geometry. In which object
          exactly should I put each different name?<br>
        </div>
        <div><br>
        </div>
        <div>Thanks again,</div>
        <div>Rodrigo.<br>
        </div>
        <br>
        On Thursday, May 21, 2020 at 3:30:32 AM UTC-3, OpenSceneGraph
        Users wrote:
        <blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div dir="ltr">
            <div>If the approach is producing good enough performance
              then I'd stick with it.  It's a long way from the most
              optimal way you could do this type of task, but all the
              alternatives are more complicated and require deeper
              understanding of OSG/OpenGL/shaders. I'll not attempt to
              make suggestions as you should only ever make solutions
              more complicated if you really have to.</div>
            <div><br>
            </div>
            <div>As for giving the objects different names, all objects
              in the scene graph support setName/getName, if you are
              reuse the same subgraph the node above the reused part
              like the osg::Billboard is what is unique so put your
              unique name on that nodes.  The intersection traversal
              will return the whole NodePath to the intersected drawable
              so you just need to check the NodePath to find all the
              associated names.</div>
            <div><br>
            </div>
            <div>Robert.<br>
            </div>
          </div>
        </blockquote>
      </div>
      -- <br>
      You received this message because you are subscribed to the Google
      Groups "OpenSceneGraph Users" group.<br>
      To unsubscribe from this group and stop receiving emails from it,
      send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="UjvlpMyHBgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">osg-...@<wbr>googlegroups.com</a>.<br>
      To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/2f1ac1bd-fc93-4001-89cc-039e4554324e%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/msgid/osg-users/2f1ac1bd-fc93-4001-89cc-039e4554324e%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;" onclick="this.href='https://groups.google.com/d/msgid/osg-users/2f1ac1bd-fc93-4001-89cc-039e4554324e%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter';return true;">https://groups.google.com/d/<wbr>msgid/osg-users/2f1ac1bd-fc93-<wbr>4001-89cc-039e4554324e%<wbr>40googlegroups.com</a>.<br>
      <br>
      <fieldset></fieldset>
      <pre>______________________________<wbr>_________________
osg-users mailing list
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="UjvlpMyHBgAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">osg-...@lists.<wbr>openscenegraph.org</a>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Flists.openscenegraph.org%2Flistinfo.cgi%2Fosg-users-openscenegraph.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhxcobqaKtkSCnaCeBWJ1fFl93mw';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Flists.openscenegraph.org%2Flistinfo.cgi%2Fosg-users-openscenegraph.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhxcobqaKtkSCnaCeBWJ1fFl93mw';return true;">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a>
</pre>
    </blockquote>
    <br>
  </div>

</blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/c1a10db6-d2ac-4b17-9963-cd4702c9c709%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/c1a10db6-d2ac-4b17-9963-cd4702c9c709%40googlegroups.com</a>.<br />