POV-Ray : Newsgroups : povray.binaries.images : height function maths help : Re: height function maths help Server Time
15 Aug 2024 18:15:19 EDT (-0400)
  Re: height function maths help  
From: James Taylor
Date: 14 May 2002 19:07:36
Message: <3ce198b8@news.povray.org>
Thanks, but that doesn't seem to work - it just produces the same result as
before.
Anyway I can see now that the value is dependant on the "overall" distance
so I'll keep experimenting...

Thanks
Jim

"Slime" <slm### [at] slimelandcom> wrote in message
news:3ce03d2f$1@news.povray.org...
> Change
>
> #declare fn_water = function { h1*( fn_1(x,y,0)*exp(-k*x) ) }
>
> to
>
> #declare fn_water = function { h1*( fn_1(x,y,0)*exp(-k*sqrt(x^2+y^2)) ) }
>
> And the exponential falloff will be dependant on the overall distance from
> the origin, rather than just the distance along the x axis.
>
>  - Slime
> [ http://www.slimeland.com/ ]
>
>


Post a reply to this message

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