Fireworks Sample

Description

Fireworks implements a system of particles simulating a fireworks explosion. Particles are popular in games to show effects like smoke, sparks, and explosions.

Path

Source: (SDK root)\Samples\Multimedia\D3dim\Src\Fireworks

Executable: (SDK root)\Samples\Multimedia\D3dim\Bin

User's Guide

Press F1 to see available commands.

Programming Notes

The fireworks explosion is simulated by using a system of particles, where each particle is rendered with a partially transparent texture map of a sphere. The position and color of each particle are governed by parameterized equations and are updated in each frame.