To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > General Help > Math and Physics

Reply
 
Thread Tools Search this Thread Display Modes
Old 10-29-2009, 11:19 AM   #1
bvflashgames
Junior Member
 
Join Date: Feb 2007
Posts: 22
Best particle system for Kundt's tube simulation?

Hi all. I'm working on a Kundt's tube simulation and I'm seeking insight as to whether there is a pre-existing particle system out there suited to the job, or whether I should just code this from scratch. I thought I was close using the AS3 BIT-101 Particle class (http://www.christeso.com/blog/index....-class-in-as3/), but now I'm not so sure.

In a nutshell, I have a tube of powder and sound waves. When the sound waves fit neatly into the tube / perfectly overlap, we have resonance and the powder clumps at the bottom of the tube as indicated in the image below. My tube would have a fixed width, not a plunger.



There are several ways of doing this, but I'm looking for the most realistic.
  • I can align the particles to conform to the shape under the wave based on the y coordinates of the bottom edge of the combined waveform, make the bottom most particles dormant, and make the particles on the edge of the form have random variance so they don't create a hard edge. Also have some stray ones blow around.
  • I can make it so the particles are pushed into clumps as if the waveforms were electromagnetic fields (I initially tried this using BIT-101's repel clips but didn't quite get what I was looking for, plus I need the particles to stack)
  • I can make it so the particles are pushed into clumps by the waveform as air currents.

Also, it would be nice to allow the user to initially shake the tube to even out the powder, which rather shoots down the first on the list, unless I have a wave that flattens out as you shake I suppose.

Quite a challenge!

Particles systems are rather new to me, so any insight from you physics guru's would be much appreciated. I'm just not sure which path is the right one!
bvflashgames is offline   Reply With Quote
Old 11-05-2009, 03:47 AM   #2
realMakc
Senior Member
 
Join Date: Oct 2002
Posts: 444
the thing is, most "particles" you would see there in flash experiments do not collide with each other, and so cannot stack. on the other hand, making them colliding imposes hard limits on total particles number. so either it will be totally fake, or you would have to implement collisions limited to certain area. there were general attemts in this, but none for "particles" afaik.
__________________
My flash stuff
realMakc is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > General Help > Math and Physics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:50 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.