WYK96 / simulator

It's a GPU-based real time cloth simulator and interactive.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VISGSim

VISGSim is a GPU-based real time cloth simulator.

Results

Contributions

  • 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

Operations

  • 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

Realated papers

Compile

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.

About

It's a GPU-based real time cloth simulator and interactive.


Languages

Language:C 50.1%Language:C++ 37.4%Language:Cuda 10.5%Language:CMake 1.0%Language:GLSL 0.8%Language:Makefile 0.1%