I wrote an OpenGL first-person demo for DOS (256 colors, dithering, OSMesa)
In this tool-assisted education video I create a simple FPS style walking and jumping scene for OpenGL, with DJGPP, in DOS. In a 256 colors 320×200 VGA mode. This is my first OpenGL exercise.
Apologies about some little mistakes in the program (such as reloading the textures on every frame). I noticed them when this video was already late in production, and it would take several days before the new version would be available if I were to fix them, and I’m itching to get this video out and into making the next video already, and none of the mistakes actually prevent the content being understood, so I’ll leave them be. Most people don’t even notice.
Patreon: (alternatives at
I wrote a FAQ after this video was picked up on Reddit the first time in 2012. Here it is:
Source code and prebuilt lightmaps: (Compiles and runs on Linux):
(includes also a superior ellipsoid-based collision testing, and a buggy WIP for portal rendering: I’m not good with the math.)
The background music is The Last Duel/The Final Decisive Battle from Lufia I/II (SNES). However, it is not played through the SPC700 (SNES audio chip), but through OPL3, the FM synthesizer in PCs. You can see my process of converting a SNES song into an FM song in this video: