<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi Robert,<br>
    <br>
    I had a look at the code in osg::Geometry. The lines in question
    are:<br>
    <br>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#808000;">if</span><span style=" color:#c0c0c0;"> </span>(<span style=" color:#c0c0c0;"> </span><span style=" color:#092e64;">handleVertexAttributes</span><span style=" color:#c0c0c0;"> </span>)
<span style=" color:#c0c0c0;">    </span>{</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#808000;">for</span>(<span style=" color:#808000;">unsigned</span><span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">int</span><span style=" color:#c0c0c0;"> </span><span style=" color:#092e64;">index</span><span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">0</span>;<span style=" color:#c0c0c0;"> </span><span style=" color:#092e64;">index</span><span style=" color:#c0c0c0;"> </span><<span style=" color:#c0c0c0;"> </span><span style=" color:#800000;">_vertexAttribList</span>.<span style=" color:#00677c;">size</span>();<span style=" color:#c0c0c0;"> </span>++<span style=" color:#092e64;">index</span>)</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span>{</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">            </span><span style=" color:#808000;">const</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">Array</span>*<span style=" color:#c0c0c0;"> </span><span style=" color:#092e64;">array</span><span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span style=" color:#800000;">_vertexAttribList</span>[<span style=" color:#092e64;">index</span>].<span style=" color:#00677c;">get</span>();</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">            </span><span style=" color:#808000;">if</span><span style=" color:#c0c0c0;"> </span>(<span style=" color:#092e64;">array</span><span style=" color:#c0c0c0;"> </span>&&<span style=" color:#c0c0c0;"> </span><span style=" color:#092e64;">array</span>-><span style=" color:#00677c;">getBinding</span>()==<span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Array</span>::<span style=" color:#800080;">BIND_PER_VERTEX</span>)</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">            </span>{</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">                </span><span style=" color:#092e64;">vas</span>-><span style=" color:#00677c;">setVertexAttribArray</span>(<span style=" color:#092e64;">state</span>,<span style=" color:#c0c0c0;"> </span><span style=" color:#092e64;">index</span>,<span style=" color:#c0c0c0;"> </span><span style=" color:#092e64;">array</span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">            </span>}</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span>}</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>}</pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    Do you remember, why the condition <br>
                getBinding() == BIND_PER_VERTEX<br>
    is there?<br>
    <u>But(!) </u>the same condition is at _normalArray, _colorArray
    etc. and they are handled correct with BIND_OVERALL.<br>
    <br>
    I don't understand what is really done there. Sorry.<br>
    <br>
    - Werner -<br>
    <br>
    <div class="moz-cite-prefix">Am 09.03.2021 um 21:27 schrieb Robert
      Osfield:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFN7Y+WreFWwm0PcZmDi9Ond=PV_cUNCZ_mkgj0q96E5BHKP4w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">HI Werner,
          <div><br>
          </div>
          <div>I can't think of think of reason that would cause a
            problem.  It's quite a while since I look at the
            associated code so it might be simply that I've forgotten
            constraints.  Have a look at the
            osg::Geometry::drawImplementation() to see if there is a
            constraint on vertex attributes needing to be
            BIND_PER_VERTEX.</div>
          <div><br>
          </div>
          <div>If you were using the VSG that I'd suggest running with
            Vulkan debug and API layer as it's great for picking up
            errors.  Are there any OpenGL errors being produced?</div>
          <div><br>
          </div>
          <div>Robert. </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>