Skip to main content

gltut for python - Chapters 1-6

Tutorial examples from the online book "Learning Modern 3d Graphics Programming," written by Jason L. McKesson, converted into python.


Sean J McKiernan
(mekire)

Overview:
Tutorial examples from the online book "Learning Modern 3d Graphics Programming," written by Jason L. McKesson, converted into python.

I am slowly working my way through this book and translating the examples (given in C++) into python. My goal is to do the entire book, but this will take some time.

Requirements:
The tutorials use python 2.7, pygame, pyOpenGL, and occasionally numpy. They will also require that your machine supports GLSL 330 or above (update your graphics drivers).

Notes:
In my search for python OpenGL information, I found an enormous amount of outdated examples (that still used the fixed function pipeline). Finding modern up to date info that wasn't in a different language was very hard.

Usage/Download:
In my translations I have changed both variable names and the structure of the code to better reflect my python inclinations. I don't think this should pose a problem. The download link can be found on the right side of the Overview page on the BitBucket page. Download the entire repository as a zip as some of the scripts rely on that directory structure to function.

Hopefully some people will find this helpful.
-Mek

Changes

Links

Home Page
https://bitbucket.org/Mekire/gltut-python-pygame-pyopengl

Releases

gltut for python Chapters 1-6 — 4 Apr, 2013

Pygame.org account Comments

  • lambser 2014-09-22 02:59

    How are you progressing on the tutorials??

  • rab 2015-01-10 21:22

    is there anybody there... ?

  • Stu 2015-08-05 18:22

    Hi,

    If anyone has any trouble using this with mesa, I've submitted a pull request to make it work with opengl 3 (pyopengl can't request a 3.3 context, so this doesn't work in mesa - closed source drives are more forgiving).

    pull request -

    https://bitbucket.org/Mekire/g...

    pygame bug -

    https://bitbucket.org/pygame/p...

    S