Skip to content

Astcort/PyGLViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyGLViewer

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.

Author

How to use

Dependencies

  • 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

Test

Running

python3 main.py

should play one of the default base scenarios.

Making your own scenarios

The examples of the file scene.py are quite self explanatory.