This page collects the demos that I usually show at lecture 2, which has an unusually high number of demos.
These demos are mainly tested on Mac. Minor changes may be needed for Linux.
All demos updated 2022.
2.1 Simple stencil example
This demo basically shows Utah Teapot through a circular stencil “hole”.
2.2 Mirrory
Mirroring on a flat surface using stencil buffer to control drawing.
2.3 Decal teapot
This demo shows a multitextured teapot where one texture is animated. This demonstrates how texture coordinates can be transformed. It comes in two versions, one with component-wise transformations and one using matrices.
2.4 Projected
Projected texturing. It does give a hint on where this is going, right?
2.5 “Simple” - textured cube on a textured cube.
This is a demo about rendering to texture. One version copies between the frame buffer and a texture while the other uses a framebuffer object (FBO) to render directly to texture.
2.6 Recursive Temporal Filtering (RTF)
The simplest example I know of multi-pass rendering, for motion blur effects.