Framework developed for the course Numerical mechanics: From Lagrangian mechanics to simulation tools for computer graphics given with Florence Bertails-Descoubes & Mélina Skouras.
This is a simple OpenGL viewer designed to have a quick visualization of the results of the simulations. The goal is not to do efficient/marvelous renderings, although you can tune a bit the viewer if you want.
- Python3
- GLFW3
- OpenGL
To install them (on Ubuntu) :
sudo apt-get install freeglut3 freeglut3-dev mesa-utils python3 python3-setuptools libglfw3-dev libassimp-dev python3-pip
pip3 install numpy Pillow PyOpenGL PyOpenGL-accelerate glfw scipy
Running
python3 main.py
should play one of the default base scenarios.
The examples of the file scene.py
are quite self explanatory.