|
|
On 5/27/2019 8:22 AM, Bald Eagle wrote:
> I suppose you could use an image map as a blurred / smoothed heightfield or
> normal map.
>
I have two functions.
#undef f_Height
#local f_Height = function {f_wrinkles(x*(BUSY+TRANS), y*(BUSY+TRANS),
z*(BUSY+TRANS))}
#undef f_What
#local f_What = function
{
max
(
abs(x)-(W-ROUGH*f_Height(x, y, z)),
abs(y)-(H-ROUGH*f_Height(x, y, z)),
abs(z)-(D-ROUGH*f_Height(x, y, z)/4)
)
}
How do I feed them to a heightfield? For instance, the following creates
an error:
height_field
{
function 1, 1
{ f_What(x,0,y).gray * 0.04 }
smooth
texture
{
pigment{ color srgb <0.6,0.55,0.5>}
normal { bumps 0.1 scale 0.005}
finish { phong 0.1 phong_size 400}
}
}
Thanks.
Post a reply to this message
|
|