Athosvk / Phylip

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Phylip

Cloth simulation using Fast Simulation of Mass Spring System by Liu et Al.

Wind on the +Y axis, falling and wrapping on a sphere

Shooting spheres at hanging cloth and showing the effect of some options

Dependencies

  • Raylib and RayGui are used for rendering and GUI;
  • Eigen is used for all the linear algebra black magic;
  • yaml-cpp is needed to parse scene and configuration files;

As already mentioned, this project uses raylib to handle the rendering. We had to modify some raylib functions to fit it to our needs, therefore to be able to build the project correctly, follow the next steps:

git clone --recursive https://github.com/Athosvk/Phylip
cd external/raylib/
git checkout 7584ce6f
git apply ../../raylib.diff

Build Instructions:

Be sure you are in the root of the project (same directory were this README.md is located):

mkdir Release
cd Release
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j8

Run Instructions

./Phylip resources/config_flat.yaml
./Phylip resources/config_vertical.yaml

About


Languages

Language:C++ 82.3%Language:C 10.9%Language:GLSL 4.3%Language:CMake 2.4%