andrewkchan / fire-simulation

:fire: Real-time fire simulation on the GPU!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fire-simulation

🔥 Real-time fire simulation on the GPU!

  • 2D Fluid simulation (uniform grid, simulating incompressible fluid with semi-lagrangian advection)
  • Thermal model for fire (buoyancy + cooling)
  • Simulation steps are done in parallel on the GPU via WebGL fragment shaders

Instructions

  • python3 -m http.server in project root
  • Go to localhost:8000 or whatever port it starts at
  • Interact with fire by clicking and dragging

About

:fire: Real-time fire simulation on the GPU!


Languages

Language:JavaScript 63.2%Language:GLSL 35.4%Language:HTML 1.4%