Skip to content

CptNemo0/ClothSimulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XPBD Cloth Simulation

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

Solid Image

Result at 16k vertices (2 ss' glued together).

Building from source:

  1. Ensure that your windows machine has developer mode enabled.
  2. Install visual studio.
  3. Install C++ for windows desktop app development from Visual Studio Installer
  4. Install C++ for games development from Visual Studio Installer
  5. Generate the project using CMake: cmake -B build
  6. Go to build folder and open .sln file.
  7. Select correct startup project
  8. Build it using VS.

About

XPBD Cloth Simulation

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •