|
![](/i/fill.gif) |
Your example looked interesting so I tried it. I'm learning to hate
functions :-)
Attached is another version of the code that sorta works for me.
Thanks for posting.
"James Taylor" <jim### [at] blueyonder co uk> wrote in message
news:3ce1a000@news.povray.org...
>
> "Slime" <slm### [at] slimeland com> 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/ ]
> >
> >
>
> figured it...for reasons beyond my comprehension, all y values actually
need
> to be (1-y), hence the function is:
> #declare fn_water = function {h1 * ( fn_1(x,y,0) * exp( -k * sqrt(x^2 +
> (1-y)^2) ) ) }
>
> thanks
> jim
>
>
Post a reply to this message
Attachments:
Download 'ripple2.pov.txt' (1 KB)
Download 'ripple2.jpg' (13 KB)
Preview of image 'ripple2.jpg'
![ripple2.jpg](/povray.binaries.images/attachment/%3C3ce2573b%40news.povray.org%3E/ripple2.jpg?preview=1)
|
![](/i/fill.gif) |