|
![](/i/fill.gif) |
"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] dhol com
Post a reply to this message
|
![](/i/fill.gif) |