|
![](/i/fill.gif) |
Wasn't it Bryan Valencia who wrote:
>Also, I am confused as to why the 'land' all seems to be below y=0 when the
>code is adding functions to y.
The surface exists at points where the whole function evaluates to zero.
The functions you added to y can take values between 0 and 100.1. So to
get the whole function to add up to zero, y must take values between 0
and -100.1.
#declare LandContour=function{
y+f_mymarble(x/100,y/100,z/100)*100
+f_mygranite(x,y,z)/10
}
E.g. suppose for some values of x, y and z
f_mymarble(x/100,y/100,z/100) evaluates to 0.5
and f_mygranite(x,y,z) evaluates to 0.5
then your LandContour surface exists where
y + 50 + 0.05 = 0
So y must be -50.05
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
![](/i/fill.gif) |