VISGSim is a GPU-based real time cloth simulator.
- A unified streaming pipeline for time integration and collision handling
- Unified collision handling: we present a parallel, integrated collision detection and response algorithm - Position projection and inelastic collision response force
- A new strategy of expanding bounding box(aabb) for the triangle (caused by our collision detection and response strategy)
- Maximizing Parallelism in the construction of BVHs
Here is a Demo.
- 12367 vertices
- intel core i5 and GTX 960
- nearly 1000 FPS
- space - start or stop the simulation
- 'W'/'w' - down in the axis '-y'
- 'S'/'s' - up in the axis 'y'
- 'X'/'x' - snapshot
- press left and drag to rotate
- press middle and drag to scale
- press right and drag to drag mass
- GPU-based Real-time Cloth Simulation for Virtual Try-on
- Maximizing Parallelism in the Construction of BVHs, Octrees, and k-d Trees
- Contact-Aware Matrix Assembly with Unified Collision Handling for GPU-based Cloth Simulation
Use cmake to compile it and check CUDA_SEPARATE_COMPILATION.
following is a simple build script for windows
git clone --recursive http://github.com/sutongkui/simulator
# notice: choose your own generator
cmake -G"Visual Studio 15 2017 Win64" -H".\simulator" -B".\simulator\build" -DCMAKE_INSTALL_PREFIX=install
cmake --build ".\simulator\build" --config "RelWithDebInfo" --target INSTALL
# generated files should be in install dir
dir install/bin
or you can use cmake-gui to do the job in an interactive way.