Interactive Houdini Fireworks

For this tool, I wanted to create something more interactive than my last few – rather than moving sliders back and forth and toggling boxes on and off, I wanted a user to be able to click on the viewport and watch something nice happen. I used python states, Houdini’s flexible system for creating custom tools with viewport interactivity.

Houdini has a whole library of preset python functionality, so all it took to get the basic setup working were some slight modifications to the add points python state script. The first thing I did was allow for custom geometry input to place the points where the fireworks would explode, then I added a parameter that would track the frame that the point was placed, which was important for animating the fireworks (procedurally) with consistent timing.

Creating the path for the fireworks to follow.

Most of the rest of the work happened in VEX, where the trajectories for the fireworks and their explosions, color and emissive attributes, and procedural animations were created. As a final step, I exposed parameters like how large the arcs of the trajectories would be, how fast the fireworks would go, the size of their explosions, and more in the HDA. Feel free to download it and experiment with it as you’d like!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s