This repository offers a series of algorithms for real-time simulation of particles and systems of particles, including:
- Size-less particles.
- Sized particles (consider each particle has a certain radius).
- Agent particles (simulation of agents for crowds).
- Springs (1-dimensional springs).
- Meshes of springs (2-dimensional springs - regular grid model).
- Fluids (Newtonian).
See the examples directory to see how to use this library. Some of these examples have been recorded and pieced together to make some videos:
- Simulation of particles.
- Simulation of spring meshes.
- Simulation of fluids.
Also, the character-animation project shows how to use this library for crowd simulation.
The docs contains the library's documentation generated with Doxygen.
Building the library can be done using the .pro file provided. In order to generate the Makefile the qmake tool is required (developed and tested under version 3.0). Also, a compiler that supports C++11 is needed. Also, OpenMP is needed for the parallelised version of some of the algorithms.
One can build the library by issuing the following commands:
qmake -makefile simulator/simulator.pro -o simulator-release/Makefile
cd simulator-release && make
This repository contains the first Computer Animation course project, carried out during the first semester of the academic year 2018-2019. The course is part of the Master in Innovation and Research in Informatics (MIRI) curriculum.