Particle System

 

Technologies Used: WebGL, JavaScript
Libraries Used: Dat.GUI, glmatrix.js

This project Showcases different simulations on the Particle System that I developed. that can deployed on any browser. In each particle system, the particles are subjected to some forces, and constraints to get the necessary behavior.

There are different simulations of the particle:

  • A box with particles inside it. The only constraints on the particles is the bounding box around the particles.

  • Fire particles simulation, with color decay over time. A force in the upward direction with randomized small forces were added over time, which impacted each particle differently according to their mass, which decreases as their age increases and size decreases over time.

  • For the tornado simulation, multiple forces were added.

    • A force which sucks the particles in towards the center of the tornado.

    • A force which gives the particles a circular motion

    • A high force in the upward direction that pushes them upwards.

  • Spring Tetrahedron simulation has multiple constraints and a force which is damped giving it the spring simulation.

  • Boids Simulation simulates the flocking behavior usually seen by birds and fishes. It has an aggregator in the middle that repels the particles breaking up the flock of particles.