View Full Version : Particle/Gravity Experiments...
lostinbeta
12-22-2004, 11:29 PM
I took the ideas of Bit-101's gravity tutorial (http://www.bit-101.com/tutorials/gravity.html) and came up with these....
Particle Volcano (http://www.lostinbeta.com/swf/particleVolcano.html)
And using the above but making minor adjustments to how it reacts you can create exploding pixel art...
Particle Smiley (http://www.lostinbeta.com/swf/particleSmiley.html)
I did these as an experiment with gravity physics as well as particle creation. Also the 2 varying files show the great difference that can be achieved with a few changes to the code and a little imagination/creativity.
The source files can be downloaded from the download source link on the page that contains the example file.
kirupa
12-22-2004, 11:34 PM
That is excellent lost. I really liked how each individual square in the particle volcano seemed to bounce and spin around realistically! Best of all, it didn't melt my CPU in the process :)
lostinbeta
12-22-2004, 11:38 PM
Thanks kirupa, I tried my hardest not to make it CPU intensive, and it runs smoothly on my system which is a rare thing so I think I accomplished it.
And I am glad you noticed the correct bounce/spin action on the clips, it's a subtle thing I tried to work in there, but I think it adds so much more then just static boxes or unrealistic spinning.
frozenRage
12-23-2004, 06:09 AM
how does lost do it? yet another excellent work from the labs of the great "lostinbeta", hmm, my theory is that lost has been locked in his labryinth of a lab and is just wondering around with the wireless laptop cranking out code and hoping to find the door, every now in then stopping to recharge at one of the many fridges and posting a "few" things here
or not ;)
lostinbeta
12-23-2004, 11:40 AM
ROFL! I don't even own a laptop, let alone have a wireless internet connection. I run a crappy 750mhz system with like 128Mb ram (one of the ram slots is busted and won't read a ram chip, I only have 2 slots and I can't afford a 256 at the moment).
Being locked in my labryinth, recharging at the fridge, and posting a 'few' things here is pretty accurate though :thumb:
Wow, both files are really excellent! Those squares bounce really nicely :) Now you should pile them up! :P
lostinbeta
12-23-2004, 12:54 PM
Oooh! Good idea Ilyas! I may give that a try one day when I actually have time to sit and play with Flash (I've been working a lot because of it being busy with the holidays and stuff).
And thanks =) It means a lot coming from you that these are excellent. You are, after all, one of my mentors :love:
Vexir
12-23-2004, 07:45 PM
Its absolutely fantastic. The one thing I've noticed that none of these particle thingys have is that the particles never bounce off one another :)
lostinbeta
12-23-2004, 11:11 PM
Simple answer... it's too processor intensive and more of a pain in the arse to be running a hittest on every single clip checking to see if it hit any of the other existing clips. If you had 10 particles that would be 10 hittest if statement running, running a for loop checking if it hit any of the other 9 clips. Thats like... 90 checks altogether or something (im horrible with math stuff).
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.