|
|
Hi,
I have a background image that I would like to darken at some place
to change the final elevation of a resulting heightfield.
I decided to use triangles (because the data that creates the shape is
suitable for triangles). When I want the color to be exactly the
background I specify my triangle's Z coord to be 0.5 and when I want the
color to be totally black I set Z to 0.
Then I use a gradient to colorize the elevation of my triangles, like so:
pigment {
gradient z
color_map {
[0.0 color rgbf <0,0,0,1>]
[0.5 color rgbf <1,1,1,1>]
}
}
Now, I've tried with rgbt, with any kinds of values and I don't seem to
get a good result.
If you look at my image you will see like a pair of lips; that is you
see it gets lighter at the extremities and when going to the center it
finally gets dark.
I would like it to be the color of the bg at the extremities and simply
darken towards the center.
BTW, center is rgbf <0,0,0,1> and the extremities of the "lips" are at
rgbf <1,1,1,1>
What should I do to avoid the "lips" problem?
Thanks,
Xilo
--
Dedicated to audio/visual and interactive artwork.
http://www.geocities.com/simonlemieux/
Post a reply to this message
|
|