Particle Systems in Java

Here are some simple particle system animations I wrote for fun. The idea is that the applet contains a source of glowing particles which are ejected at a given angle and amoount of spread. The source of the particles may be at a point or spread over an area. Other options include adding gravity and random kicks to the motion of the particles. After each frame, one or more image processing operations are applied to the image. In the examples below this is usually a blur operation. Finally, a suitable color map is used to display the images.

Click on any applet below to start it. If your machine is fast enough, you can have them all going at once. These applets require Java 1.1, so users with older browsers will be out of luck :-(

A point source, firing upwards with gravity

 

A spread-out source spraying in all directions

 

A point source, scrolling the image upwards

 

A source spread along a line, scrolling up

 

 

If you want to play with this, here's the source. It requires a couple of classes from the filter library to create the colormaps, but you could quickly hack up your own colormaps instead. [I'm not allowed to release the source of the filter library at present]