POV-Ray : Newsgroups : povray.off-topic : My wavetank Server Time
6 Sep 2024 19:19:13 EDT (-0400)
  My wavetank (Message 1 to 6 of 6)  
From: Invisible
Subject: My wavetank
Date: 23 Oct 2008 10:01:00
Message: <4900839c$1@news.povray.org>
OK, so in case anybody is interested... I've built a programmable 
wavetank simulator. It doesn't do a whole heap yet, but it works.

I'll post some stuff here in a moment...


Post a reply to this message

From: Invisible
Subject: Re: My wavetank (Build #21)
Date: 23 Oct 2008 10:19:06
Message: <490087da$1@news.povray.org>
Windows XP users: Download the following items:

   http://download.orphi.me.uk/Haskell/Wavetank-B21.exe   (222 KB)
   http://download.orphi.me.uk/Haskell/Win32-GTK.zip      (4.5 MB)
   http://download.orphi.me.uk/Haskell/Wavetank-Scripts.zip (4 KB)

Create a folder, put the executable in it, and unzip the two Zip files 
into the folder as well. Create a subfolder named "Frames".

You can now call Wavetank-B21.exe from the command line, giving it the 
name of a script file as an argument, and it will render that script. 
(In other words, it will generate a few hundred PNG files in the Frames 
folder. Convert these to a suitable animation format using your favourit 
converter.)

Feel free to edit the scripts. Happy hacking! :-D


Post a reply to this message

From: Invisible
Subject: Re: My wavetank
Date: 23 Oct 2008 10:51:26
Message: <49008f6e@news.povray.org>
WT-Drops1.wt is pretty nice...


Post a reply to this message


Attachments:
Download 'frame00146.png' (73 KB)

Preview of image 'frame00146.png'
frame00146.png


 

From: Mueen Nawaz
Subject: Re: My wavetank
Date: 23 Oct 2008 17:22:41
Message: <4900eb21@news.povray.org>
Invisible wrote:
> OK, so in case anybody is interested... I've built a programmable
> wavetank simulator. It doesn't do a whole heap yet, but it works.

	I'm not sure people will be interested in simulating heaps in
wavetanks. They're kind of unrelated.
	

-- 
"I think not," said Descartes, and promptly disappeared.


                    /\  /\               /\  /
                   /  \/  \ u e e n     /  \/  a w a z
                       >>>>>>mue### [at] nawazorg<<<<<<
                                   anl


Post a reply to this message

From: Invisible
Subject: Re: My wavetank (Build #21)
Date: 24 Oct 2008 05:16:31
Message: <4901926f$1@news.povray.org>
>   http://download.orphi.me.uk/Haskell/Wavetank-B21.exe   (222 KB)

This has a bug: If you feed the program the wrong coordinates, it's 
possible to make it actually segfault. (!!)

That's what you get for premature optimisation... *sigh*

I will put out a corrected build shortly. (The bug is already fixed. I 
want to add a few other features as well though...)



[For anyone who cares: As is probably obvious, the bug is a simple 
unchecked array access glitch. The ironic thing is that in Haskell, you 
have to go out of your way to explicitly request that array accesses be 
unchecked; by default they're checked. I had the checks turned off for 
speed reasons. And sure enough, my internal code works fine. I'd 
forgotten the user-supplied coordinates might not be in range...]


Post a reply to this message

From: Invisible
Subject: Re: My wavetank (Build #37)
Date: 24 Oct 2008 06:04:19
Message: <49019da3$1@news.povray.org>
http://download.orphi.me.uk/Haskell/Wavetank-B37.exe

Build #37 for Windows. (All the other files stay the same.)

Fixes a segfault when passing invalid coordinates from a script, and 
also allows draw object names to contain digits as well as just letters.


Post a reply to this message

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