POV-Ray : Newsgroups : povray.general : colors and lightwaves : Re: colors and lightwaves Server Time
12 Aug 2024 21:27:42 EDT (-0400)
  Re: colors and lightwaves  
From: Jerry Anning
Date: 11 Jan 1999 11:36:38
Message: <369A2890.8EEF613@dhol.com>
"Rune S. Johansen" wrote:
> 
> I know the lightwave about 0.75
> micrometer gives the color <1,0,0>,
> (at least I think so) the lightwave
> 0.54 gives color <0,1,0> and lightwave
> 0.42 gives color <0,0,1>, but I need a
> formula that can calculate the color
> for ANY (visible) lightwaves. The result
> would be if I used the formula with a
> clock function or similar it would give
> a smooth color blend. The lightwaves
> don't need to be in micrometer units.
> I need this so I can improve the CD
> texture I posted earlier.

I will soon release a set of macros that will do exactly that among many
other light and color related things. If you are impatient, you can go
to http://www.fourmilab.ch/netpbm/ .  The cietoppm code contains the
needed (C) functions, which you can translate to POV without too much
trouble.  Incidentally, www.fourmilab.ch is a cornucopia of useful,
quirky and fascinating things created by John Walker, the founder of
Autodesk.  For color science background info, I also suggest that you
visit the Poynton colour faq at
http://www.inforamp.net/~poynton/Poynton-colour.html .

Jerry Anning
cle### [at] dholcom


Post a reply to this message

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