|
 |
"Bald Eagle" <cre### [at] netscape net> wrote:
> "GioSeregni" <gms### [at] hotmail com> 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:
>
>
Thanks for the suggestion.
I'm upgrading my POV-STL-CAD translator from 32 to 64 bit, and I realized that
before translating the pov files I need to normalize all the various syntax
expressions I used in my POV and INC files.
If I don't standardize the syntax, compiling the database for exports the
entities will become a very complicated mess.
I'll try what you suggest...
Post a reply to this message
|
 |