|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Does anyone know of a macro or include file to simulate waves on the
surface of a fluid? I don't want to reinvent the wheel.
I'm thinking of something like:
loop
Buffer2(x, y) = (Buffer1(x-1,y)
Buffer1(x+1,y)
Buffer1(x,y+1)
Buffer1(x,y-1)) / 2 - Buffer2(x,y)
Buffer2(x,y) = Buffer2(x,y) * damping
end loop
Taken from
http://freespace.virgin.net/hugo.elias/graphics/x_water.htm
I wrote something to do the job in QB but I am no programmer and
cannot get it to work with an array larger than 121 x 121.
Thanks Stephen
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Stephen McAvoy wrote:
>
> Does anyone know of a macro or include file to simulate waves on the
> surface of a fluid? I don't want to reinvent the wheel.
> I'm thinking of something like:
>
> [...]
This has been done before, Rune made several impressive animations with
that:
Subject: More ripples (408kbu)
Date: Sun, 14 Apr 2002 19:16:47 +0200
Newsgroups: povray.binaries.animations
From: "Rune" <run### [at] mobilixnetdk>
news://news.povray.org/3cb9bc70@news.povray.org
http://news.povray.org/3cb9bc70@news.povray.org
i think this was implemented as a POV-Script.
I also tested it myself (using a separate c program):
Subject: balls simulation (665k)
Date: Mon, 13 May 2002 00:09:01 +0200
Newsgroups: povray.binaries.animations
From: Christoph Hormann <chr### [at] gmxde>
news://news.povray.org/3CDEE7FD.B2EA955@gmx.de
http://news.povray.org/3CDEE7FD.B2EA955@gmx.de
but neither of these has been published so i'm afraid you probably have to
reinvent the wheel for the moment (my program is not in a publishable
state).
Another link that might help:
http://www.darwin3d.com/gdm1999.htm#gdm1299
Christoph
--
POV-Ray tutorials, IsoWood include,
TransSkin and more: http://www.tu-bs.de/~y0013390/
Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Fri, 25 Oct 2002 18:32:11 +0200, Christoph Hormann
<chr### [at] gmxde> wrote:
>This has been done before, Rune made several impressive animations with >that:
>
Thanks Christoph,
I've now, sent him a begging letter. I have also seen your
animation and I am green with envy.
Regards
Stephen
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
3DB### [at] gmxde...
> but neither of these has been published so i'm afraid you probably have to
> reinvent the wheel for the moment (my program is not in a publishable
> state).
What about this one ???
http://www-public.tu-bs.de:8080/~y0013390/pov/water/water_inc.html
G.
--
**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Gilles Tran wrote:
>
> What about this one ???
> http://www-public.tu-bs.de:8080/~y0013390/pov/water/water_inc.html
>
This is completely different, it is not using discrete points of a
heightfield but superposes sine waves with a certain distribution of
frequencies and directions.
Christoph
--
POV-Ray tutorials, IsoWood include,
TransSkin and more: http://www.tu-bs.de/~y0013390/
Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |