A few weeks ago (before I moved and put my PC in boxes) I was playing with OpenGL on SDL. This time I left all the crazy memory management stuff, and the segfaults behind. I got as far as some code that draws 3d walls correctly linked at the corners, on a flat plane. I’d post a screenshot, but my PC’s in boxes in my parents garage. Maybe later. [Edit: like now]
Its just a bit of an exercise to get back into the C++ way, and to learn a bit about openGL and graphics programming.
The interesting thing I ran into is the need to calculate normals for all the polygons to do lighting correctly. I’m in the process of learning how to do this.
Pages: