POV-Ray : Newsgroups : povray.advanced-users : macro or include files Server Time
25 Nov 2024 12:29:18 EST (-0500)
  macro or include files (Message 1 to 5 of 5)  
From: Stephen McAvoy
Subject: macro or include files
Date: 25 Oct 2002 12:17:12
Message: <3db96b51.198279891@news.povray.org>
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

From: Christoph Hormann
Subject: Re: macro or include files
Date: 25 Oct 2002 12:32:11
Message: <3DB9720B.A4C614F@gmx.de>
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

From: Stephen McAvoy
Subject: Re: macro or include files
Date: 25 Oct 2002 19:17:07
Message: <3db9d0ad.224208404@news.povray.org>
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

From: Gilles Tran
Subject: Re: macro or include files
Date: 26 Oct 2002 06:15:46
Message: <3dba6b52$1@news.povray.org>

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

From: Christoph Hormann
Subject: Re: macro or include files
Date: 26 Oct 2002 06:29:39
Message: <3DBA6E8B.D1986349@gmx.de>
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

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