|
|
Le Wed, 08 Oct 2008 11:00:40 -0400, Carlo C. a modifié des petits morceaux
de l'univers pour nous faire lire :
> Perhaps in this way? :
>
> #if (version=3.7) #declare Coral = rgb <1,127/255,80/255>; #else
> #declare Coral = rgb <1,0.498039,0>; #end
>
> Thank you for your feedback.
Beware of gamma... W3C probably has not the same gamma as povray now.
Things are fine for <1,0,0> / #FF0000, but #C00000 might be only
<0.5,0,0>, while #7F7F7F being only <0.25,0.25,0.25>
(fictional numbers here, check your gamma curves!)
To sum up, conversion from W3C colorspace might not be linear for a
povray include.
Getting colour which change from version is also a bad idea: you are not
parsing it each time you need it, but usually only once... what about
scenes with some parts in 3.6 and other parts in 3.7 ? How would you
handle that ?
Post a reply to this message
|
|