Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 939 Bytes

File metadata and controls

20 lines (12 loc) · 939 Bytes

WebGL Biot Savart Simulation

GPU particle simulation

The purpose of this project is to explore using the GPU (WebGL) to calculate particle simulations. Here, the shaders does all the heavy lifting. Particle state data (position, velocity and weight) is all stored as textures in GPU memory.

Biot Savart Field

The above simulation is based on biot savart calculation for magnetic fields. The velocity of a given particle is based on the 'magnetic' field force on that particle by every other particle in the simulation.

Setup

To build from source for development:

  1. Install the latest Node.js and NPM.
  2. Run npm install within the project root directory in Terminal.
  3. Run npm run dev.

References