On Mon, 12 Jun 2000 15:40:32 -0700, SamuelT wrote:
>It's for the eval_pigment stuff I've been using. I needed to convert a color
>vector into a float value so I could use it for elevation. The best way I
>could think of doing this would be averaging the components of the color
>vector. I'm now using a macro instead of vlength, and it works great.
Use the NTSC conversion for rgb to luminance. You should see some examples
of it in the POV source. Two of them might even match. :)
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|