|
|
Hi all.
I suppose this is perhaps a little off-topic, but hey...
I was wondering if anyone can think up a good way to arrive at a
false-colour image. Basically, I'm planning to use radiosity to make a
grey-scale image, which I'd then like to convert to false-colour. In other
words, the black areas stay black, but very dark grey becomes red, lighter
grey becomes yellow, 50% grey becomes green, etc.
Actually, I was wondering if POV-Ray itself can be perswaded to do the
trick. Any ideas folks?
Thanks.
Andrew.
Post a reply to this message
|
|
|
|
On Sat, 15 Feb 2003 11:25:41 -0000, "Andrew Coppin"
<orp### [at] btinternetcom> wrote:
>Actually, I was wondering if POV-Ray itself can be perswaded to do the
>trick. Any ideas folks?
Declare your picture as a pigment. Use that pigment
in a new function declaration.
Now for the actual pigment, use your function
(x, y, z).gray and then code your own color map.
pigment {
function { my_function(x, y, z).gray }
color_map {
[ 0 color rgb 0 ] // black
[ 1/3 color rgb <1, 0, 0> ] // red
[ 2/3 color rgb <1, 0.5, 0> ] // yellow
[ 1 color rgb 0 ] // white
}
}
Fun. :)
Post a reply to this message
|
|