POV-Ray : Newsgroups : povray.advanced-users : False-colour IR imagine... Server Time
1 Nov 2024 03:16:33 EDT (-0400)
  False-colour IR imagine... (Message 1 to 3 of 3)  
From: Andrew Coppin
Subject: False-colour IR imagine...
Date: 15 Feb 2003 06:26:17
Message: <3e4e23d9@news.povray.org>
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

From: Andrew Coppin
Subject: imagine?!?
Date: 15 Feb 2003 08:00:01
Message: <3e4e39d1@news.povray.org>
OK, so I can't spell! :'(

(That *should* of course have been "image"... [sigh])

Andrew.


Post a reply to this message

From: nospam
Subject: Re: False-colour IR imagine...
Date: 24 Feb 2003 20:16:53
Message: <3e5ab9fd.2266792@localhost>
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

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