Tuesday, 26 April 2011

Project 2: Particle Engine Step Four

Well this is one of the lasts steps in the project. I've created a particle engine with multiple particles. I've made these particles interactive, added limitations and control, velocity and mass. What was left to do? GRAVITY of course! That's right. I used the gravity base code and picked a few lines out to both create what looks like a tiny planet in the middle of the sketch and an anchor point for interaction and possibly sound interaction also. I've changed the way particles are created. With the new gravity physics constantly active I editted the gravity pull to way past the limits of the 400x400 box so that when particles are created they are automatically under the influence of gravity, I did this to make the design more natural and free flowing. Now their is complete control and also complete chaos! I'm very pleased with this final design. I added motion blur to make the particles more interesting to look at as they move through the space, this sketch is very much reliant on how the actual particles move and interact.

The interactivity is perfect I believe. You can create however many particles you wish and then sit back and watch the beauty of the particle engine and physics based gravity unfold into interesting shapes and patterns as particles are constantly shot back and forth out of the field of gravity.



Sound is the new frontier... and it's not looking good.

I've made such an complex physics engine that I simply can't find any examples or tutorials on how to write the code to bring sound into play. I wanted to bring sound in when the particles passed through the rings of the circles but I can't think of how to write the code. My next step was to try something new. Perhaps velocity could be the component of sound. Either way I've got some work to do if I'm ever going to get sound in.

If worst comes worst I'll have to use one of my initial sketches and add sound to them, the code is easier to handle is the only difference. Wish me luck!

No comments:

Post a Comment