Each year, the Cesium team updates the NORAD Santa Tracker ® app to use the latest version of Cesium and take advantage of any new features available. This year, we are especially excited to make it snow for the first time as Santa takes his Christmas Eve journey around the world using Cesium’s Particle Systems.
Snow and sparkle particles generate around Santa.
Often used in video games for special effects, particle systems are a collection of billboard images that are updated every frame according to rules defining certain attributes like position, color, and size. When you combine these rules, you can create some impressive effects like fire, smoke, or—in Santa’s case—snow. We created a snow system surrounding Santa and his reindeer, as well as a trail of sparkles following his sled.
Snow particles become more translucent as you zoom away from Santa.
Here’s a snow system sample you can plug into Sandcastle and experiment with for yourself:
To create the snow particle system, we constructed a SphereEmitter around Santa’s location so that all of the snow particles would spawn around him.
The snow particles first appear as transparent and then transition to white. They also shrink in size over their lifetime.
This allows the snowflakes to naturally fade in and out of view and appear as a gentle snowfall. We used two slightly different systems, each using their own snowflake images—a soft circle and a larger, more detailed snowflake. In the update function for the particles, snowParticleUpdateFunction, we modify their position by applying a gravitation force towards the center of the globe to make the snow fall.
Be sure to see the snowfall in action and stay up to date on Santa’s travels this Christmas Eve with NORAD Tracks Santa at www.noradsanta.org.