POV-Ray : Newsgroups : povray.newusers : 3d color function : Re: 3d color function Server Time
30 Jul 2024 02:15:32 EDT (-0400)
  Re: 3d color function  
From: Slime
Date: 21 Nov 2004 17:41:05
Message: <41a11981$1@news.povray.org>
> But this will only give my grayscales. How can I make colored?

You can do this:

pigment {
average
pigment_map {
[1 function {f_r(x,y,z)} color_map {[0 rgb 0][1 rgb <1,0,0>*3]}]
[1 function {f_g(x,y,z)} color_map {[0 rgb 0][1 rgb <0,1,0>*3]}]
[1 function {f_b(x,y,z)} color_map {[0 rgb 0][1 rgb <0,0,1>*3]}]
}
}

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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