POV-Ray : Newsgroups : povray.advanced-users : rgb vs srgb : Re: rgb vs srgb Server Time
1 Jul 2024 04:53:12 EDT (-0400)
  Re: rgb vs srgb  
From: clipka
Date: 12 Sep 2011 05:11:48
Message: <4e6dccd4$1@news.povray.org>
Am 11.09.2011 17:50, schrieb Ive:

>> Curiosly, I noticed that
>>
>> #version 3.7;
>> global_settings{assumed_gamma 2.2}
>> background{rgb <213,127,79>/255}
>>
>> gives a slighty different result than just:
>>
>> background{rgb <213,127,79>/255}
>>
>> The last gives back the correct <213,127,79>, while the former gives
>> <214,128,78>. ?!?!?
>>
>
> looks pretty much like the difference between a simple power 2.2 and the
> sRGB gamma response curve (composed of two functions and just 'close' to
> 2.2) to me.

... and that's what it is. To be precise, in the absence of a #version 
statement, RC3 defaults to "assumed_gamma sRGB" rather than 
"assumed_gamma 2.2". (Likewise, File_Gamma defaults to "sRGB" as well.)

The combination

   #version 3.7;
   global_settings{assumed_gamma 2.2}
   background{rgb <213,127,79>/255}

with

   File_Gamma=2.2

should give you <213,127,79> in Gimp as well.


Post a reply to this message

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