Real-Time Position-Based Crowd Simulation in WebGPU

In this project, we focus on simulating massive crowd behavior in real-time. Specifically, we came across this paper by Weiss et. al that uses Position-Based Dynamics to simulate large dense crowd at interactive rate. While the paper was originally implemented in CUDA and Unreal Engine, we decided to use WebGPU for both simulation and rendering as a mean to learn and understand a modern graphics API, while contributing a unique example to the early WebGPU community. As far as we know, this project is the very first crowd simulation in WebGPU, and one of the first few in web.

Check it out live! (WebGPU Required)

Or find out more on Github.