1. Main course book:

"Polygons Feel No Pain". 270 pages. This is the main course book, available on-line right here:


Supplement on collision detection and handling (2024)

Old version:


Also available in print at Bokakademin, both in the latest and an older, discounted version. It is also available from Amazon: here but that version is old since it is no longer my main source.

The printed version is intended to be a not very large, course relevant and low cost course book. The goal with it is to provide the right book for the course in order to make a good course; I don’t try to make money from it. If you look at the price that should be obvious - plus the availability as PDF!

(Note: When making minor updates on-line, the index part of the online book is not always updated with the changes. That is because that requires significant extra work and the index isn't that important when you can just search on a keyword. However, the printed versions has updated index.)

1.1 Errata

Known errors in the book:

• The formula for additional memory needed by mipmapping should sum from 1 or end up 4/3.

Please report inconsistencies when you find them!

1.2 Older versions (linked as backups):




2. Supplements.

Supplements may be uploaded (links above) or handed out at the lectures to cover any new topics not sufficiently covered by the book. No further such supplements are currently planned but may be called for due to the changes this year.

3. Internet resources:


(Deals with the original GLUT. MicroGlut is not GLUT! It is a smaller package, no outdated material, simplified, and with some valuable extensions as well. Thus, I don’t recommend the GLUT documentation.)

Lab material (see lab pages)

Lots and lots of textures! (You might want to resize to power of two size and save as TGA.) 3D models. The best ones cost money, but for your projects you want free ones. Just search with price range 0 to 0! Also note that many OBJ files are too complex for our old loader (often fine with our new LittleOBJLoader), so you may need to edit them (manually and/or in a 3D program like Wings or Blender). They may also have ridiculous sizes. The site is a wonderful resource if you have a bit of patience. Another site with many free models. This site doesn’t look very well maintained, but it has many of the most iconic models for this subject. A page full of skyboxes! Another page with skyboxes. I found two skyboxes here.

4. Demos

An archive of demos relevant for this course as well as the advanced course are here:

The PFNP demo archive

This is the main source for demos and where I will put all updates.

There is also an old archive here: Demo folder. This is basically an older, messy variant of the archive above.

5. OpenGL books that you might find useful

"OpenGL Programming Guide", the "red book". This is the official OpenGL book, a 900 page brick. It covers just about everything about OpenGL. You can find old versions on the web, mostly about very old OpenGL versions like 1.2.

This page is maintained by Ingemar Ragnemalm