POV-Ray : Newsgroups : povray.general : Gamma un-correction : Re: Gamma un-correction Server Time
7 Aug 2024 07:15:55 EDT (-0400)
  Re: Gamma un-correction  
From: Anders K 
Date: 19 Oct 2001 09:05:48
Message: <3bd0252c$1@news.povray.org>
> I've got a whole bunch of declared colors that were designed for
> display_gamma 1.8 and no assumed_gamma.  How do I change them so they look
> the same under display_gamma 1.8, assumed_gamma 1?

I've solved this by raising all the colors to the 1.8 power, like this:
  pigment { rgb <.2, .5, .8> }
becomes
  pigment { rgb <.2, .5, .8> ^ 1.8 }

Hope this helps.

(To reverse this operation, simply take the (1/1.8) power instead of 1.8.)


Post a reply to this message

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