OpenGL Adventures

Notes and demos exploring simple OpenGL programs: cubes, teapots, lighting and textures.

Basic OpenGL example

The most basic example: a cube rendered from arrays of vertices and normals.

Cube source on GitHub

Teapot wireframe

The Utah teapot reappears: model loading with precalculated normals and an initial diffuse lighting shader.

Teapot diffuse shader

Reflection model

Adding reflection terms to the light model to simulate specular highlights and improve material appearance.

Texture mapping

Applying simple textures; triangulation limitations are visible and next steps include Bezier interpolation for smoother surfaces.