Terrain Loader – Heightmap

This program is an older OpenGL based terrain loader. The program loads in a greyscale heightmap and generates the terrain based on height values stored in the image. This version uses the DevIL image library which allows it to load a wide variety of file formats. Several textures are loaded, these include the ground texture, the detail texture and the water texture. A simple method of creating a water plane is to create a plane at a certain level for example a y axis height of -10, then animate the UV coordinates of the plane so that the water appears to move.

The detail texture allows the ground to have far more “detail” than normal. Usually a detail texture is a perlin noise or similar that is blended with the ground texture. Below is the image of a loaded heightmap.


I was going to post the source code to this example, but the code uses a triangle list method without any level of detail, so once I get the time to update this program and change the display method to a vertex buffer and add some other features I will post the code for other people to learn from.


Doom md5 Model Loader

This code will load a doom md5 model with textures and animation. The source code for this application was adapted from here. I do have a better version of this application but some of the features are not yet complete such as bump mapping and displacement mapping. I will upload the updated version at some point in the future when I have enough spare time to finish it.

Some interesting additional information about the doom md5 model format is available at the following websites:


Here is a pretty screenshot from the program:


The pinky doom md5 model

The pinky doom md5 model


Download link

(Note: Files are in RAR file format and projects are created in Visual Studio 2005)
Let me know if any of the links go dead 🙂

First Blog – Empty Project

My name is Daniel Beard and I am a third year games programming student. I wanted a place to upload work that I have done and build a profile over time. Hopefully someone else will get some use or education from my programs.

The first post is something nice and simple. A simple empty glut project. The amount of times that I have set up a new project completely is ridiculous. It is always good to have a solid base to build from so here is an empty glut project with a rotating cube.

This example project is just a glut project with a simple spinning cube. Some of these projects may not have ideal code in some parts of them, but as I think of better ways to do things they will be updated.

Spinning Cube

Spinning Cube

Here is the link to the project – download

(Note: Files are in a RAR folder and created in Visual Studio 2005)
Let me know if any links go dead 🙂