프로젝트
GitHub에서 보기
ccincotti3/webgpu_cloth_simulator
소개
WebGPU XPBD Cloth Simulator Project to accompany guides on www.carmencincotti.com
창작 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalWebGPU XPBD Cloth Simulator
This is a WebGPU Cloth Simulator that uses XPBD (extended position based dynamics) with small step sizes.

This relies heavily on the following papers:
- XPBD: Position-Based Simulation of Compliant Constrained Dynamics - Macklin et. al - NVIDIA
- Small Steps in Physics Simulation, Macklin et. al - NVIDIA
- A Survey on Position Based Dynamics, 2017
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-webgpuflag in about://flags.
Running the dev server
With yarn installed, run the following:
yarn
yarn start
Current implementation
- XPBD Simulation Loop
- Small Steps
- Constraints - Distance
- Constraints - Fast Performant Bending
- Constraints - Isometric Bending
- Constraints - Angular Bending
- Constraints - Collisions (Self)
- Constraints - Collisions (External)
- Damping
관련 프로젝트 살펴보기
불러오는 중…