POV-Ray : Newsgroups : povray.text.scene-files : RGB-sRGB interconversion : Re: RGB-sRGB interconversion Server Time
24 Apr 2024 21:25:51 EDT (-0400)
  Re: RGB-sRGB interconversion  
From: clipka
Date: 17 Mar 2017 18:10:23
Message: <58cc5ecf@news.povray.org>
Am 17.03.2017 um 21:56 schrieb Bald Eagle:
> Mike Horvath <mik### [at] gmailcom> wrote:
> 
>> What can you use this script for? Can you use it in color maps? IIRC
>> sRGB doesn't behave as expected in color maps.
>>
>> Mike
> 
> That was the general (original) idea.
> 
> Seems to work fine (so far...) .
> 
> #declare Tone2 = <1.2, 1.2, 0.3>;
> #declare Wood = texture {
>  pigment {
>   wood
>       color_map {
>         [0.0 rgb SRGB2RGB(<121,  52, 13>/255) * Tone2]
...

I think you're talking about two different things:

- `srgb` not being allowed in parentheses (same as `rgb`, btw), which is
what you're working around, and which you just /happen/ to need in a
color_map.

- `color_map` always being interpolated in linear colour space, even if
colours are being specified using `srgb`, which I guess is what Mike is
talking about (and which the current 3.7.1 beta solves by providing the
`blend_mode` and `blend_gamma` settings).


Post a reply to this message

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