Overview
Installation
Documentation
Project-Page
Download
Screenshots
|
OpenGLContext is a learning environment for
PyOpenGL. It
provides sample code for:
- Rendering common scenegraph objects
- geometry (point-sets, indexed line-sets, indexed
face-sets, polygonal text, trimmed NURBs, particle systems)
- materials and textures (incl. mip-mapping,
multi-texturing, and loading from disk with PIL)
- transforms (incl. support for manually calculating
forward and reverse transformation matrices)
- backgrounds (solid-colour, spherical and image-cube)
- lights
- glBlend-based transparent-geometry rendering
- glSelectBuffer-based mouse selection and interaction
- Frustum culling
- hierarchic axis-aligned bounding boxes
- frustum extraction from the combined model-view matrix
- glStencilBuffer-based shadow rendering (preliminary)
- Tessellating polygons
It also provides a number of generally useful features for the
beginning OpenGL programmer:
- Simple 3D navigation (camera manipulation, fly and examine
modes)
- Optional VRML97 loader (the scenegraph engine is based
loosely on VRML97)
- Timer mechanisms and simple event
handling
- Interchangable context classes for
multiple GUI libraries
See the documentation page
for more details, or download
and play with the code in the tests directory.
|