Skip to content

CptNemo0/ClothSimulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XPBD Cloth Simulation

This repo is from my early C++ days and does not reflect my currently coding ability. Nevertheless, I believe that this still is a great program that I am proud of it to this day.

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 - 3D GPU cloth simulation.

Topics

Resources

License

Stars

18 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors