Return to Andrew's OpenGL Page

visit opengl.org

4. Demos

The aim of this section is to demonstrate the OpenGL rendering techniques that are covered in the tutorials section. In addition, I will try to add other demos that I think may be useful to programmers. All demos will include source code.

All the programs are written in C using GLUT. Some of the programs also require GLU. If you require library files or headers for OpenGL, GLU or GLUT refer to the links page. Through the use of GLUT, most of the demos should be portable to any platform that supports OpenGL. I have tested the demos in both Windows and Linux (where applicable).

Some of the demos (labelled 'WIN32') will only work on Windows platforms that support the named extension. If you wish to port these to another platform, you will have to modify the code that obtains the extension function entry points.

4.1 Light Maps

Light Mapping (Multipass)

lightmap1.zip    lightmap1.tar.gz

Light Mapping (ARB_multitexture) - WIN32

lightmap2.zip

4.2 Volumetric Fog

Volumetric Fog (Multipass)

volfog1.zip    volfog1.tar.gz

Volumetric Fog (EXT_fog_coord) - WIN32

volfog2.zip

4.3 Shadows

Simple Shadows

shadows1.zip    shadows1.tar.gz

Complex Shadows

shadows2.zip    shadows2.tar.gz

Complex Shadows (Using Stencil Buffer)

shadows3.zip    shadows3.tar.gz

4.4 Movement

Camera Movement

movement1.zip    movement1.tar.gz

Planetary Movement

movement2.zip    movement2.tar.gz

4.5 Landscapes

Terrain Rendering (Fixed Mesh)

landscape1.zip

Terrain Rendering (Quad Tree)

landscape2.zip