For this first release, I am showing how I go about making a generic particle emitter. I used Processing v.135 and Karsten Schmidt’s Vec3D library. It was developed on a MacBook Pro laptop, but this shouldn’t be a problem.
There is an emitter on screen which will follow your cursor position. When you click and hold the left mouse button, it will create particles with a randomized velocity and send them out into the world.
‘P’ will toggle a Perlin Noise influence to the Particle velocity.
‘G’ will add a gravity influence to the Particle velocity.
‘F’ will turn on an invisible floor allowing the Particles to bounce.
‘T’ will toggle the rendering of a Particle trail.
Some features of this piece of source code:
â€¢ Some example usage of Karsten’s Vec3D library.
â€¢ ArrayList to handle the variable number of particles.
â€¢ Location history used as a ribbon trail.
â€¢ OpenGL display lists and additive blending.
â€¢ February 11th, 2008: Implemented an OpenGL reorganization as per Simon Gelfius’ recommendation. Should improve performance a bit.
â€¢ December 8th, 2008: This code doesn’t quite work with Processing 1.0. There will be some bindTexture errors. This post should help you resolve those errors until I can find the time to redo this source code properly.