|
![](/i/fill.gif) |
Tom Melly wrote:
>
> I want a band of mountains on the horizon that drop to foothills and finally
> a plane as z approaches 0.
>
> #declare MountFunc = function {"ridgedMF" <1,5,3,1/3,50>}
> with
> function{ y + (MountFunc(x*z,0,z)*5)} // (note the x*z)
>
> doesn't work. While the mountains become less prounounced, the plane is at
> the level of the highest peak rather than the foothills.
>
> As a kludge, function{sqr(y) + sqr(z) + (MountFunc(x,0,z)*5)} is okay with a
> separate shape for the plane, but I would prefer option a).
>
> Any ideas?
I have once used:
#declare RMFx=function{ "ridgedMF", <0.1, 3.1, 8, 0.7, 0.8> }
#declare Mountains_01=
isosurface{
function{z-RMFx(x,y-0.15,0)*sqrt(1.1-y)*0.4}
method 2
max_gradient 7
accuracy 0.0001
contained_by{box{<-1.7, -1.7, -0.1>, <1, 1, 1>}}
}
Note that z is upwards in this case.
>
> BTW has anyone got any samples of good parameters for ridged mf?
something else I used sometime:
function{ "ridgedMF", <0.1, 2.7, 7, 0.75, 0.7> }
found in this group and p.t.s-f:
function { "ridgedmf", <1,2,10,1.1,2> }
function { "ridgedMF", <1,2,5,0.5,10> }
function { "ridgedmf", <0.95,1.2,8,0.9,20> }
function { "ridgedmf", <0.3, 4, 6, 0.45, 1.9> }
Christoph
--
Christoph Hormann <chr### [at] gmx de>
IsoWood include, radiosity tutorial, TransSkin and other
things on: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
![](/i/fill.gif) |