POV-Ray : Newsgroups : povray.advanced-users : rgb vs srgb : Re: rgb vs srgb Server Time
1 Jul 2024 04:50:34 EDT (-0400)
  Re: rgb vs srgb  
From: clipka
Date: 12 Sep 2011 05:00:30
Message: <4e6dca2e$1@news.povray.org>
Am 12.09.2011 09:23, schrieb Thomas de Groot:
> On 11-9-2011 15:37, Ive wrote:
>
>> As I've already have stated: when you wish to feed POV-Ray with sRGB
>> values then use srgb <whatever color> and POV-Ray will de-gamma-correct
>> it for you.
>> I for one do *never* use (and I do not think) in 8bit gamma-corrected
>> values, I'm a human and I do not see any reason to imagine colors in a
>> way that was practical for computers in the 90ies of the last century.
>>
>> And, more important, I like to mix colors (like e.g. rgb Pink*0.9 +
>> Skyblue*0.1) and this works only (as I do expect it to work) when colors
>> are linear defined otherwise the result of this kind of calculation is
>> already mathematical wrong - and looks wrong.
>
> Aha! This answers my puzzle! So, what you are saying is that it is a
> matter of (personal) choice: use the 'rgb' term in the POV-Ray code and
> all is well for most if not all cases, and if one wants (for whatever
> reason) to de-gamma the colors, use 'srgb' and adapt in consequence.
> Very well! This makes my life much simpler ;-)

Um... actually it's just the other way round: Use "rgb" if your color 
values are already linear - which typically they are NOT if you use 
external color pickers, so in that case use "srgb" (and divide by 255) 
if you take colors from somewhere else, to de-gamma them for POV-Ray.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.