It's always nice to see a firework after a special event.
Create a particle system that bursts different-colored particles in all directions at a steady interval:
particle_system Firework { material Examples/Smoke particle_width 10 particle_height 10 quota 5000 billboard_type point emitter Point { emission_rate 100 direction 0 1 0 velocity 50 angle 360 duration 0.1 repeat_delay 1 color_range_start 0 0 0 color_range_end 1 1 1 } }
Create five instances of this particle system:
Ogre::ParticleSystem* partSystem1 = _sceneManager->createParticleSystem("Firework1","Firework"); Ogre::ParticleSystem* partSystem2 = _sceneManager->createParticleSystem("Firework2","Firework"); Ogre::ParticleSystem* partSystem3 = _sceneManager->createParticleSystem("Firework3","Firework"); Ogre::ParticleSystem* partSystem4 = _sceneManager->createParticleSystem("Firework4","Firework"); Ogre::ParticleSystem* partSystem5 = _sceneManager->createParticleSystem("Firework5",...