Updated January 29, 2014, 4:42 pm

D3D11 Terrain

GeoMipmapTerrain rendered with D3D11. This demo uses hardware instancing to draw 10,000 trees with slightly different rotation and scaling for each instance.

The terrain blends 4 different textures using texture arrays and a single blend map that is generated at runtime based on vertex height and slope.

Trees and terrain patches that are not on the screen are eliminated with frustum culling.

Controls
  • W,A,S,D : Move
  • Mouse : Look around
  • Shift : Move faster
  • Alt+Enter : Fullscreen
  • p : Wireframe
  • o : Solid
  • r : Generate random terrain
  • b : Bump mapping

Download Hardware Instancing