June 25, 2009

My introduction to C++. I wanted to make 3D games. I also wanted to use Python. Thus, DXPy was born. It was a high-level wrapper for DirectX, and allowed simple python manipulation of scenes.

The most memorable part of this program was a bug… At one point, I noticed that for some reason I was getting artefacts in the drawing stage. I couldn’t figure out what was wrong! Even the internet seemed mute on the errors I had! I rewrote the entire program from scratch, line by line. Still had the error! Finally, after weeks of work, and almost giving up, I realized that wasn’t clearing the Z-buffer. Who would have imagined that a single line mistake could lead to such a weird error?

You can get the code here (7zip file).