Using Python and PyOpenGL on the CS cluster
PyOpenGL is now cleanly installed on the CS cluster (meaning you
don't need nasty hacks like getting the libraries from someone's
home directory).
NOTE: PyOpenGL is set up on the machines physically in the
lab, but not on
orchestra (the
login.cs.caltech.edu SSH server). You may have to
physically come to the lab for your final testing. As always, the
code you submit should work on the machines physically in the lab.
Alternately, you can code and submit on the UGCS cluster; if
you're doing this, send an email to Keegan letting him know.
Here's how to include the libraries and initialize GLUT:
#!/usr/bin/python
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
import sys
# ...
# somewhere in your init code, before any other gl/glu/glut calls:
glutInit(sys.argv)
# now you can create a window, initialize OpenGL settings, bind
# callbacks, etc.