POV-Ray : Newsgroups : povray.general : colors and lightwaves Server Time
4 Nov 2024 23:15:18 EST (-0500)
  colors and lightwaves (Message 1 to 3 of 3)  
From: Rune S  Johansen
Subject: colors and lightwaves
Date: 11 Jan 1999 10:51:28
Message: <369a1e00.0@news.povray.org>
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.

thanks,

Rune S. Johansen
http://hjem.get2net.dk/rsj


Post a reply to this message

From: Jerry Anning
Subject: Re: colors and lightwaves
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

From: Rune S  Johansen
Subject: Re: colors and lightwaves
Date: 11 Jan 1999 17:23:26
Message: <369a79de.0@news.povray.org>
Jerry Anning wrote:
>I will soon release a set of macros that will do exactly that among many
>other light and color related things.

That sounds great! Macros in POV-code I hope?

>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.

I'm not sure about that. I havn't even seen any C-code before. :(

>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 .


It looked a bit complicated to me and I wasn't able to find the
exact information I needed.

>
>Jerry Anning
>cle### [at] dholcom

I'm looking forward to the macros.
Please mail me or the newsgroup when they are ready :)

Rune S. Johansen
http://hjem.get2net.dk/rsj


Post a reply to this message

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