<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    Color calculations are assumed to be done in sRGB space [1]. There
    is nothing specific to adding vertex colors to 3D meshes that would
    impact this.<br>
    <br>
    Short answer: no, there is nothing explicitly needed for gamma
    correction<br>
    <br>
    -- Kevin<br>
    <br>
    [1] <a class="moz-txt-link-freetext" href="https://en.wikipedia.org/wiki/SRGB">https://en.wikipedia.org/wiki/SRGB</a><br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 9/4/2024 12:34 PM, Andy Goryachev
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:DS0PR10MB62001EB8A46B82D6FB71685FE59C2@DS0PR10MB6200.namprd10.prod.outlook.com">
      
      <meta name="Generator" content="Microsoft Word 15 (filtered medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:"Yu Gothic";
        panose-1:2 11 4 0 0 0 0 0 0 0;}@font-face
        {font-family:Aptos;
        panose-1:2 11 0 4 2 2 2 2 2 4;}@font-face
        {font-family:"Iosevka Fixed SS16";
        panose-1:2 0 5 9 3 0 0 0 0 4;}@font-face
        {font-family:"Times New Roman \(Body CS\)";
        panose-1:2 11 6 4 2 2 2 2 2 4;}@font-face
        {font-family:"\@Yu Gothic";
        panose-1:2 11 4 0 0 0 0 0 0 0;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:10.0pt;
        font-family:"Aptos",sans-serif;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Iosevka Fixed SS16";
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}div.WordSection1
        {page:WordSection1;}</style>
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16"">Here
            is a good example -<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""><a href="https://www.panotools.org/dersch/gamma/gamma.html" moz-do-not-send="true" class="moz-txt-link-freetext">https://www.panotools.org/dersch/gamma/gamma.html</a><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16"">-andy<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""><o:p> </o:p></span></p>
        <div id="mail-editor-reference-message-container">
          <div>
            <div>
              <div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
                <p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
                    </span></b><span style="font-size:12.0pt;color:black">Knee Snap
                    <a class="moz-txt-link-rfc2396E" href="mailto:kneester77@gmail.com"><kneester77@gmail.com></a><br>
                    <b>Date: </b>Wednesday, September 4, 2024 at 12:24<br>
                    <b>To: </b>Andy Goryachev
                    <a class="moz-txt-link-rfc2396E" href="mailto:andy.goryachev@oracle.com"><andy.goryachev@oracle.com></a><br>
                    <b>Cc: </b><a class="moz-txt-link-abbreviated" href="mailto:openjfx-dev@openjdk.org">openjfx-dev@openjdk.org</a>
                    <a class="moz-txt-link-rfc2396E" href="mailto:openjfx-dev@openjdk.org"><openjfx-dev@openjdk.org></a><br>
                    <b>Subject: </b>[External] : Re: [Feature
                    Proposal]: TriangleMesh - Vertex Color Support<o:p></o:p></span></p>
              </div>
              <div>
                <p class="MsoNormal"><span style="font-size:12.0pt">I
                    don't know what gamma refers to in the context of
                    vertex colors, sorry.<o:p></o:p></span></p>
                <div>
                  <p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
                </div>
                <div>
                  <p class="MsoNormal"><span style="font-size:12.0pt">It's
                      not using the gamma color space if that's the
                      question (but neither is the rest of JavaFX 3D).<o:p></o:p></span></p>
                </div>
                <div>
                  <p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
                </div>
                <div>
                  <p class="MsoNormal"><span style="font-size:12.0pt">If
                      gamma is meant as opacity, then setting the alpha
                      color value will control opacity.<o:p></o:p></span></p>
                </div>
                <div>
                  <p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
                </div>
                <div>
                  <p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
                </div>
                <div>
                  <div>
                    <p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
                  </div>
                  <p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
                  <div>
                    <div>
                      <p class="MsoNormal"><span style="font-size:12.0pt">On Wed, Sep 4, 2024,
                          7:44</span><span style="font-size:12.0pt;font-family:"Arial",sans-serif"> </span><span style="font-size:12.0pt">AM Andy Goryachev
                          <<a href="mailto:andy.goryachev@oracle.com" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">andy.goryachev@oracle.com</a>>
                          wrote:<o:p></o:p></span></p>
                    </div>
                    <blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
                      <div>
                        <div>
                          <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16"">I am
                              not a 3D expert; one question: how is the
                              gamma value set for color interpolation?</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
                          <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
                          <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16"">Thanks!</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
                          <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16"">-andy</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
                          <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
                          <div id="m_-2056482707633105057m_3471027650040134745m_-6314998463665956274m_4859824984813672121mail-editor-reference-message-container">
                            <div>
                              <div>
                                <div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
                                  <p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
                                      </span></b><span style="font-size:12.0pt;color:black">openjfx-dev <<a href="mailto:openjfx-dev-retn@openjdk.org" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">openjfx-dev-retn@openjdk.org</a>>
                                      on behalf of Knee Snap <<a href="mailto:kneester77@gmail.com" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">kneester77@gmail.com</a>><br>
                                      <b>Date: </b>Tuesday, September
                                      3, 2024 at 23:53<br>
                                      <b>To: </b><a href="mailto:openjfx-dev@openjdk.org" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">openjfx-dev@openjdk.org</a>
                                      <<a href="mailto:openjfx-dev@openjdk.org" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">openjfx-dev@openjdk.org</a>><br>
                                      <b>Subject: </b>[Feature
                                      Proposal]: TriangleMesh - Vertex
                                      Color Support</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
                                </div>
                                <div>
                                  <div>
                                    <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt">Hello
                                        all,<o:p></o:p></span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt">This is
                                        a continuation of a previous
                                        email thread: "[Feature
                                        Proposal] Vertex Colors on
                                        TriangleMesh".<o:p></o:p></span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt">I'm
                                        creating a new email thread
                                        because after discussion I've
                                        put together a feature proposal,
                                        and it serves largely as a
                                        summary of the previous email
                                        thread. (Better organized as a
                                        feature proposal)<o:p></o:p></span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:12.0pt">Feature
                                          Proposal:</span></b><span style="font-size:12.0pt">
                                        <a href="https://urldefense.com/v3/__https:/github.com/Kneesnap/misc-public/blob/main/documents/javafx/feature-proposals/vertex-colors/proposal.md__;!!ACWV5N9M2RV99hQ!NdkJ9fSxFoeXCq6jCaYi5kCy2AQKgN0bqX5TvGoacJDqtLBwB2s_9pXshOJw88YKcqfB63dnYS_5axHwJ8GO3VNm$" target="_blank" moz-do-not-send="true">
https://github.com/Kneesnap/misc-public/blob/main/documents/javafx/feature-proposals/vertex-colors/proposal.md</a><o:p></o:p></span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt">I had
                                        previously discussed a draft PR,
                                        but considering how simple the
                                        proposed public API additions
                                        are to discuss, I don't think
                                        it's actually that helpful.<o:p></o:p></span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:12.0pt">What's
                                          next?</span></b><span style="font-size:12.0pt"><o:p></o:p></span></p>
                                  </div>
                                  <div>
                                    <div>
                                      <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt">I'm
                                          currently happy with
                                          the design and seeing as it's
                                          been discussed already, I
                                          could probably ask Kevin for a
                                          review. But, I'd like to give
                                          another opportunity for design
                                          discussion before doing so,
                                          just in-case there are any
                                          further considerations brought
                                          up.<o:p></o:p></span></p>
                                    </div>
                                    <div>
                                      <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt">So, I
                                          open up the floor again. Does
                                          anyone have any thoughts on
                                          this proposal? Concerns?
                                          Questions? Suggestions?
                                          Constructive criticism? I
                                          eagerly await the feedback.<o:p></o:p></span></p>
                                    </div>
                                    <div>
                                      <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
                                    </div>
                                    <div>
                                      <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt">After
                                          API discussion concludes, I
                                          plan to pass it off to Kevin
                                          for review/approval, and if it
                                          is approved, the subsequent
                                          CSR creation.<o:p></o:p></span></p>
                                    </div>
                                  </div>
                                  <div>
                                    <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt">Thanks!<o:p></o:p></span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
                                  </div>
                                  <div>
                                    <p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>