• Stars
    star
    323
  • Rank 130,051 (Top 3 %)
  • Language
    C++
  • License
    MIT License
  • Created over 5 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A research-oriented elastic body simulator

elasty

macOS Ubuntu License

A research-oriented elastic body simulator

Algorithms

Frameworks

  • Position-based dynamics (PBD) [Müller+07]
  • Extended position-based dynamics (XPBD) [Macklin+16]
  • Small-steps XPBD [Macklin+19]
  • Projective dynamics [Bouaziz+14]
  • Quasi-Newton dynamics [Liu+17]
  • ...

Update Schemes for PBD/XPBD

  • Gauss-Seidel update
  • Jacobi update

Constraints for PBD/XPBD

  • Area conservation constraint [Müller+14]
  • Bending constraint [Müller+07]
  • Continuum-tetrahedron constraint [Bender+14]
  • Continuum-triangle constraint [Bender+14]
  • Distance constraint [Müller+07]
  • Environmental collision constraint
  • Example-based shape matching constraint [Koyama+12]
  • Fixed point constraint
  • Isometric bending constraint [Bergou+06; Bender+14]
  • Long range attachments constraint [Kim+12]
  • Shape matching constraint [Müller+05]
  • Stable Neo-Hookean constraint [Macklin+21]
  • Tetrahedron strain constraint [Müller+14]
  • Triangle strain constraint [Müller+14]
  • Volume conservation constraint [Müller+14]
  • ...

Continuum Materials for FEM Simulation

  • St. Venant Kirchhoff model
  • Co-rotational model
  • Stable Neo-Hookean model [Smith+18]
  • ...

Additional Features

  • Alembic export of triangle meshes
  • Simple aerodynamics for clothes [Wilson+14]
  • 2D FEM simulation with explicit Euler integration
  • 2D FEM simulation with variational implicit Euler integration [Martin+11]
  • 3D FEM simulation with variational implicit Euler integration [Martin+11]

Dependencies

Core Library

Demos

Tests

Prerequisites

macOS

brew install eigen imath

Ubuntu 20.04

apt install libeigen3-dev

and manually install Imath 3.0.2+.

Windows

(not tested yet)

Build

git clone https://github.com/yuki-koyama/elasty.git --recursive
mkdir build
cd build
cmake ../elasty
make

Gallery

PBD vs. XPBD

The constraint stiffnesses in PBD [Müller+07] are dependent on the number of iterations for constraint solving. As the number of iterations increases, the constraints become infinitely stiff regardless of the stiffness parameters. This issue makes the parameter tuning difficult.

XPBD [Macklin+16] resolves this issue. As the number of iterations increases, the constraint stiffnesses converge to some (non-infinitely-stiff) states in accordance with the compliance parameters. This property makes the parameter tuning easier and more consistent.

These simulated results were generated by examples/pbd-xpbd-comparison/main.cpp.

Wind Effects for Cloth Simulation

This library supports wind effects for cloth simulation. This library calculates aerodynamic "drag" and "lift" forces based on the model used in Disney's Frozen [Wilson+14].

This simulated result was generated by examples/aerodynamics/main.cpp.

Finite Element Methods

This library offers some utility functions to implement the finite element method (FEM) and simple examples of such implementations.

These simulated results were generated by examples/variational-implicit-2d/main.cpp and examples/variational-implicit-3d/main.cpp, respectively, which use the variational implicit Euler method [Martin+11] and the co-rotational model.

License

MIT License

Contributing

Issue reports and pull requests are highly welcomed.

References

  • [Bender+14] Jan Bender, Dan Koschier, Patrick Charrier, and Daniel Weber. 2014. Position-based simulation of continuous materials. Comput. Graph. 44 (2014), 1-10. DOI: http://doi.org/10.1016/j.cag.2014.07.004
  • [Bender+17] Jan Bender, Matthias Müller, and Miles Macklin. 2017. A survey on position based dynamics, 2017. In Proc. Eurographics '17 Tutorials, Article 6, 31 pages. DOI: https://doi.org/10.2312/egt.20171034
  • [Bergou+06] Miklos Bergou, Max Wardetzky, David Harmon, Denis Zorin, and Eitan Grinspun. 2006. A quadratic bending model for inextensible surfaces. In Proc. SGP '06, 227--230. DOI: https://doi.org/10.2312/SGP/SGP06/227-230
  • [Bouaziz+14] Sofien Bouaziz, Sebastian Martin, Tiantian Liu, Ladislav Kavan, and Mark Pauly. 2014. Projective dynamics: fusing constraint projections for fast simulation. ACM Trans. Graph. 33, 4 (2014), 154:1--154:11. DOI: https://doi.org/10.1145/2601097.2601116
  • [Kim+12] Tae-Yong Kim, Nuttapong Chentanez, and Matthias Müller-Fischer. 2012. Long range attachments: a method to simulate inextensible clothing in computer games. In Proc. SCA '12, 305--310. DOI: https://doi.org/10.2312/SCA/SCA12/305-310
  • [Koyama+12] Yuki Koyama, Kenshi Takayama, Nobuyuki Umetani, and Takeo Igarashi. 2012. Real-time example-based elastic deformation. In Proc. SCA '12, 19-24. DOI: https://doi.org/10.2312/SCA/SCA12/019-024
  • [Liu+17] Tiantian Liu, Sofien Bouaziz, and Ladislav Kavan. 2017. Quasi-Newton methods for real-time simulation of hyperelastic materials. ACM Trans. Graph. 36, 3 (2017), 23:1--23:16. DOI: https://doi.org/10.1145/2990496
  • [Macklin+16] Miles Macklin, Matthias Müller, and Nuttapong Chentanez. 2016. XPBD: position-based simulation of compliant constrained dynamics. In Proc. MIG '16, 49-54. DOI: https://doi.org/10.1145/2994258.2994272
  • [Macklin+19] Miles Macklin, Kier Storey, Michelle Lu, Pierre Terdiman, Nuttapong Chentanez, Stefan Jeschke, and Matthias Müller. 2019. Small steps in physics simulation. In Proc. SCA '19, 2:1–2:7. DOI: https://doi.org/10.1145/3309486.3340247
  • [Macklin+21] Miles Macklin and Matthias Muller. 2021. A constraint-based formulation of stable Neo-Hookean materials. In Proc. MIG '21, 12:1–12:7. DOI: https://doi.org/10.1145/3487983.3488289
  • [Martin+11] Sebastian Martin, Bernhard Thomaszewski, Eitan Grinspun, and Markus Gross. 2011. Example-based elastic materials. ACM Trans. Graph. 30, 4, 72:1--72:8 (July 2011). DOI: https://doi.org/10.1145/2010324.1964967
  • [Müller+05] Matthias Müller, Bruno Heidelberger, Matthias Teschner, and Markus Gross. 2005. Meshless deformations based on shape matching. ACM Trans. Graph. 24, 3 (2005), 471-478. DOI: https://doi.org/10.1145/1073204.1073216
  • [Müller+07] Matthias Müller, Bruno Heidelberger, Marcus Hennix, and John Ratcliff. 2007. Position based dynamics. J. Vis. Comun. Image Represent. 18, 2 (2007), 109-118. DOI: https://doi.org/10.1016/j.jvcir.2007.01.005
  • [Smith+18] Breannan Smith, Fernando De Goes, and Theodore Kim. 2018. Stable Neo-Hookean Flesh Simulation. ACM Trans. Graph. 37, 2, 12:1-12:15 (July 2018). DOI: https://doi.org/10.1145/3180491
  • [Umetani+14] Nobuyuki Umetani, Ryan Schmidt, and Jos Stam. 2014. Position-based elastic rods. In Proc. SCA '14, 21-30. DOI: https://doi.org/10.2312/sca.20141119
  • [Wilson+14] Keith Wilson, Aleka McAdams, Hubert Leo, and Maryann Simmons. 2014. Simulating wind effects on cloth and hair in Disney’s Frozen. In ACM SIGGRAPH 2014 Talks, 48:1. DOI: https://doi.org/10.1145/2614106.2614120
  • (TODO)

More Repositories

1

blender-cli-rendering

Blender Python scripts for rendering images directly from command-line interface
Python
692
star
2

tinycolormap

A header-only, single-file library for colormaps written in C++11
C++
285
star
3

mathtoolbox

Mathematical tools (interpolation, dimensionality reduction, optimization, etc.) written in C++11 with Eigen
C++
245
star
4

bigger

bigg (bgfx + imgui + glfw + glm) + utils
C++
196
star
5

unblending

Decomposing an input image into layers via "color unblending"
C++
162
star
6

position-based-fluids

Position Based Fluids [SIGGRAPH 2013] in C++
C++
125
star
7

color-util

A header-only C++11 library for colors; color space converters for RGB, HSL, XYZ, Lab, etc. and perceptual color difference calculators such as CIEDE2000
C++
89
star
8

sequential-line-search

A Preferential Bayesian optimization library for C++/Python [SIGGRAPH 2017]
C++
43
star
9

bvh11

A tiny C++11 library for reading BVH motion capture data
C++
36
star
10

optimo

Keyframe-based motion editing system using numerical optimization [CHI 2018]
C++
30
star
11

parallel-util

Simple header-only implementation of "parallel_for" and "parallel_map" for C++11
C++
30
star
12

btoon

Blender Addon for Toon Rendering
Python
21
star
13

sequential-gallery

Sequential Gallery for Interactive Visual Design Optimization [SIGGRAPH 2020]
C++
20
star
14

hello-bgfx

Hello-world project for bgfx + GLFW managed by CMake
C++
15
star
15

split-toning

A Blender addon for simulating the Split Toning effect in Adobe Lightroom/Photoshop
Python
14
star
16

real-time-example-based-elastic-deformation

Real-Time Example-Based Elastic Deformation [SCA 2012]
C
14
star
17

nlopt-util

A header-only wrapper library for calling NLopt optimization in a single line using Eigen::VectorXd
C++
14
star
18

visoptslider

Qt-based implementation of VisOpt Slider widget [UIST 2014] for C++ & Python
C++
12
star
19

nodelayout

A Blender add-on for automatic layout of nodes
Python
9
star
20

cc0assetsloader

A Blender add-on for loading CC0 assets (PBR textures, HDR images, etc.)
Python
8
star
21

enhancer

A C++11 / GLSL library for enhancing photographs (adjusting brightness, contrast, etc.)
C++
8
star
22

latexie

Utilities for writing papers with LaTeX
TeX
6
star
23

constrained-optimization-tests

Simple implementation of constrained optimization methods, including the penalty method and the augmented Lagrangian method
C++
5
star
24

rbf-interpolator

[deprecated] Radial Basis Function (RBF) Interpolation written in C++11. This can be used for fitting a non-linear function from scattered data.
C++
5
star
25

siggraph-jp-papers

SIGGRAPH Papers by Japanese Researchers
HTML
4
star
26

selph

Machine learning-based photo color enhancement system [CHI 2016]
C++
4
star
27

three-dim-util

A utility library for prototyping 3D applications based on Qt, Eigen, and legacy OpenGL
C++
4
star
28

armature-proxy-mesh

A Blender add-on for easy creation of proxy meshes for a selected armature object
Python
4
star
29

imagedistance

Given two images, calculate their distance in several criteria
C++
3
star
30

pycolormap

A self-contained colormap library for Python
Python
3
star
31

hello-tbb-cmake

A hello-world project for testing "parallel_for" in Intel TBB. The whole project (including TBB) is built using CMake.
C++
3
star
32

multidimensional-scaling

[deprecated] A header-only C++ library of the multidimensional scaling (MDS)
C++
2
star
33

academic-illustration-assets

Assets for creating illustrative figures (and video figures) released under CC0 (public domain)
2
star
34

filesystem-util

C++11 utility functions for handling files (currently only for UNIX/Linux)
C++
2
star
35

timer

Execution timer for measuring elapsed times for code blocks written in C++11
C++
1
star
36

cgi-2019-program

List of the papers presented at CGI 2019
Python
1
star
37

hello-alembic

Just a hello-world project to start learning the Alembic library
C++
1
star
38

pyenhancer

A tiny NumPy-based library for image color enhancement
Python
1
star
39

hello-trello-api

Toy Python scripts using Trello's REST API
Python
1
star
40

rand-util

Utility functions for <random> in c++11
C++
1
star
41

optimization-test-functions

A set of test functions to evaluate optimization algorithms written in C++11
C++
1
star
42

string-util

Utility functions for <string> in C++11
C++
1
star
43

qt-animated-layout-example

A custom animated layout example in Qt5
C++
1
star
44

easy-qhull

A helper repository to use qhull in cmake-based c++ projects
CMake
1
star