POV-Ray : Newsgroups : povray.bugreports : Clear reference in woodmaps.inc : Re: Clear reference in woodmaps.inc Server Time
28 Sep 2024 11:06:30 EDT (-0400)
  Re: Clear reference in woodmaps.inc  
From: Dan Connelly
Date: 21 Nov 1998 11:25:36
Message: <3656E974.3B1D52F7@flash.net>
> But there is no reason to.  I think these references should instead
> be changed to "rgbt 1" to save the resources associated with loading
> the colors.inc file.

Ken has kindly pointed out to me that Clear is rgbf 1, not rgbt 1.

The case in question is the following:

#declare M_Wood19B =
color_map {
    [0.00 0.30 color rgb <0.35, 0.175, 0.0875> 
               color rgb <1.00, 0.500, 0.2500> ]
    [0.30 1.00 color rgbf 1 color rgbf 1]  // had "Clear" instead of "rgbf 1"
}


Note if this map was included in another map, for example
in an average, the result could depend on if filter or transmit
was used.  Therefore Ken is correct -- it should be "rgbf 1"
for Clear, as declared in "colors.inc".

Dan
-- 
http://www.flash.net/~djconnel/


Post a reply to this message

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