POV-Ray : Newsgroups : povray.unofficial.patches : How high? - Iso question Server Time
1 Sep 2024 16:17:28 EDT (-0400)
  How high? - Iso question (Message 1 to 5 of 5)  
From: Tom Melly
Subject: How high? - Iso question
Date: 12 Apr 2001 10:12:38
Message: <3ad5b7d6@news.povray.org>
While the x and z dimensions of the contained_by box are obviously up to me,
how do I work out what (sensible) values to use for the y dimensions of, for
example, the following:

#declare MountFunc = function{"ridgedMF" <0.9, 2, 5, 0.75, 2>}
#declare MBase =
isosurface{
  function { y - MountFunc(x,0,z) * min(2, max(0.125,(sqr(x/5) +
sqr(z/5)))) }
  eval
  max_gradient 50
  contained_by{box{<-20,-1,-20>,<20,15,20>}}
  texture{MBaseTex}
}


--
"To stop children being afraid of the dark, try to fill their daylight hours
with as much terror as possible"
www.tomandlu.co.uk


Post a reply to this message

From: Scott Hill
Subject: Re: How high? - Iso question
Date: 12 Apr 2001 10:56:06
Message: <3ad5c206@news.povray.org>
"Tom Melly" <tom### [at] tomandlucouk> wrote in message
news:3ad5b7d6@news.povray.org...
> While the x and z dimensions of the contained_by box are obviously up to
me,
> how do I work out what (sensible) values to use for the y dimensions

    Trial and error. HTH ! ;-)

--
Scott Hill
Software Engineer.
NC Graphics (Cambridge) Ltd.
Web : http://www.ncgraphics.co.uk
E-mail : sco### [at] ncgraphicsnet
ICQ : 110661991


Post a reply to this message

From: Tom Melly
Subject: Re: How high? - Iso question
Date: 12 Apr 2001 11:28:36
Message: <3ad5c9a4@news.povray.org>
"Scott Hill" <sco### [at] ncgraphicsnet> wrote in message
news:3ad5c206@news.povray.org...
>
>     Trial and error. HTH ! ;-)

... a phrase that I always find faintly worrying. Is there really no better
way? Anyone, someone?


Post a reply to this message

From: Geoff Wedig
Subject: Re: How high? - Iso question
Date: 12 Apr 2001 12:10:21
Message: <3ad5d36d@news.povray.org>
Tom Melly <tom### [at] tomandlucouk> wrote:

> "Scott Hill" <sco### [at] ncgraphicsnet> wrote in message
> news:3ad5c206@news.povray.org...
>>
>>     Trial and error. HTH ! ;-)

> ... a phrase that I always find faintly worrying. Is there really no better
> way? Anyone, someone?


Well, how'd you come up with the rmf parameters in the first place?  I've
found no way to do that either, short f trial and error, so.... *shrug*

Geoff


Post a reply to this message

From: Abe
Subject: Re: How high? - Iso question
Date: 12 Apr 2001 17:57:53
Message: <3AD624FD.BF4DA25A@taconic.net>
If I understand your question correctly you are looking for sensible
proportions of vertical to horizontal dimensions? I find a y dimension
10-20% of the xz dimension works as an average good start for scaling
height fields. Ultimately trial and error prevails.

Abe

Tom Melly wrote:
> 
> While the x and z dimensions of the contained_by box are obviously up to me,
> how do I work out what (sensible) values to use for the y dimensions of, for
> example, the following:
> 
> #declare MountFunc = function{"ridgedMF" <0.9, 2, 5, 0.75, 2>}
> #declare MBase =
> isosurface{
>   function { y - MountFunc(x,0,z) * min(2, max(0.125,(sqr(x/5) +
> sqr(z/5)))) }
>   eval
>   max_gradient 50
>   contained_by{box{<-20,-1,-20>,<20,15,20>}}
>   texture{MBaseTex}
> }
> 
> --
> "To stop children being afraid of the dark, try to fill their daylight hours
> with as much terror as possible"
> www.tomandlu.co.uk


Post a reply to this message

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