|
![](/i/fill.gif) |
"gonzo" <rgo### [at] lanset com> wrote:
>
> If the top is completely flat then a slope pattern with only a narrow range
> at the top should work. Assuming the Ice & White textures are already
> defined...
Actually, I've found that the slope pattern does EXACTLY what I wanted! Oh,
I should have tried that first. :-[ SO much easier than differencing
shapes, etc.
Here's my code for the two textures, one following the other:
// 1st texture, the overall ice...
texture{my_main_ice_texture etc....}
// 2nd texture...the white fades quickly to transparent as the letters'
// surface normals approach a horizontal direction
texture{
pigment{
slope{<0,-1,0>}
color_map{
[0.0 rgb 1]
[0.45 rgb 1]
[0.55 rgbt 1]
[1.0 rgbt 1]
}
finish{
ambient 0
diffuse 1
}
}
It's important to set ambient to 0 for this, otherwise its ambient color
will mix with the first texture's color. (Luckily, none of the letter's top
surfaces are in shadow, so ambient 0 is OK.)
The slope pattern doesn't seem to work exactly the way the docs describe it,
though; but that's a question I'll post elsewhere.
I had actually worked with the slope pattern months ago (making a sort of
topogrphic map out of a heightfield, coloring it depending on the surface
normals.) But just didn't make the mental connection to my letter usage.
Most embarassing.
Thanks for waking up the 'ol brain cells!
Ken
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Kenneth" <kdw### [at] earthlink net> wrote:
urfaces are in shadow, so ambient 0 is OK.)
>
> The slope pattern doesn't seem to work exactly the way the docs describe it,
> though; but that's a question I'll post elsewhere.
I posted my question, and some good solutions were offered to my perceived
"problem"...
http://news.povray.org/povray.general/thread/%3Cweb.43cc5cf4e3732dd0484f30%40news.povray.org%3E/
Ken
Post a reply to this message
|
![](/i/fill.gif) |