We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionExhibition › Particle engine and sudden motion sensor
Page Index Toggle Pages: 1
Particle engine and sudden motion sensor (Read 1206 times)
Particle engine and sudden motion sensor
Jul 3rd, 2008, 6:57pm
 
Hey, I've been working on a Particle Engine today and last night.

There are 2 videos on my blog of it working, one with regular gravity and one with gravity determined by the Sudden Motion Sensor.

http://www.andybest.net/2008/07/particle-engine/

I just thought I'd share, cos I'm pretty happy with the outcome so far. It's a work in progress to be used for other projects in the near future. As such, it is completely modular.
Re: Particle engine and sudden motion sensor
Reply #1 - Jul 4th, 2008, 12:19am
 
haha. the second video is really funny Smiley
good work!!
Re: Particle engine and sudden motion sensor
Reply #2 - Jul 4th, 2008, 3:34am
 
Hehe, What is so funny about it? Smiley
Re: Particle engine and sudden motion sensor
Reply #3 - Jul 4th, 2008, 8:32am
 
This is nice. But I think there is something wrong with motion sensor interpretation. When you feed the particles with you motion sensor data, the horizontally alligned particles stay alligned and that looks a bit weird. For example, when you tilt the computer to right, the particles further away from the origin of rotation should be disturbed more(as the displacement will be faster there), while the ones nearer to the origin should be disturbed less. Then it would look right imo. But I'm not sure if there is a way to extract or approximate that data from the sensors(I've never tinkered with them). Judging from their motion upon first initialization, it looks like your particles act according to initial motion vectors, so if that kind of motion extraction can be managed, I think it would work better.

But overall that looks cool. I'd be interested to see what you make out of it.

Cheers
Re: Particle engine and sudden motion sensor
Reply #4 - Jul 4th, 2008, 2:38pm
 
To be honest, the motion sensor stuff was a bit of an afterthought and I just add the vector that I get from it to the motion vectors of each particle. The main focus for me was/is writing a particle engine, but thanks for the advice, I'll look into it Smiley
Re: Particle engine and sudden motion sensor
Reply #5 - Jul 4th, 2008, 9:32pm
 
http://www.vimeo.com/1281831

Used Optical Flow to affect the particles...
Page Index Toggle Pages: 1