Cosmic Dust is a simple particle animation system, consisting
of about 1,500 lines of Java, which I wrote from scratch. It
generates QuickTime movies,
using QuickTime for Java (QTJ). With 2GB of RAM installed, over 100 million particles can be animated,
producing very smooth smoke-like effects.
Sorry, Cosmic Dust is not yet available for public download.
Videos
Please click on the tabs below to view the available videos.
This is my favourite demo video that I’ve created so far. It shows two “wandering” dust sources, and two “gravity radial” forcefields, using about 65 million particles.
Spinners (one gravity source) – 20 million particles.
Spinners (two gravity sources) – 20 million particles.
Click on this button in the YouTube player to watch the video fullscreen.
There are two main types of component which are used to design an animation – dust sources and forcefields. A dust source is like a nozzle which sprays out dust particles in a particular
pattern, and a forcefield affects the motion of dust particles by applying a continuous force. Any quantity and combination of dust sources and forcefields can be defined.
Each dust source has the following basic properties, which are permanent:
Min and max speed limits for emitted particles
Rate of particle emission
Width of spray (angle)
The speed and direction of the emitted particles follow a normal distribution, to give a more natural appearance than
a simple uniform distribution. Other additional properties can be specified to create different
types of dust source. So far, I have implemented the following types:
Type
Location
Spray direction
Colour
Simple
Fixed
Fixed
Fixed
Oscillating
Fixed
Oscillating with specified amplitude and period
Fixed
Rotating
Fixed
Rotating at specified rate
Fixed
Rotating gradient
Fixed
Rotating at specified rate
Follows a gradient across the width of the spray
Wandering
Oscillates independently in X and Y directions
Rotating at specified rate
Fixed
So far, I have implemented the following types of forcefield:
Type
Direction
Force
Uniform parallel
Identical for all particles
Uniform (identical for all particles)
Uniform radial
Centred on a specified source point
Uniform (identical for all particles)
Gravity radial
Centred on a specified source point
Inverse square of distance to source point
Fast preview mode
Cosmic Dust features a “fast preview” mode, which quickly renders a low-quality version of the final video. This is useful for getting a rough idea of what the final video
will look like, without waiting a long time for the high-quality version to render. By default, the “fast preview” mode uses 100 times fewer particles than the final
video (eg. 10,000 particles instead of 1 million), and therefore renders 100 times faster.
The images below illustrate the difference in quality between “fast preview” mode (left) and the final video (right):
I'm a musician, but have a rather weird interest in gravitation and all it's effects. I coded a bouncing ball once in procedural basic, and was mesmerised when it worked. This is beautiful work.