SRC: Particle Emitter
via SRC: Particle Emitter@all manner of distractions
4 years ago • NotesFor 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.Click here to download the source code.
UPDATES———————————————————————
? February 11th, 2008: Implemented an OpenGL reorganization as per Simon Gelfius’ recommendation. Should improve performance a bit.
