POV-Ray : Newsgroups : povray.binaries.images : Another of Gamma's Smoking Guns : Re: Another of Gamma's Smoking Guns Server Time
4 May 2024 21:50:12 EDT (-0400)
  Re: Another of Gamma's Smoking Guns  
From: Kenneth
Date: 27 Dec 2016 15:30:01
Message: <web.5862ced071b7ed6e883fb31c0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:

>
> You can think of "srgb C" as (roughly) equivalent to "rgb pow(C,2.2)",
> i.e. very roughly squaring the colour value. As you may be aware, the
> square of a (positive) value below 1 is an even smaller value, while the
> square of a value above 1 is an even larger value.

Ah, of course; that makes perfect sense (now that you've explained it, ha!)

> BTW, there's a caveat when using "srgb" in light sources: To modify the
> brightness without affecting the hue, you need to use
>
>     colour (srgb <R,G,B>)*Brightness
>
> rather than
>
>     colour srgb <R,G,B>*Brightness
>
> because the latter would be interpreted as
>
>     colour srgb (<R,G,B>*Brightness)
>

Wow, that's a subtle difference that I wasn't aware of. Thanks! I'm curious--
would the same logic apply to colors in MEDIA? Or does the above formula apply
*only* to lights?


Post a reply to this message

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