POV-Ray : Newsgroups : povray.newusers : Colors come out wrong. : Re: Colors come out wrong. Server Time
30 Jul 2024 06:24:41 EDT (-0400)
  Re: Colors come out wrong.  
From: Slime
Date: 28 Aug 2004 18:01:32
Message: <413100bc@news.povray.org>
> Basically, my colors don't come out right.  I'm trying to set the color of
a
> particular object to #FFD281 which I believe is equivalent to <1.0, 0.86,
> 0.52>.  It comes out #D2C09A.  Is my math wrong or is it something with
the
> lighting?

If the light source is not hitting the surface at a direct 90 degree angle,
or if the light source itself is not white, then the color of the surface
will not be its exact pigment color.

If it's only the angle which is causing the problem (that is, if your light
source is white but it's not hitting the surface at 90 degrees), then you
can multiply your color by a factor greater than one to make up for it:

plane {
y,0
pigment {rgb <1.0, 0.86, 0.52> * 1.5} // fiddle with the 1.5 until the
brightness is correct
}

Another option is to set the object's finish to ignore light sources and
always take the object's pigment color as its color:

finish {ambient 1 diffuse 0}

but this will prevent shadows from falling on the object and the object will
not be shaded, because it's ignoring light sources.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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