Python translation of the popular LearnOpenGL's source code and exercise repository. Currently chapters 1-6 have been completely translated.
The translation is very close to the original C++ source code, which makes it easy to use alongside the tutorial.
Most examples should run right out of the box, as they install the PyPI requirements automatically from the respective requirements.txt
.
Currently, only Python versions 3.9
- 3.11
are supported. This is limited by the PyOpenGL_accelerate
and assimp-py
libraries, which are only irregularly maintained.
If you get an error related to numpy
when running one of the examples, make sure to install version 1.26.4
(PyOpenGL is currently incompatible with numpy 2.0):
pip install numpy==1.26.4
You can find the examples in the src
folder.
To run the first example you simply need to run src/1.getting_started/1.1.hello_window/hello_window.py
.
Here are some screenshots of the examples (one from each chapter):