POV-Ray : Newsgroups : povray.binaries.images : Gamma issues again : Re: Gamma issues again Server Time
15 May 2024 18:33:19 EDT (-0400)
  Re: Gamma issues again  
From: clipka
Date: 30 Dec 2015 07:59:34
Message: <5683d536$1@news.povray.org>
Am 30.12.2015 um 13:31 schrieb Thomas de Groot:
> On 27-12-2015 3:42, clipka wrote:
>> My suggestion would be to stick to assumed_gamma 1.0, and use POV-Ray
>> 3.7.1's new colour_map/pigment_map "blend_mode" and "blend_gamma"
>> parameters for more control over the colour gradients. Use "blend_mode
>> 1" for entirely linear interpolation, "blend_mode 2 blend_gamma 2.2" for
>> blending matching a gamma of 2.2, or "blend_mode 3 blend_gamma 2.2" to
>> get gamma 2.2 interpolation of brightness but gamma 1.0 interpolation of
>> chromaticity.
>>
> 
> I tried it but couldn't figure out the usage of these new parameters as
> I got error messages under 3.7.1, in the pigment block as well as in the
> global_settings. Where to put them?

Right smack at the beginning of the colour_map or pigment_map block,
like so:

    pigment {
        gradient x
        colour_map {
            blend_mode 3
            blend_gamma 2.0
            [ 0.0 rgb <0,0,0> ]
            [ 1.0 rgb <1,0,0> ]
        }
    }


Post a reply to this message

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