OpenGL Terrain Engine

Update: iPad version released

I started working on a terrain engine around October 2000. I was deeply moved by screenshots from black and white :)

My intention and main goal was to create something visually stunning. This meant writing a terrain texture-generator, and working hard to find good textures and blending modes.

The outcome is an engine that hold a (supposedly) 1km by 1km piece of terrain with very high accuracy. There is no triangle-cutting algorithm employed, simple brute-force. I use a large terrain texture and a tiling detail texture. There’s a skybox and the terrain reflects on the water.

I used OpenGL for this one, employing the OGLC skeleton to avoid most of the opengl-win32 business.

You can move through this world using descent keys (a,z, keypad). use ‘w’ to switch to wire-frame and ‘d’ to render without the detail texture.

A few screenshots:

Downloads :

Binary (win32) + Source: terrain engine.zip (compile in debug, release gives problems :)

Thanks :

Yoni Lavi – dynamic camera and general coordinate-system fixups.
The OpenGL Challenge – OpenGL skeleton-app.
Dan Gonzalez Rodriguez – terrain texture generator (CKCed) and figuring out the correct blending mode for the detail-texture.

4 thoughts on “OpenGL Terrain Engine

  1. What software did you use to make this? As a tehie and artist (I’m only 13), i want to make something like this! Please gimme a link thanks :)

  2. Thanks for the code. I’ve been looking all over the place for some good example code such as yours.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>