OpenGL

OpenGL Advanced

Reflection
Sources
OpenGL doesn't have a direct support for reflection, but it can easily be simulated.
Stenciled Reflection
Sources
OpenGL doesn't have a direct support for reflection, but it can easily be simulated.
Stenciled Shadow
Sources
This sample use the stencil buffer to draw a shadow. The stencil buffer content is then used to draw a darker texture where the shadow is casted.
Torus
Sources
This part shows how to draw a Torus with the help of the glut library. There is also the first bits of a graphical user interface.
Lighted Torus
Sources
Video
This part shows how to add some realism into a scene by adding a light source.
Hatched Torus
Sources
This part shows how to use 3D texture to simulate hand-hatched 3D torus.
Octree
Sources
This part shows how to use an octree to modelize implicite surfaces.
Image Viewer
Sources
This sample shows how to make a (very limited) image viewer with OpenGL.
Polygon Offset
Sources
This sample shows how to use PolygonOffset to draw an hidden faces teapot without Z-fighting.
Accumulation Buffer
Sources
This sample shows how to use the accumulation buffer to show a (somewhat ugly) depth-of-field effect.
Cube Map
Sources
This part shows how to draw a nice background with a cubemap sky box.