Lectures

Here are the slides and examples from the computer graphics lectures I’ve given at KTH as a member of the Stacken computer club. They were not part of any course, nor am I currently an employee at KTH.

Note that a number of years have passed since I gave these lectures and that not all of the information is still relevant.

OpenGL programming - An introduction

Originally presented on October 26, 2005.

Synopsis

An introduction to traditional OpenGL programming. A brief description of the OpenGL state machine, how to perform simple drawing operations and how OpenGL works on a standards and community level. Basic knowledge of ANSI C and linear algebra is required.

Slides & Examples

Slides in ODF format (1.3MB)

Slides in PDF format (426KB)

Source code for all examples (93KB)

The examples assume a Unix-like operating system. Support for other platforms is left as an exercise for the reader. To build the examples, you will also need GLFW.

Rendering engine design - An introduction

Originally presented on May 25, 2007.

Synopsis

An introduction to writing a basic rendering engine on top of modern OpenGL. Common renderer design patterns, best practices and care and feeding of a modern GPU are discussed. A short guide to transitioning to modern OpenGL is also included. Basic knowledge of OpenGL, Standard C++ and linear algebra is required.

Slides & Examples

Slides in ODF format (58KB)

Slides in PDF format (172KB)

The engine used as an example implementation was Wendy.

Documentation & tutorials

These resources are far more up-to-date than the lecture material hosted here.