<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Specification says still something different:</p>
    <p><a class="moz-txt-link-freetext" href="https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geometry3D.html#IndexedFaceSet">https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geometry3D.html#IndexedFaceSet</a><br>
      There shall be at least as many indices in the <i>colorIndex</i>
      field as there are faces in the IndexedFaceSet. If the greatest
      index in the <i>colorIndex</i> field is N, there shall be N+1
      colours in the <i>X3DColorNode</i></p>
    <p>To use the last color value if there are less values could be
      possible, but what is with TextureCoordinate? X3Dom uses modulo if
      there are less indices:<br>
      <span class="pl-smi">texCoords</span>.<span class="pl-c1">push</span>(
      texCoords[ i <span class="pl-k">%</span> lastTexCoord ] );<br>
      This behavior is used in
<a class="moz-txt-link-freetext" href="https://www.web3d.org/x3d/content/examples/Basic/HumanoidAnimation/JoeSkinTexcoordDisplacerKickIndex.html">https://www.web3d.org/x3d/content/examples/Basic/HumanoidAnimation/JoeSkinTexcoordDisplacerKickIndex.html</a></p>
    <p>But spec say that there should be as many tex coords as indices,
      nothing about a special behaviour.<br>
    </p>
    <p>But there are also FogCoordinate, Normal, X3DVertexAttributeNode.
      What special behavior should these nodes follow, more like Color
      or more like texCoord, or something very different? Confusing.
      Spec is quite clear in that point, the behavior is undefined if
      there are to less values.<br>
    </p>
    <p>Best regards,<br>
      Holger<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 27.11.19 02:37, Joseph D Williams
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:E1iZmGf-0002E5-CY@elasmtp-kukur.atl.sa.earthlink.net">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:2132626191;
        mso-list-type:hybrid;
        mso-list-template-ids:-1546505110 -1 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:\F0D8;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;
        mso-fareast-font-family:"Times New Roman";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style>
      <div class="WordSection1">
        <ul style="margin-top:0in" type="disc">
          <li class="MsoListParagraph"
            style="margin-left:0in;mso-list:l0 level1 lfo1">should the
            color node be allowed to have less entries<o:p></o:p></li>
        </ul>
        <p class="MsoNormal">than the total number of points, with
          points lacking a corresponding<o:p></o:p></p>
        <p class="MsoNormal">color getting assigned the last color in
          the color node list of colors<o:p></o:p></p>
        <p class="MsoNormal">?</p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Thanks, </p>
        <p class="MsoNormal">Yes, that’s the way color per vertex should
          also work</p>
        <p class="MsoNormal">Joe</p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div
          style="mso-element:para-border-div;border:none;border-top:solid
          #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
          <p class="MsoNormal" style="border:none;padding:0in"><b>From:
            </b><a href="mailto:andreasplesch@gmail.com"
              moz-do-not-send="true">Andreas Plesch</a><br>
            <b>Sent: </b>Sunday, November 24, 2019 12:30 PM<br>
            <b>To: </b><a href="mailto:x3d-public@web3d.org"
              moz-do-not-send="true">X3D Graphics public mailing list</a><br>
            <b>Subject: </b>Re: [x3d-public] colorMode of
            PointProperties</p>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">It looks like the PointProperties colorMode
          is a way to deal with</p>
        <p class="MsoNormal">11.4.11 PointSet which says</p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">"PointSet nodes are not lit, not
          texture-mapped, .."</p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">although in fact points can now be
          texture-mapped.</p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Since this is a change for PointSet is
          might be necessary to correct</p>
        <p class="MsoNormal">11.4.11 instead of introducing a workaround
          with colorMode.</p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">"PointSet nodes are not lit. Textures are
          applied to the full size of</p>
        <p class="MsoNormal">each point after blending as defined in
          Table 17.2."</p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">in 11.4.11 PointSet may suffice to address
          all colorMode options.</p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">On another note, should the color node be
          allowed to have less entries</p>
        <p class="MsoNormal">than the total number of points, with
          points lacking a corresponding</p>
        <p class="MsoNormal">color getting assigned the last color in
          the color node list of colors</p>
        <p class="MsoNormal">? This makes sense for the common scenario
          that there a lot of points</p>
        <p class="MsoNormal">of the same color.</p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">-Andreas</p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">On Fri, Nov 22, 2019 at 7:44 AM Andreas
          Plesch <a class="moz-txt-link-rfc2396E" href="mailto:andreasplesch@gmail.com"><andreasplesch@gmail.com></a> wrote:</p>
        <p class="MsoNormal">><o:p> </o:p></p>
        <p class="MsoNormal">> I am looking at colorMode field of the
          new PointProperties which has these options:</p>
        <p class="MsoNormal">><o:p> </o:p></p>
        <p class="MsoNormal">> POINT_COLOR shall display the RGB
          channels of the color instance defined in X3DMaterialNode or
          X3DColorNode, and the A channel of the texture if any. If no
          color is</p>
        <p class="MsoNormal">> associated to the point, the default
          RGB color (0, 0, 0) shall be used.</p>
        <p class="MsoNormal">><o:p> </o:p></p>
        <p class="MsoNormal">> TEXTURE_COLOR shall display the
          original texture with its RGBA channels and regardless</p>
        <p class="MsoNormal">> to the X3DMaterialNode or X3DColorNode
          which might be associated to the point set.</p>
        <p class="MsoNormal">><o:p> </o:p></p>
        <p class="MsoNormal">> TEXTURE_AND_POINT_COLOR shall display
          the RGBA channels of a texture added to the</p>
        <p class="MsoNormal">> RGB channels of the color defined in
          X3DMaterialNode or X3DColorNode node, and the A</p>
        <p class="MsoNormal">> channel of the texture if any. If no
          color is associated to the point, the result shall be exactly</p>
        <p class="MsoNormal">> the same as TEXTURE_COLOR.</p>
        <p class="MsoNormal">><o:p> </o:p></p>
        <p class="MsoNormal">> What is the motivation, eg. what is
          the value over standard blending behaviour, multiplying color
          and texture if both are given ?</p>
        <p class="MsoNormal">><o:p> </o:p></p>
        <p class="MsoNormal">> Also, I do not understand how summing
          RGBA channels of texture and color could be useful, as
          required by the TEXTURE_AND_POINT_COLOR option.</p>
        <p class="MsoNormal">><o:p> </o:p></p>
        <p class="MsoNormal">> At this point, I would be in favour of
          removing the field. Instead, standard lighting behaviour would
          apply. Other than color blending, this may also include
          shading if normals are provided per point.</p>
        <p class="MsoNormal">><o:p> </o:p></p>
        <p class="MsoNormal">> Andreas</p>
        <p class="MsoNormal">><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">-- </p>
        <p class="MsoNormal">Andreas Plesch</p>
        <p class="MsoNormal">Waltham, MA 02453</p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">_______________________________________________</p>
        <p class="MsoNormal">x3d-public mailing list</p>
        <p class="MsoNormal"><a class="moz-txt-link-abbreviated" href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a></p>
        <p class="MsoNormal"><a class="moz-txt-link-freetext" href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
x3d-public mailing list
<a class="moz-txt-link-abbreviated" href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>
<a class="moz-txt-link-freetext" href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Holger Seelig
Digital Media Designer

Scheffelstraße 31a
04277 Leipzig
Germany

Cellular: +49 176 420 479 37
E-Mail:   holger.seelig at create3000.de
Web:      <a class="moz-txt-link-freetext" href="http://create3000.de">http://create3000.de</a></pre>
  </body>
</html>