Skip to Main Content
Killer Game Programming in Java
book

Killer Game Programming in Java

by Andrew Davison
May 2005
Intermediate to advanced content levelIntermediate to advanced
998 pages
26h
English
O'Reilly Media, Inc.
Content preview from Killer Game Programming in Java

More Particle Systems

Chapter 5 of the Java 3D tutorial (Interaction and Animation) has a section on the GeometryUpdater interface and illustrates it with a LineArray particle system for a fountain. It's similar to my LineArray example but uses a different algorithm for updating the positions of the lines, and it utilizes the Geometry argument of the updateDate() method rather than accessing global float arrays.

Sun's Java 3D Demo page (http://java.sun.com/products/java-media/3D/demos/) contains two examples by Jeff White showing the use of lines and points to create a swirl of particles that change color.

A Java 3D package for writing particle systems is available at j3d.org (http://code.j3d.org/). It utilizes TriangleArrays or QuadArrays and supports attributes for position, color, texture, aging, wind movement, and forces. It supports collision detection through picking and allows bounding boxes to be set to limit movement. It was written by Daniel Selman (the author of the Java 3D Programming text); the package is currently an alpha version.

Artur Biesiadowski has a beautiful particle system demo available at http://nwn-j3d.sourceforge.net/misc/particles.jar—a mass of glowing, flickering colored clouds of light speeding around and through a central location in space.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Game Development with LibGDX: From Beginner to Professional

Java Game Development with LibGDX: From Beginner to Professional

Lee Stemkoski

Publisher Resources

ISBN: 0596007302Supplemental ContentErrata Page