<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi Robert,<br>
    <br>
    many thanks for your answers and support. I'm far from reclaiming
    something.<br>
    So as I understand your explanation the information I expected
    during cull trversal is just not there.<br>
    So I'll look for another solution.<br>
    <br>
    Thanks again<br>
    <br>
    - Werner -<br>
    <br>
    <div class="moz-cite-prefix">Am 02.02.2021 um 13:59 schrieb Robert
      Osfield:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFN7Y+UKSFq_cX=MVff+bt57LLDQPoYvjOXfoZ5jOJoFoDE3eQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">On Tue, 2 Feb 2021 at 10:38, Werner Modenbach
          <<a href="mailto:Werner.Modenbach@modenbach-ac.de"
            moz-do-not-send="true">Werner.Modenbach@modenbach-ac.de</a>>
          wrote:<br>
        </div>
        <div class="gmail_quote">
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div> Hi Robert,<br>
            </div>
          </blockquote>
          <div><br>
          </div>
          <div>Replying to osg-users list so that others can chip in
            with insights or learn from the discussion.<br>
          </div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div> I think I'm close to getting the solution.<br>
              Unfortunately the CullStack doesn't handle any StateSets.<br>
              I also do not really understand what a StateGraph is.<br>
              I just guess, calling <i>CullVisitor->getCurrentStateGraph()->_stateSet
              </i>gives me the accumulated StateSet.<br>
              Am I right?<br>
              Or is the accumulation of StateSets somewhere in
              CullVisitor->getState()? But there is no method for
              just querying a uniform in State.<br>
              Most of the classes have only push(), pop() or apply()
              methods. No query methods.<br>
            </div>
          </blockquote>
          <div><br>
          </div>
          <div>I have touched this code for years so you are probably
            more familiar with it now than I.  <br>
          </div>
          <div><br>
          </div>
          <div>From the top of my head the CullVisitor doesn't directly
            manage individual state components like Uniform, just the
            high level StateSet.  The results of the Cull traversal are
            passed on to the a osgUitl::StateGraph that remains at the
            StateSet levels, it's only once this StateGraph is applied
            during the draw traversal does the OSG's draw traversal
            behind to handle the individual components of state like
            models, attributes and modes, and this is done via
            osg::State.</div>
          <div><br>
          </div>
          <div>What you are wanting to do is out of the ordinary, it's
            not something the OSG was specifically designed to do. 
            Whether your approach is really necessary or the best
            approach I don't know - I'm just trying to answer
            questions.  When you do go beyond what the OSG was
            originally envisaged to do you'll need to accept that you'll
            need to dig into code and figure stuff out, I can only help
            you so much.<br>
          </div>
          <div><br>
          </div>
          <div>Robert.<br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div> </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>