Cloth simulation based on XPBD paper. Made with:
- C++
- DirectX
- ImGui
Stretching constraints are solved using graph colouring with typical Gauss-Seidel method, while sheer and bending constraints are solved using Jacobi method.
Steering:
- Press mouse wheel to rotate around the centre.
- Scroll to zoom in/out
YouTube video: https://www.youtube.com/watch?v=psMpRK0Np5k
Result at 16k vertices (2 ss' glued together).
Building from source:
- Ensure that your windows machine has developer mode enabled.
- Install visual studio.
- Install C++ for windows desktop app development from Visual Studio Installer
- Install C++ for games development from Visual Studio Installer
- Generate the project using CMake:
cmake -B build
- Go to
build
folder and open .sln file. - Select correct startup project
- Build it using VS.