POV-Ray : Newsgroups : povray.beta-test : Colors.inc : Re: Colors.inc Server Time
28 Jul 2024 14:28:57 EDT (-0400)
  Re: Colors.inc  
From: scott
Date: 9 Oct 2008 09:01:20
Message: <48ee00a0$1@news.povray.org>
>> IMO POV should have an option to do this automatically
>
>  It has had that for a long time: assumed_gamma.

That only works at the output of the rendering engine though, it needs to 
also apply the inverse to any colours/textures at the input of the rendering 
engine.  Otherwise you need to do the inverse-gamma hack to images and 
colours to make things look right.

eg try rendering background{ color rgb <255,128,64>/255}

If the user has chosen that colour to match something else outside of POV, 
it's not going to work unless you turn off gamma correction in POV, which 
would then mean any lighting in your scene will be wrong.

The point is, most users expect that entering a colour value or supplying an 
image_map to be in their desktop colour space (ie already gamma corrected), 
but POV treats these things as being in linear colour space.


Post a reply to this message

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