Tuesday, July 24, 2007

Source Example 4 - Terrain

So onto terrain, this example uses a height map 128X128 and is configured to use Riemers origional terrain shader (modified for the engine). Also included in this example are my terrain shaders along with the modified bump maped versions of these shaders and the associated textures.

It also gives an example of the terrain picking and collision, again this is quite basic.

Mouse to rotate the camera.
Arrow keys to translate the camera.
Right click to drop the terrains height and left to raise it.
Keys 1-4 select a terrain shader
  • 1 - Reimers Terrain Shader
  • 2 - My Terrain Shader
  • 3 - Reimers Terrain Shader with Bump Mapping
  • 4 - My Terrain Shader with Bump Mapping
    Escape to exit.

    1. hey man, you should work out how to do texture splatting so you can paint on textures to the terrain. i'd really like to see an example of it :)

    2. Yes, I am sure there are XNA examples out there.

      I might even do a bit on texture bombing as well.


    Note: Only a member of this blog may post a comment.