|
|
Richard <dai### [at] mindspringcom> wrote:
: OK, I've had POV-Ray for a couple months now and played around with it
: and pretty much figured out most of its features. There's just one thing
: that I still don't get at all. That's color maps. I've read all the docs
: and am still completely lost. If anyone out there could offer ANY help,
: it would be greatly appreciated.
Render and study this. Perhaps it will help a little:
camera { location -z*3 look_at 0 angle 35 }
light_source { -z*100,1 }
box
{ 0,1
pigment
{ gradient x color_map
{ [0 rgb <1,0,0>] // The color map starts from red
[.5 rgb <1,1,0>] // goes to yellow
[1 rgb <0,1,0>] // and ends to green
}
}
translate -.5
}
: Also, I'm unclear on the capabilities
: of a color map. For example, could I make like a label for something
: based on a color map rather than using an image map, and if so, how?
Color maps are used to define the colors along a pattern type. In the
example above the pattern type is 'gradient'. The pattern goes from 0 to
1 and the color map specifies what colors are used which each value (all the
in-between values are interpolated).
The color map doesn't specify the shape of the pattern, only the colors
used.
--
main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
*_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp. -*/
Post a reply to this message
|
|