POV-Ray : Newsgroups : povray.newusers : Colors come out wrong. Server Time
4 Nov 2024 23:19:55 EST (-0500)
  Colors come out wrong. (Message 1 to 2 of 2)  
From: FrEaK
Subject: Colors come out wrong.
Date: 28 Aug 2004 17:55:01
Message: <web.4130fefc853b32181f3981d0@news.povray.org>
Hi.  Obviously a complete noob here, so I'd appreciate any help/explanation.

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?

Thanks


Post a reply to this message

From: Slime
Subject: Re: Colors come out wrong.
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.