|
|
Carl <car### [at] semisouthcom> wrote:
> This is sort of a follow-up to my wake question. I have a flat plane and
> I'm wanting to animate the ripples heading outward from a single
> disturbance at x=0, y=0 and t=0.
Well, you can get the distance of any point from (0,0) with sqrt(x*x+y*y).
Then all you have to do is to use this distance to elevate the point
according to it. For example:
amplitude*sin(frequency*sqrt(x*x+y*y))
If you want the wave to go outwards a full period when t goes from 0 to 1,
you just add it to the "angle":
amplitude*sin(frequency*sqrt(x*x+y*y) + t*2*pi)
You can, naturally, get more more complex waves by adding other
waveforms, but that's a bit more complicated issue.
--
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}// - Warp -
Post a reply to this message
|
|