POV-Ray : Newsgroups : povray.general : Colour from single trace : Re: Colour from single trace Server Time
25 Apr 2024 08:08:13 EDT (-0400)
  Re: Colour from single trace  
From: Alain
Date: 28 Oct 2018 21:18:01
Message: <5bd65fc9$1@news.povray.org>
Le 18-10-28 à 12:50, Kenneth a écrit :
> 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.
> 
> 
> 
> 

Also, it probably won't work for UV mapped textures.


Post a reply to this message

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