HOME | DD

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
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 In reply to wonderwhy-ER [2007-07-05 14:31:41 +0000 UTC]
You're very welcome!
π: 0 β©: 0
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
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
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 awesty [2007-06-25 07:40:58 +0000 UTC]
No really for now. But i hope that it will be
π: 0 β©: 0
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