jump to navigation

Getting into PyOpenGL August 6, 2011

Posted by PythonGuy in OpenGL, Python.
add a comment

Python Guy is getting back into OpenGL. I remember doing some basic OpenGL back in ’99/2000. Nowadays, so much has changed that I’m learning it all over again.

If you want to follow along, I’m going to try and build a Minecraft clone.

The general idea of the game is that you control a character that can manipulate the world. I’m going for a medieval RPG style game play, maybe with some networking enabled in the future.

The problem of generating the cubes is harder than it looks. My big idea is to apply a smoothing algorithm so that the data looks more natural. That is, if two blocks only differ in elevation by 1 unit, then the two blocks should form a neat slope.

Another idea is just to start with raw data describing the landscape, and allow the player to manipulate the mesh.

Anyway, OpenGL is very well documented, both in the infamous Red Book and on the OpenGL wiki. I encourage you to check it out.

PyOpenGL, by the way, is the way to go.

Advertisements