HOME | DD

wonderwhy-ER β€” Turbulence v0.3 by-nc-sa

Published: 2007-06-24 20:41:36 +0000 UTC; Views: 3016; Favourites: 16; Downloads: 827
Redirect to original
Description Controls:
Just push mouse to add air pressure at this point.
Press Space to turn off/on vector map.
Press X to turn off/on balls.


-------------------------------------------------------------------------
Edited 26.06.2007:
Ok. Added balls. Changed formulas a little. Need to think on how to make some turbulent waving.

-------------------------------------------------------------------------
Edit 25.06.2007: I found that normal turbulence equations are calculated by complex Eurular equation system solving... And that’s definitely not a real time task So I decided to use some tricks that look like water and can produce wave like behaviors... It should do
I also added color versions which you can find here: [link]

I will add particles that fly according to those vectors + some random wave production on the edges of the screen. If it will work good that smoke simulation here i come


--------------------------------------------------------------------------
Date: 24.06.2007
So yesterday I was sitting near brazier and making live coals for shashlik grilling. It is meat specially prepared for grilling. So I was using stick to correct wood in it. Stick was starting to burn itself and I was extinguishing it and watching how beautifully dances the some of it. I decided to take my camera and film it. And I tough of remaking such smoke dancing on Flash. So first thing I need to do is to make some 2D function with 2D result that will allow me to make turbulent effects. This is first experiment I made in some 20 minutes. So I think I will go check how it should be made
Related content
Comments: 39

psykopath [2009-02-05 07:02:31 +0000 UTC]

Over the last few days I've been trying fluid dynamics in actionscript but I can't quite get it right. Would I be able to see the source for this? If you still have it after a year and a half.

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to psykopath [2009-02-05 09:59:14 +0000 UTC]

WEll it is not a fluid dynamics truly just field oscillation... Are you shore you want exactly this?

πŸ‘: 0 ⏩: 1

psykopath In reply to wonderwhy-ER [2009-02-05 10:12:57 +0000 UTC]

Yes please. I gave up on the fluid dynamics but managed to make something like this earlier, but mine doesn't flow as well as yours, it stops very quickly.

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to psykopath [2009-02-05 13:23:57 +0000 UTC]

Probably some dampinngs are in effect. How did you do yours? In my case it just two two dimensional arrays with numbers. One for height and other for height change speed. On each step I change speed depending on neighbors height difference and then add speed to this cell value. After that it's all just parameters

πŸ‘: 0 ⏩: 2

psykopath In reply to wonderwhy-ER [2009-02-05 23:23:55 +0000 UTC]

Nah I just can't get it working right. How do you go from an array of heights, and height changing speeds, to the angle directions for the drawing?

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to psykopath [2009-02-06 00:13:43 +0000 UTC]

Just checking neighbors again Subtract left neighbor from right one to get X size of line and same for vertical neighbors

Did you got to make your thing to oscillate?

πŸ‘: 0 ⏩: 1

psykopath In reply to wonderwhy-ER [2009-02-06 00:23:34 +0000 UTC]

No, I can't figure out how to use the height of them. Is it the height of the neighbours averaged, or what? I have no idea. Before it would just even out, it wouldn't make waves, but now it grows like crazy and isn't working right at all.

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to psykopath [2009-02-06 09:29:24 +0000 UTC]

Eh... Comments is not good place to write it... Too much of code with possibility to make mistakes... May be it is possible to google it No at first glance some serious physics pops out...

I think I will need to check code later and then note it to you probably...

πŸ‘: 0 ⏩: 0

psykopath In reply to wonderwhy-ER [2009-02-05 22:30:20 +0000 UTC]

Ah, I did it with only one array. I'll try it now with the two but I'm still not quite sure how it should work.

πŸ‘: 0 ⏩: 0

Etheriana [2007-07-05 11:20:18 +0000 UTC]

Ha-ha! Loads of fun again...

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to Etheriana [2007-07-05 12:54:39 +0000 UTC]

thanks

πŸ‘: 0 ⏩: 1

Etheriana In reply to wonderwhy-ER [2007-07-05 14:31:41 +0000 UTC]

You're very welcome!

πŸ‘: 0 ⏩: 0

MOSREDNA [2007-07-01 11:58:28 +0000 UTC]

Nice experiment !!

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to MOSREDNA [2007-07-01 12:29:34 +0000 UTC]

Check smoke. It is the work i wanted to make as the end result. Here is the link [link]

πŸ‘: 0 ⏩: 1

MOSREDNA In reply to wonderwhy-ER [2007-07-01 12:36:00 +0000 UTC]

Checked

πŸ‘: 0 ⏩: 0

Keydan [2007-06-28 19:19:59 +0000 UTC]

Nice'n'fun!

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to Keydan [2007-06-28 19:29:33 +0000 UTC]

Thanks

πŸ‘: 0 ⏩: 0

Melindryad [2007-06-27 22:35:44 +0000 UTC]

This is cool.
Would something like this work as a background on MySpace where the cursor would activate this between the panels? I've seen animated backgrounds but they aren't interactive with the cursor.
I could understand if it didn't work when a comment or blog panel/window is between this & the cursor, but theoretically it would work when the cursor is between the panel/windows, right?

I'm trying to find ways that this kind of scripting could be used for something other than games.

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to Melindryad [2007-06-28 06:45:52 +0000 UTC]

I doubt. I suppose that not flash is used there...

πŸ‘: 0 ⏩: 1

Melindryad In reply to wonderwhy-ER [2007-06-29 17:05:40 +0000 UTC]

Well, I've seen some animated backgrounds but they were just sparkling stars or bubbles popping and they weren't interactive. So I'm wondering how do they make the background even sparkle?

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to Melindryad [2007-06-29 17:14:36 +0000 UTC]

May be gif? Flash is not very ppular for such things. May be becose it is processor hungry

πŸ‘: 0 ⏩: 1

Melindryad In reply to wonderwhy-ER [2007-06-29 17:17:18 +0000 UTC]

hmmmmm.........

πŸ‘: 0 ⏩: 0

psykopath [2007-06-27 03:51:52 +0000 UTC]

Whoa, thats insane (v0.3)

πŸ‘: 0 ⏩: 1

awesty In reply to psykopath [2007-06-27 06:56:19 +0000 UTC]

agreed

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to awesty [2007-06-27 07:33:24 +0000 UTC]

Heheey thanks guys

πŸ‘: 0 ⏩: 0

javamocha [2007-06-26 22:06:37 +0000 UTC]

looks great
you might want to make them repel from the side

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to javamocha [2007-06-26 22:15:49 +0000 UTC]

No... I will add random wwave generation in next update(0.4) And then a sourcee of circles center bottom. They will slowly fly up... After they fly behind the screen they will be destroyed(0.5) Then i will add curves(0.6) And last version will be with effect to simulate fire or smoke... Thats my plans for upkoming days...

πŸ‘: 0 ⏩: 1

javamocha In reply to wonderwhy-ER [2007-06-26 22:30:17 +0000 UTC]

well thats better than what i had

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to javamocha [2007-06-27 07:34:56 +0000 UTC]

ok

πŸ‘: 0 ⏩: 0

PX-D [2007-06-26 20:14:06 +0000 UTC]

That's fantastic.

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to PX-D [2007-06-26 21:32:05 +0000 UTC]

Not yet will be soon

πŸ‘: 0 ⏩: 0

javamocha [2007-06-26 00:54:28 +0000 UTC]

looks good

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to javamocha [2007-06-26 21:31:46 +0000 UTC]

Thanks

πŸ‘: 0 ⏩: 0

Frankenteddy [2007-06-25 16:27:00 +0000 UTC]

Funkylicious!

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to Frankenteddy [2007-06-25 16:43:34 +0000 UTC]

Not yet

πŸ‘: 0 ⏩: 0

awesty [2007-06-25 07:33:39 +0000 UTC]

that is awesome

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to awesty [2007-06-25 07:40:58 +0000 UTC]

No really for now. But i hope that it will be

πŸ‘: 0 ⏩: 0

Supa-Monky [2007-06-24 23:41:09 +0000 UTC]

If thats what i think it is.. crazy!

πŸ‘: 0 ⏩: 1

wonderwhy-ER In reply to Supa-Monky [2007-06-25 07:25:40 +0000 UTC]

It is a map of heights. Each vector is calculated as diffarance between nighbering points. I took very simpel one but it lags anyway ;( I suppose that i need to make it little bit differently. I need to make DisplacementMap filter so that it displaces him self. There should be something like map of presure. And wind blows in derection of small presure. At least thats the idea which i got fro mbegining. But it seems that i will not be able to make it fast... I need to chekc if there are soem tutorials in the net about turbulance realtiem simulation...

πŸ‘: 0 ⏩: 0