Terrain Editor

Terrain Editor

Overview

Stand alone terrain editor for Windows created using C++, DirectX9 and the HLSL (High Level Shading Language). This project makes extensive use of a Win32 operating system manager that I wrote.

The main features are:

  • Screen size/resolution option on loading (fullscreen is not supported as access to the seperate tool window ('Terrain Dialog') is constantly needed to manipulate the terrain
  • Flat terrain generation (256x256, 512x512, 1024x1024)
  • Terrain manupulation
    • Manually using the terrain cursor to increase and decrease areas of the terrain
    • Procedurally by setting the parameters for the built in algorithms for terrain manipulation
  • Terrain texturing
    • Manually using the terrain cursor to paint and blend textures onto the terrain
    • Procedurally by setting the height and slope texture rules of the built in texture algorithm
  • Saving to .X file for the terrain model and to .png for the terrain colourmap
  • Loading saved terrains for re-editing (support for loading is limited to terrains created using this editor)
  • Directional light with adjustagle parameters to view the shadows cast by the terrain at different angles during editing
  • Rendering options include 'Render Terrain' (solid geometry), 'Render Terrain With Wireframe', 'Render Only Wireframe'

The Terrain Dialog

The terrain dialog is the controls window for the editor and is shown below.

Terrain Editor

Screenshots

Terrain Editor Terrain Editor Terrain Editor