Fluid Dynamics!

Post your Construct-made creations!

Post » Wed Dec 02, 2009 9:20 pm

part of the 's' plugin (which is indefinitely delayed)

left mouse click adds some smoke (1 quick click will do at first so you can get a feel for volume)
hold right mouse button and drag for wind
[url:lpa7u3ty]http://dl.dropbox.com/u/1013446/s/fluid.exe[/url:lpa7u3ty]
this is just a simple sprite that grows with density
better visualizations can be used
like distorted meshes
or physics objects carried on the currents

another example, using a mesh:
[url:lpa7u3ty]http://dl.dropbox.com/u/1013446/s/meshfluid.exe[/url:lpa7u3ty]

update:
this worked for pixel rebirth: (the mesh one did at least)
it's a reduced model that doesn't let you adjust viscocity and such:

mesh color filter based:[url:lpa7u3ty]http://dl.dropbox.com/u/1013446/s/meshfluidredux.exe[/url:lpa7u3ty]
sprite size based:[url:lpa7u3ty]http://dl.dropbox.com/u/1013446/s/spritefluidredux.exe[/url:lpa7u3ty]

press 'c' to clear out all the smoke

also, I think I know why it's crashing for some folks
I have 1024 invisible sprites in there that were there for testing purposes rotating and stuff
I'll make a new version that doesn't have those later

this is going to be used in my game for debris being carried on wind currents
and of course
smoke and fog
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Wed Dec 02, 2009 9:34 pm

Crashes with an unexpected error.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Wed Dec 02, 2009 9:53 pm

hmmm, have no idea, why that's happening
I tried downloading the one at the link, and it works for me
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Wed Dec 02, 2009 10:02 pm

Unfortunately same here. Unexpected error crash... :(
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Wed Dec 02, 2009 10:16 pm

well that sucks
this is fun stuff
what cpu/ram configs do you guys have?
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Wed Dec 02, 2009 10:30 pm

Works flawlessly for me, all four of the examples do.
B
3
S
2
G
3
Posts: 628
Reputation: 2,531

Post » Wed Dec 02, 2009 10:45 pm

fluid.exe and meshfluid.exe both crash for me as well. meshfluidredux.exe runs.
It is fun to play with, indeed.

[quote:33cbhmh4]what cpu/ram configs do you guys have?[/quote:33cbhmh4]
AMD Athlon 64 X2 6000+ (dual core)

4GB ram. DDR.. I forget what speed. It might be running at DDR-800 speed.
I'm using Windows XP SP2. 32-bit, so only 3.25 GB is available.
B
3
S
1
G
3
Posts: 82
Reputation: 1,189

Post » Wed Dec 02, 2009 10:47 pm

First two don't work for me (Unexpected error)

XP SP2
AMD Dual Core 2.21GHz
2GB Ram
Nvidia GeForce 9500GT

But the third one works... and WTF?!? How did you do that? :shock: It's awesome...
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Wed Dec 02, 2009 10:59 pm

[quote="deadeye":22ze8738]But the third one works... and WTF?!? How did you do that? :shock: It's awesome...[/quote:22ze8738]
thanks
it's part of the 's' plugin
all of the important code is pasted from the CD-ROM(the download version) that accompanied Jos Stam's Realtime Fluid Dynamics for Games talk at the 2003 Siggraph

the one in the version that works for you is a distorted sprite
and the color filters are adjusted according to the smoke density

that math is lightyears above my head
but you can find a pdf of the talk easily by googling
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Wed Dec 02, 2009 11:07 pm

spritefluidredux.exe runs for me too. Heh, pretty. And interesting. It's a nice effect. Even more fun to play with.
B
3
S
1
G
3
Posts: 82
Reputation: 1,189

Next

Return to Your Creations

Who is online

Users browsing this forum: No registered users and 1 guest