[External] : Re: [Feature Proposal]: TriangleMesh - Vertex Color Support
Kevin Rushforth
kevin.rushforth at oracle.com
Wed Sep 4 20:07:37 UTC 2024
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.
Short answer: no, there is nothing explicitly needed for gamma correction
-- Kevin
[1] https://en.wikipedia.org/wiki/SRGB
On 9/4/2024 12:34 PM, Andy Goryachev wrote:
>
> Here is a good example -
>
> https://www.panotools.org/dersch/gamma/gamma.html
>
> -andy
>
> *From: *Knee Snap <kneester77 at gmail.com>
> *Date: *Wednesday, September 4, 2024 at 12:24
> *To: *Andy Goryachev <andy.goryachev at oracle.com>
> *Cc: *openjfx-dev at openjdk.org <openjfx-dev at openjdk.org>
> *Subject: *[External] : Re: [Feature Proposal]: TriangleMesh - Vertex
> Color Support
>
> I don't know what gamma refers to in the context of vertex colors, sorry.
>
> It's not using the gamma color space if that's the question (but
> neither is the rest of JavaFX 3D).
>
> If gamma is meant as opacity, then setting the alpha color value will
> control opacity.
>
> On Wed, Sep 4, 2024, 7:44 AM Andy Goryachev
> <andy.goryachev at oracle.com> wrote:
>
> I am not a 3D expert; one question: how is the gamma value set for
> color interpolation?
>
> Thanks!
>
> -andy
>
> *From: *openjfx-dev <openjfx-dev-retn at openjdk.org> on behalf of
> Knee Snap <kneester77 at gmail.com>
> *Date: *Tuesday, September 3, 2024 at 23:53
> *To: *openjfx-dev at openjdk.org <openjfx-dev at openjdk.org>
> *Subject: *[Feature Proposal]: TriangleMesh - Vertex Color Support
>
> Hello all,
>
> This is a continuation of a previous email thread: "[Feature
> Proposal] Vertex Colors on TriangleMesh".
>
> 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)
>
> *Feature
> Proposal:*https://github.com/Kneesnap/misc-public/blob/main/documents/javafx/feature-proposals/vertex-colors/proposal.md
> <https://urldefense.com/v3/__https:/github.com/Kneesnap/misc-public/blob/main/documents/javafx/feature-proposals/vertex-colors/proposal.md__;!!ACWV5N9M2RV99hQ!NdkJ9fSxFoeXCq6jCaYi5kCy2AQKgN0bqX5TvGoacJDqtLBwB2s_9pXshOJw88YKcqfB63dnYS_5axHwJ8GO3VNm$>
>
> 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.
>
> *What's next?*
>
> 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.
>
> 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.
>
> After API discussion concludes, I plan to pass it off to Kevin for
> review/approval, and if it is approved, the subsequent CSR creation.
>
> Thanks!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240904/4f688162/attachment-0001.htm>
More information about the openjfx-dev
mailing list