Blog

Adding a terrain in Ogre 1.7

With the Ogre wiki tutorial #3 : Terrain, Sky, and Fog we will have a nice looking terrain but it is not ours. So let's change the code a little bit.
In Ogre3D 1.7 importing a heightmap and creating a terrain is done with the Terrain component.

Dune generation with World machine

Remember how we generated our first terrain?

It was pretty for a desert landscape but it lacked sand dunes and we are going to add them now.

First of all we need the dune generator macro made by nikita, download it and load it in your World Machine macro library.

Let's start with the previous terrain that can be found in the first terrain post desert2.tmd.

Terrain generation with World machine

In order to generate a base terrain for outside landscapes we need a terrain generator because it saves many hours of work and can enhance visual rendering.

We chose to use WorldMachine, because it has a free version of course and also because it can produce very realistic outdoor scenes.

With generator blocks we will output a 2D heightmap that Ogre3D will transform into a real 3D landscape saving us the modeling of the terrain.

Pages

Menu