Shop Mobile More Submit  Join Login
×




Details

Submitted on
November 28, 2009
Image Size
45.2 KB
Resolution
600×600
Link
Thumb
Embed

Stats

Views
15,630 (2 today)
Favourites
210 (who?)
Comments
119
Downloads
212

License

Creative Commons License
Some rights reserved. This work is licensed under a
Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License.
×
Original work and code
So I stumbled on this some work at wonderfl.net some time ago and wanted to play with the code. Seems it is a ported to AS3 from Processing experiments. Works pretty fast but it does not behave as good as I would like...

Changes I made to the code
Here first version. Did not do much. Made it bigger, added my FPS counter, changed drawing methods, made some optimizations and made it show 20K of particles instead of 6kin original, made it repeating (left side connected to right, top to bottom, particles reappear on other side of the screen when they leave it). Also added "time to live" to particles so that when it expires they reappear in other random place. This way no space is left without particles for long (something I did not like in original version).

Planing to play with it more adding some effects, colors, objects you can drag to stage (particle emitters, walls, constant pressure or speed fields) etc etc. Will see how it goes :)

Controls
Just click and drag to create wind.
Double click to restart.

Update 1.1
Added colors and blur effect, become little bit more heavy on CPU. Fixed little bug with particles kind of teleporting when crossing screen border at high speed.
Add a Comment:
 
:iconsodemo:
sodemo Featured By Owner Oct 30, 2013  Hobbyist Writer
and whats really col is if you just go crazy all over it until you almost cant see anything and watch the whole thing come in its so cool
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Oct 31, 2013
Yeah, its kinda cool :)
Reply
:iconravenblood1:
ravenblood1 Featured By Owner Mar 27, 2012  Hobbyist General Artist
I has made something with this!

Look look! [link]

Isnt it pwetty :meow:
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Mar 30, 2012
Hehe :)
Reply
:iconravenblood1:
ravenblood1 Featured By Owner Mar 30, 2012  Hobbyist General Artist
^-^
Reply
:iconfrost-paw123:
Frost-Paw123 Featured By Owner Mar 25, 2012  Hobbyist General Artist
preeetty! :meow:
Reply
:iconmove-me-more:
move-me-more Featured By Owner Feb 27, 2012
after so many years, i still LOVE your work. inspiration is timeless.
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Feb 27, 2012
Hah, thanks :)
Reply
:iconfantasylover321:
FantasyLover321 Featured By Owner Apr 25, 2011
Really cool!
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Apr 25, 2011
Thanks :)
Reply
:iconsh0g0:
sh0g0 Featured By Owner Nov 23, 2010  Student Traditional Artist
...
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Nov 23, 2010
:confused:
Reply
:iconsh0g0:
sh0g0 Featured By Owner Nov 23, 2010  Student Traditional Artist
das soooooo cooooool
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Nov 23, 2010
Haha I am "playing" with this right now [link] :D
I guess you would like it too :D
Reply
:iconrezao:
REzao Featured By Owner Jun 22, 2010
nossa q legal eem cara:D
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Jun 22, 2010
Ehmm sorry I don't understand :)
Reply
:iconlightbird:
lightbird Featured By Owner Jun 19, 2010  Hobbyist Traditional Artist
Actually, if you drag it from bottom to top, it looks like a sped-up nuclear bomb explosion :D
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Jun 20, 2010
Hehe yeah it is :)
Reply
:iconginkner:
ginkner Featured By Owner May 26, 2010
I am soooo gonna try this shit.
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner May 26, 2010
Yeah its pretty cool :) But some ideas behind it are more important as they allow to do a range of other effects beside flow.
Reply
:iconginkner:
ginkner Featured By Owner May 26, 2010
I know. The whole force map concept is extraordinarily powerful. currently I'm using parametric equations to generate a force based on position, but it's rather unwieldy.
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner May 26, 2010
Yeah... Basically that's all there is in particle physics, particles and force fields :) You can do a lot combining those two :D Magnetism comes to mind too :)
Reply
:iconkichakicha:
kichakicha Featured By Owner Mar 31, 2010  Hobbyist Digital Artist
Damn This Is Cool :D
Reply
:iconmobilelectro:
Mobilelectro Featured By Owner Jan 1, 2010
That is really cool, if the Painter Program had a brush tool like that which could be frozen just when it looked right. :)
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Jan 2, 2010
Yeah some procedural and/or physical brushes that are interactive could make painting both more fun and more productive. But it will also lengthen learning time a lot...
Reply
:icon9tailsdemonfox:
9tailsdemonfox Featured By Owner Dec 27, 2009
cool thing. does it generate something like a "wind map" or do the particles ask each other for collision or something like that?
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Dec 27, 2009
Yeah wind/pressure map with which particles interact. No direct interaction.
Reply
:iconschweinskopfsuelze:
Schweinskopfsuelze Featured By Owner Dec 21, 2009
wow, I didn't think flash can handle things like that, always surprising =)

I never tried anything particle related myself though.
Love it.
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Dec 21, 2009
Well it is a very simple version. It's just a speed field... No real flow and inertia :( But as a result it is fast and already can be useful :)
Reply
:iconjavamocha:
javamocha Featured By Owner Dec 13, 2009
more fluid dynamics

very cool
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Dec 13, 2009
:)
Reply
:iconeliskan:
eliskan Featured By Owner Dec 5, 2009
Is there any way to make the spawning particles maintain the speed of the particles around them? I think they're kinda slowing down the other particles as they appear

This is awesome though, you never cease to amaze me
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Dec 6, 2009
Mmm no they are not slowing neighbors. They actually do not interact at all. They are just effected by speed field. Tough their speeds are reset when they reappear.
Reply
:iconeliskan:
eliskan Featured By Owner Dec 6, 2009
Right so they do interact with eachother through the speed field, correct? So when the new particles spawn with 0 speed, wouldn't that cause particles around them to slow down too?

Maybe I don't understand the math behind this haha I love it though :D Very cool
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Dec 6, 2009
No particles do not effect speed field back :) Speed field effects particles but particles do not effect speed field. So particles do not interact at all. May be you just get and illusion of them slowing neighbors for whatever the reason...

Hmm tough may be I understand what you mean... You mean that it slows down eventually?
Reply
:iconeliskan:
eliskan Featured By Owner Dec 6, 2009
Yeah it looked like the speed field was slowing down because of spawned particles but it sounds like it just looked like that because of automatic friction..

Maybe add a parameter on here to adjust the speed field dampening, just for fun? I think it's fun to see perpetually moving flows as well (for example you click and drag once and then sit back and watch it for the next ten minutes)

lol yes it just appears to be caused by the other particles but now I think I see what you mean, it's just an illusion lol
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Dec 6, 2009
I was not even seeing that because I know a reason it slows down... Unfortunately what you described is not possible in almost all fluids... Here I mean that they constantly exchange with energy and seek equilibrium so any oscillations may be slowly but dissipate trough whole fluid.

Actually my first tough was to make it dissipates slower if possible but first tries failed. Model is very simple and there isn't much to change there... May be later will take a look again at what I can change...
Reply
:iconfrateroshi:
frateroshi Featured By Owner Dec 4, 2009  Professional Digital Artist
works pretty damn well! i'm viweing on my laptop, which has a pretty bad GPU, and it looks great. you sir, are a flash wizard!
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Dec 4, 2009
GPU has nothing to do with flash at the moment. Or almost nothing.
Reply
:iconfrateroshi:
frateroshi Featured By Owner Dec 7, 2009  Professional Digital Artist
hmm; what makes flash programs run faster/slower on different machines? is it CPU or RAM limitations?
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Dec 7, 2009
Hmm actually there are other problems too. For example in IE flash runs slower for no reason... As for CPU/RAM I think both have impact but CPU is more important I think...
You have some problems? I run in on kind of old notebook(3 years old) and it runs fine here.
Reply
:iconfrateroshi:
frateroshi Featured By Owner Dec 7, 2009  Professional Digital Artist
ok thanks! i haven't had any problems with your stuff. you are very conscious of reasource efficiency, but i'm not so good at that! i have problems with stuff i make running badly of my friends' computers. right now, a game project i am working on is in danger of being scrapped for being too reasource heavy.
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Dec 7, 2009
Ouh :) Well for now I sit at kind of old notebook so I have kind of a tool to see how bad is it... Probably will need to to do some comparisons between computers when I will be switching to see how well should it run for not ruining people with older computers experience... I mean like 60FPS for me means 30FPS for them so I need to aim for 60 even tough I am aiming for 30 :)
Reply
:iconmonation:
Monation Featured By Owner Dec 3, 2009  Student General Artist
Holy moly man, this is incredible. I wish I could have this on a touchscreen hanging on the wall, like an interactive piece of art.
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Dec 3, 2009
Hehe may be some day you will :)
Lol like ordering it as a "print" :D :D :D
Reply
:iconyounglink19:
YoungLink19 Featured By Owner Dec 2, 2009
So it has colour now and the particles and HUD has filters (glow and... blur?) on it. Nice =D

Do you specialize in AS3, or do you specialize in ECMAScript in general, or do you do in-general multimedia programming?
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Dec 2, 2009
Mmm. Well I do know other languages like Java/C# etc but for last 4 years I mostly work with AS3. Thinking on starting learning Unity 3D tough.
Reply
:iconanagodaps:
anagodaps Featured By Owner Dec 2, 2009
wo vellos šitas tev tiešām ir sanācis ;)
Reply
:iconwonderwhy-er:
wonderwhy-ER Featured By Owner Dec 2, 2009
Paldies :)
Reply
:icondarkdragon15:
Darkdragon15 Featured By Owner Dec 2, 2009
Much better :)
Reply
Add a Comment: