POV-Ray : Newsgroups : povray.unofficial.patches : iso - ridged mf question : Re: iso - ridged mf question Server Time
1 Sep 2024 14:34:02 EDT (-0400)
  Re: iso - ridged mf question  
From: Christoph Hormann
Date: 12 Mar 2001 13:20:29
Message: <3AAD136A.E955EBF@gmx.de>
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] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.