POV-Ray : Newsgroups : povray.general : question about same code(?) and different render : Re: question about same code(?) and different render Server Time
22 Mar 2026 03:50:30 EDT (-0400)
  Re: question about same code(?) and different render  
From: Bald Eagle
Date: 20 Mar 2026 08:15:00
Message: <web.69bd393c2834f0ea844aba0825979125@news.povray.org>
"GioSeregni" <gms### [at] hotmailcom> wrote:

> triangle{<3.2475,.9143,6.0001><3.4358,.9376,5.9847><3.2475,.9376,6.0047>
> pigment{color rgb<255/255,63/255,0/255>}}
>
> triangle{<3.2475,.9143,6.0001><3.4358,.9376,5.9847><3.2475,.9376,6.0047>
> pigment{color rgb<1,63/255,0>}}

This is VERY interesting Gio.

Apparently the color keyword applies gamma handling,
but using just rgb is linear color.

Remove the color keyword and see if the colors are the same.

I'd also be interested to see what happens if you do your multiplication first.
#declare Color = <255/255,63/255,0/255>;
pigment{color rgb Color}}

I guess "color" triggers legacy gamma correction rules, which exists for
backwards compatibility.

- BE


gamma‑encoded color values, applying the scene gamma correction rules.


And:



Post a reply to this message

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