Pygame 3D Graphics Tutorial

In this tutorial I hope to explain the basics of 3D graphics using Python and Pygame. Pygame is not really designed for 3D graphics, so if you want to create a game with 3D graphics, you'd be better off using something else where all the basics, such as shading, are done automatically. The aim of this tutorial is primarily to explain the mathematics of 3D graphics. I'm using Pygame to display the results simply because it's convienient. Hopefully, however, some of the programs might be useful in their own right.

I haven't finished the tutorial, but the most up-to-date code which was used to create some of the examples below can be found here.

A few of examples of what I've made with Pygame and hope to cover:

Some simple animation

Reading .obj files


Some simple physics