POV-Ray : Newsgroups : povray.beta-test : Gamma of interpolated colors in color maps : Re: Gamma of interpolated colors in color maps Server Time
29 Jun 2024 06:42:06 EDT (-0400)
  Re: Gamma of interpolated colors in color maps  
From: scott
Date: 4 Jan 2011 10:25:45
Message: <4d233bf9$1@news.povray.org>
> Interpolating between "red 1" and "green 1", should it always go via a
> "yellow 0.5" ? Tuning the gamma in previous formula allow to shift that
> a bit, but wouldn't a different color space be simpler and better
> instead ? (as an option of the map)

The problem is if you tune the gamma for that, you'll end up needing a 
different gamma value for every pair of colours to give the perceptually 
linear result you want.

There are colour spaces designed specifically so that equal distances 
equate to equal difference perceptions, one of these could be used 
instead of rgb (just for the interpolations, if some keyword like 
"perceptual" is specified) and it would give correct results for any 
possible input colours.

 > How do you expect to interpolate between "green 1"&  "magenta 1"
 > (opposite rgb value, but both fully saturated : should interpolated be
 > not saturated ?) ?

Green and magenta is a good example of a gradient that looks much better 
in 3.7 compared to 3.6 IMO.


Post a reply to this message

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