POV-Ray : Newsgroups : povray.general : Decaying ripples : Re: Decaying ripples Server Time
29 Jul 2024 08:17:26 EDT (-0400)
  Re: Decaying ripples  
From: clipka
Date: 23 Apr 2012 10:30:22
Message: <4f95677e$1@news.povray.org>
Am 23.04.2012 16:09, schrieb Stephen:
> On 23/04/2012 11:39 AM, Bill Pragnell wrote:
>>> Ah! The exponential, just what I was looking for.
>>> > It is true that if you don't use it, you lose it.
>> Too true. I use it a little too much to be honest:)
>>
>>
>>
> In that case you could use your mathematical brain ;-) to tell me how to
> translate the function below along the z axis. I used the formula that
> you suggestion to create a ripple but for the life of me I cannot move
> it from the origin. After reading the doc I substituted z-2 for z and
> that did not work properly. I am at a loss.
>

> *exp(-0.5*z*z) )) }

Should have worked, maybe you missed a z somewhere.

The more robust approach is to leave your function as-is, and call it 
from another function such as:

function { foo(x,y,z-2) }


Post a reply to this message

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