|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |