Skip to content
Projects

ccincotti3/webgpu_cloth_simulator

View on GitHub

ccincotti3/webgpu_cloth_simulator has 71 GitHub stars and 6 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-18 09:16 UTC. Last push 2024-05-22.

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

About

WebGPU XPBD Cloth Simulator Project to accompany guides on www.carmencincotti.com

Creative & Media

README.md

Original

WebGPU XPBD Cloth Simulator

This is a WebGPU Cloth Simulator that uses XPBD (extended position based dynamics) with small step sizes.

Cloth 09_06_2022

This relies heavily on the following papers:

As well as code snippets from:

Development

The following steps describe how to run this simulation locally.

Note - This has only been tested on Windows (specifically with WSL2).

Accessing the WebGPU API

WebGPU is currently a developmental feature, and thus requires a browser that enables access to it. Google Canary is a good candidate. To enable the correct features in your browser, please do the following:

  • Enable the #enable-unsafe-webgpu flag in about://flags.

Running the dev server

With yarn installed, run the following:

yarn
yarn start

Current implementation