GithubHelp home page GithubHelp logo

rarvision / fastmassspring Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sam007961/fastmassspring

0.0 0.0 0.0 69 KB

Interactive cloth simulator using the method described in the SIGGRAPH paper "Fast Simulation of Mass-Spring Systems" by Liu, T., Bargteil, A. W., Obrien, J. F., & Kavan, L.

License: MIT License

C++ 94.36% CMake 3.29% GLSL 2.35%

fastmassspring's Introduction

Fast Mass-Spring System Simulator

A C++ implementation of Fast Simulation of Mass-Spring Systems [1], rendered with OpenGL. The dynamic inverse procedure described in [2] was implemented to constrain spring deformations and prevent the "super-elastic" effect when using large time-steps.

Dependencies

  • OpenGL, freeGLUT, GLEW, GLM for rendering.
  • OpenMesh for computing normals.
  • Eigen for sparse matrix algebra.

Building

You need to install OpenGL, GLEW and GLUT on your system to build. The rest of the dependencies will be automatically fetched by cmake during configuration.

To build, run the following commands from the root directory of the project:

mkdir build
cd build
cmake ..
cmake --build .

On Windows, you will likely need to specify the directories containing GLUT and GLEW in CMAKE_PREFIX_PATH so that cmake can find them.

cmake .. -DCMAKE_PERFIX_PATH:PATH=/path/to/libs

You will also need to copy the DLLs to the build directory if they are not available globally.

Demonstration

curtain_hang curtain_ball

References

[1] Liu, T., Bargteil, A. W., Obrien, J. F., & Kavan, L. (2013). Fast simulation of mass-spring systems. ACM Transactions on Graphics,32(6), 1-7. doi:10.1145/2508363.2508406

[2] Provot, X. (1995). Deformation constraints in a mass-spring modelto describe rigid cloth behavior. InGraphics Interface 1995,147-154.

fastmassspring's People

Contributors

sam007961 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.