Particle Effects
iTwin.js supports display of large quantities of similar objects - called "particles" - using particle systems. Using a ParticleCollectionBuilder, you can define the image to be used by each particle along with its scale, position, rotation, transparency, and other properties. These properties can be updated as frequently as every frame based on your simulation logic and re-rendered efficiently using instancing. In addition to their typical use in simulating effects like fire and weather, particle collections can be used for simulations and IoT visualization. For example:
- Rain and snow effects
- Fire and smoke effects
- Traffic simulation of tens of thousands of vehicles traversing roads anywhere in the world, using roadway information obtained from OpenStreetMaps for accurate navigation (sample forthcoming).
In the image below, snowfall is simulated using a particle effect:
Last Updated: 30 December, 2021