Skip to content

learn-computer-graphics/physics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Physics

Basics dynamics used in real-time rendering simulations

Projects

01 Cloth simulation

cloth

Getting started

Prerequisites

You need to install the CMake build system and a modern C++ compiler.

Linux

sudo apt-get install build-essential cmake

Windows

To get the MSVC compiler, you need to install Visual Studio (and not VSCode) and select the C++ development package during install. You also need to install CMake which can also be done by visual studio.

Build

You can handle the CMakeLists.txt in any way you like, here's some way to use it :

Option 1: CLI

Go to the folder of this project and run :

mkdir build
cd build
cmake ..
make

Option 2: Visual Studio (Windows only)

Open this folder with the CMake... option in file->open on Visual Studio, and run the project.

Option 3: VSCode

Use the CMakeTools plugin, build with f7 then run with f5 (But be careful to be on the right platform, there is a launch file for windows and for linux).

Launch

Simply open the project01 file generated in the build directory and run it

Sources

Classes

Name Description
M2 classes at Université Gustave Eiffel by Eric Incerti
Animation and simulation at Stanford by Doug James
Modelling simulation nature processes by Coursera
Pixar in a box
Physics-based animation at University of Waterloo by Christopher Batty
GDC - Technical Artist Bootcamp: Real-Time Cloth Solutions on 'Marvel's Spider-Man'

Videos

Name Description
GDC - Physics for game programmers, continuous collision
GDC - Physics for game programmers, understanding constraints
GDC - Valve's physics for game programmers
GDC - Cloth Self Collision with Predective Contacts
GDC - Ubisoft Cloth Simulation: Performance Postmortem and Journey from C++ to Compute Shaders
Inspecto - But how do Soft body simulations work ?
Two Minute Papers - Why are cloth simulations so hard ?

Books

Name Description Illustration
Fluid engine development
Foundations of Physically Based Modeling and Animation
Game Physics Engine Development
Game Physics Pearls
Physics for game programmers
Physics for game developers, 2nd edition
Physics modeling for game programmers
Game physics, 2nd edition
OpenGL 4 Shading Language Cookbook 3rd edition The code repository can be found here. Check chapter 11 for cloth simulation.

Papers

Name Year Description
Fast Simulation of Mass-Spring Systems 2013

Libraries

Name Description
NVidia PhysX
Bullet
Box2D

Repositories

Name Description
Cloth Simulation in OpenGL
Cloth Simulation Viewer
Fast Mass Spring
OpenGL Cloth