TSBK03 lecture 2 demos

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 


2.1 Simple stencil example


This demo basically shows Utah Teapot through a circular stencil “hole”.


Skärmavbild 2017-09-18 kl. 14.45.42


download


2.2 Mirrory


Mirroring on a flat surface using stencil buffer to control drawing.


Skärmavbild 2017-09-18 kl. 14.47.39

download


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.


Skärmavbild 2017-09-18 kl. 14.52.56

download


2.4 Projected


Projected texturing. It does give a hint on where this is going, right?


Skärmavbild 2017-09-18 kl. 14.55.08

download


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.


Skärmavbild 2017-09-18 kl. 14.56.50

download


2.6 Recursive Temporal Filtering (RTF)


The simplest example I know of multi-pass rendering, for motion blur effects.


Skärmavbild 2017-09-18 kl. 15.01.50

download



This page is maintained by Ingemar Ragnemalm.