Complete Python OpenGL examples
Freitag, 31. Juli 2009
This is the old-school fire effect from the 90's, rendered in OpenGL. It uses a combination of Buffer Feedback and Palette rendering, bo...
Sonntag, 3. Mai 2009
Projective Texture Mapping
This script will create a Texture containing a Ring image, then it will project this on some green cubes ("project" as in &quo...
Mittwoch, 29. April 2009
The following script demonstrates basic shading. A Vertex Shader and a Fragment (Pixel) Shader are defined. Vertex shaders are necissary...
Samstag, 11. April 2009
Render to Texture
This Program demonstrates a "render to texture" effect. It uses the "Framebuffer Management"-Technique, which has su...
Samstag, 4. April 2009
Screenshots from OpenGL
The shortest way I found to bring OpenGL screenshots to the hard drive is using the function "frombuffer" from the "imaging L...
Bizarro Error "AttributeError: __class__"
In case of errors of the following form: $ python test.py No handlers could be found for logger "OpenGL.arrays.arraydatatype" T...
Freitag, 3. April 2009
The following script will display a rotating Helix. It depends on both PyGame and PyOpenGL. It demonstrates: Texturing Blending (Alp...