POV-Ray : Newsgroups : povray.general : srgb vs. rgb for *every* color in v3.7xx? : Re: srgb vs. rgb for *every* color in v3.7xx? Server Time
2 May 2024 22:46:55 EDT (-0400)
  Re: srgb vs. rgb for *every* color in v3.7xx?  
From: Kenneth
Date: 15 Feb 2016 09:50:00
Message: <web.56c1e45ae2de51bf33c457550@news.povray.org>
scott <sco### [at] scottcom> wrote:
> > Should I also use it in lights, media, etc. etc.? In other words, for
> > *everything* that uses a color? There's a big visual difference when using rgb
> > vs. srgb in lights, for example.
>

.... and I forgot to mention ambient light and emission.

> It depends where you get the numbers from that you are using.
>
> If you are just making them up to get something that looks nice, it
> doesn't matter.
>

Here's what seems to be a kind of 'unknown' (from a practical standpoint of just
creating 'artistically pleasing' scenes, not necessarily scientifically-accurate
ones.)

Using a light as an example:
Let's say I have an object with an srgb color of <.3,.5,.7>, and I include a
light from 3.7's 'insert menu' which has rgb as a color type. A LINEAR color, as
far as I know. I make the light's color <.2,1,.4>. That will produce a final
visual color on the object of some particular hue, saturation and brightness.
Hopefully, it will match what I had in my mind's eye (assuming that I have some
knowledge of color mixing.)

At this point, I naively assume that the color I see (its HSB) is the 'correct'
color under that lighting condition (IF I could reference some kind of color
chart to compare it to.) But, not having such a reference, I don't know for
sure.

Now I change the light's color to srgb-- which produces a *different* final HSB
(due to the gamma curve now being applied to BOTH the light's color and the
object's color.)

So I need to make a choice about the light, of which color type to use. Yet, I
don't know which of the object's final HSB values is the truly correct one,
given the vector colors I've chosen.


Post a reply to this message

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