POV-Ray : Newsgroups : povray.advanced-users : vlength( ) : Re: vlength( ) Server Time
30 Jul 2024 08:22:52 EDT (-0400)
  Re: vlength( )  
From: Ron Parker
Date: 12 Jun 2000 19:31:22
Message: <slrn8katie.7pu.ron.parker@linux.parkerr.fwi.com>
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

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