Recent changes Random page
GAMING
Technology
 
Gaming
Entertainment
Science Fiction
Biggest wikis
Hobbies
Music
See more...

Particle System Demo

From Planet JFX

Jump to: navigation, search
 

Here are some screenshots from a JFX demo of a simple 2D particle system.

Since I'm not interested in deployment issues, there is no WebStart link (yet). Download the source code and run the script org.trelle.fx.ParticleSystemDemo.fx.

Image:Particle_02_radial_debug.png

Basically, the particle systems moves anything that is a Node along a calculated path (see the above image). The path depends on the origin of the particle system, an initial force vector, some random deviation and an optional gravity vector. Besides the motion, a particle can (but doesn't have to) easily interpolate the color (including opacity) of the attached node.


Image:Particle_01_stars.png


Image:Particle_03_bubbles.png


Image:Particle_04_dukes.png

Rate this article:
Share this article: