POV-Ray : Newsgroups : povray.general : rgb color looks dark : Re: rgb color looks dark Server Time
30 Jul 2024 12:32:01 EDT (-0400)
  Re: rgb color looks dark  
From: Warp
Date: 13 Jul 2009 10:13:29
Message: <4a5b4109@news.povray.org>
clipka <nomail@nomail> wrote:
> This is a Gamma problem: Paint shows you the actual values stored in the image
> file, which are typically gamma-corrected for a display gamma of ~2.2, while
> POV-Ray works with linear color values.

> You need to gamma-"un-correct" the values from Paint before using them in
> POV-Ray; the following code should do the job:

>   color rgb <pow(R/255,GAMMA),pow(G/255,GAMMA),pow(B/255,GAMMA)>

> Don't know by heart whether you need to use GAMMA=2.2 or GAMMA=1/2.2 though.

  Isn't assumed_gamma used for this exact purpose? AFAIK it makes the
correction to all colors used in the SDL.

-- 
                                                          - Warp


Post a reply to this message

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