OpenGL SuperBible Examples Using pyglet

Some recent experimentation with pyglet has gotten me interested in learning OpenGL. Over the weekend, I picked up the OpenGL SuperBible, which, despite its imposing size (over 1200 pages), seems to provide a very nice tutorial introduction.

The book includes many example programs, which are written in C++ and use the GLUT library. Rather than suffering through all the pain of building and debugging C++ programs, I've been translating them into Python using pyglet. Because pyglet provides a very lightweight wrapper around the OpenGL C API, this is mostly straightforward. However, the conversion between GLUT and pyglet is not always obvious (to my beginner's eyes, anyway).

In case others find my converted examples useful, I've made them available as a Bazaar branch. At the moment, there are only a couple scripts in that directory, but hopefully it will fill up quickly as I work through the text.

Tags: opengl, pyglet, python
Wed, 26 Sep 2007 19:07 UTC

« Next    Previous »