POV-Ray : Newsgroups : povray.general : strange problem with srgb color in light_source : Re: strange problem with srgb color in light_source Server Time
9 May 2021 06:14:35 EDT (-0400)
  Re: strange problem with srgb color in light_source  
From: Subclick
Date: 1 Apr 2021 07:51:22
Message: <87tuoqz0hz.fsf@sp.am>
Thomas de Groot <tho### [at] degrootorg> writes:

> If I remember correctly, Clipka always hammered on:
> - NEVER do this: srgb <.5, .3, .7>*50000;
> - ALWAYS do this: srgb <.5*50000, .3*50000, .7*50000>;

If anything, the latter makes it clearer the multiplications are being
done /before/ interpreting the vector’s components as sRGB color
values.  If you want to multiply a light source’s intensity, you have to
either store the color in a variable and then multiply it, like Kenneth
did, or use a function to convert the sRGB values to linear RGB and
multiply the latter.  From reading the documentation, I’d expect this to
work, too, but unfortunately I get an error when I run it:

  C4 = color (srgb <.5, .3, .7>)*50000;

Post a reply to this message

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