POV-Ray : Newsgroups : povray.advanced-users : Wood coloring help. : Re: Wood coloring help. Server Time
28 Jul 2024 18:20:32 EDT (-0400)
  Re: Wood coloring help.  
From: Jim Charter
Date: 24 Aug 2004 13:26:16
Message: <412b7a38$1@news.povray.org>
Apon rereading your post I see that perhaps it was getting the exact 
colors that was your concern.

When dealing with compound colors like orange I sometimes find it 
helpful to compose macros which isolate how the color is varied, if for 
no other reason than to organize my mind

One such macro I find useful goes something like this:

#macro Desaturate ( Color, Factor )

         #local Compliment = <1,1,1>-Color;
         #local Compliment = Compliment*Factor;
         #local NewColor = Color+Compliment;
         #local Numerator = Color.red + Color.green + Color.blue;
         #local Denominator = NewColor.red + NewColor.green + 		 
NewColor.blue;
         #local NewColor = NewColor*Numerator/Denominator;

         NewColor
#end

This macro is intended to desaturate a color while maintaining its basic 
level of brightness.  Advanced users might wince but I find macros like 
these can help me zero in on a color.


Post a reply to this message

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