| The main thing behind a firework with particles is spawning. You can finde some more information on this here. It is used for two things. Both are pretty different. The trail is created continously throughout the flight of the rocket while the sparks are only created at one point in time, when the rocket explodes. Also the trail particles will move in the opposite direction as the rocket while becoming slower whereas the sparks can move in any direction you want. In this example we will create all elements of the firework as particles: rockets, trails and sparks. |

| The sparks are created at the moment the rocket particle dies. This can be determined by the PAge node. It allows to detect a number of events related on the particles age or a change of group. With Type set to Die the node will give us a boolean True value on the frame the particle dies. This triggers a PStorm node set to Shot which produces the stars. By using the rockets position for the PStorm node the sparks are generated at the position of the rocket. scene | |