POV-Ray : Newsgroups : povray.general : Colour from single trace : Re: Colour from single trace Server Time
24 Apr 2024 16:22:45 EDT (-0400)
  Re: Colour from single trace  
From: Kenneth
Date: 28 Oct 2018 12:55:05
Message: <web.5bd5e8c7306629fe43b397d0@news.povray.org>
eval_pigment returns the 'linear' color of an object, not a gamma-bent color
(i.e., not at gamma 2.2.) I.e., it returns an rgb color, not an srgb one. If the
*original* color of your object was chosen to be srgb <...> rather than rgb, and
you want to use the returned srgb equivalent in your scene or for some other
purpose, the result should be used as  srgb <0.2,0.5,0.75>, for example, not rgb
<...>.

But if your original color was  rgb <...>, then eval_pigment will return that
same color.

As Clipka noted, eval_pigment doesn't take into account the *illumination* of
the object-- lighting, shadow, phong, etc--, just the basic strict color found
there.


Post a reply to this message

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