Plasma/Wave algorithms

BlitzMax Forums/BlitzMax Programming/Plasma/Wave algorithms

Here are two little time-wasters I've made. What do you
all think?

Source + Exe:

http://soldiers.250free.com/BlitZMax/Beaker.zip
Wait until the screen clears and right-click in the
bottom-center of the screen to see some fantastic atomic
blast-like shockwaves.

[edit] Here is a more advanced variation of the above program with background distortion:
http://soldiers.250free.com/BlitZMax/Distort.zip

And, not as neat, but still fun.
Source + Exe.
http://soldiers.250free.com/BlitZMax/blur02.zip

No screens, you've got to see them in motion.

wow! nice fx :)

Looks like you're using Hugo Elias' routines. I love that site :D

(Very nice effects, anyway)

Nice water look with your Distort prog!

Great FX ^^
I'll take a look at your code to how you did it.

thanks :)

Who's this Hugo Elias fellow? And why haven't I heard of
him before? His stuff is amazing! Thanks, warpy.

On that note, for the wave program, this line of code:
		buffer2[x,y]=(buffer1[x-1,y] + buffer1[x+1,y] + buffer1[x,y-1] + buffer1[x,y+1])/2 - buffer2[x,y]



was not conceived in my head. That's a well-known
algorithm and it's the key to making the waves.

Everything else is completey mine though. : )

I have never seen anyone simulating water waves this realistic, nice! By the way, how demanding is this?

They're cool but they do run kinda slow.

Yeah they run pretty slow at 30 - 35 fps on my rig, and mine's a monster rig. Yeah I'm braggin ;)

And Wave, if you're wondering if it would be practical in a
game environment, I haven't yet found a way to use it well.

But I have tried in the past. This is a very old demo I
made in highschool. It's a motorboat battle, naturally.
http://soldiers.250free.com/BlitZMax/Water18.exe
Run at your own risk.

Sorry, I don't have the qBasic source anymore (Like you'd want it)

I made a game using a 1-d version of this algo a few days ago - water drops. Obviously, the 2d version takes N^2 time to run, so it gets slow very quickly, but 1d is just fine.

That's a neat little game. Very futile though. Can it be 'passed'?

nope :)