Jump to content

Terrain

Terrain can be used to render large outdoors areas. Leadwerks Engine 2 supports large terrains with LOD rendering, using up to 33 million polygons.
Multiple texture layers may be used on a terrain. The first layer is sometimes referred to as the base layer. Additional layers may be added and blended onto the layers below. An RGBA texture called an alpha map is used to control blending. When an alpha map is loaded with index 0, one color channel corresponds to each of the first four layers. See LoadTerrainAlphamap for more information. If you are working in the sandbox, alpha maps are automatically created and managed when you add new texture layers.

5 layers are currently supported. There may be only one terrain atm.

Commands

BlendTerrainTexture
CreateTerrain
LoadTerrainAlphamap
LoadTerrainHeightmap
SaveTerrainAlphamap
SaveTerrainHeightmap
SaveTerrainNormalmap
SetTerrainHeight
SetTerrainTexture
SetTerrainTextureConstraints
SetTerrainTextureMappingMode
SetTerrainTextureRotation
SetTerrainTextureScale
SetVegetationShadowMode
TerrainDetail
TerrainElevation
TerrainHeight
TerrainNormal
UpdateTerrainNormals
  • You cannot add records