Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:

Sets the terrain resolution grid.

For default landscapes, the supported resolutions are:

  • 50 - Smoothest, less lag.
  • 25 - Default in multiplayer.
  • 12.5 - Default in single-player.
  • 6.25 
  • 3.125 - Bumpiest, higher lag.

If you select unsupported resolutions, the closest supported value is used instead.

Terrain resolution is fixed and determined by the created world. This command controls the terrain LOD instead (the distance in which the terrain mesh resolution starts to degrade). Higher number means less vertices are used for terrain rendering, making distant hills less smooth. For example, the value of 12.5 corresponds to selecting Terrain Detail: Normal in the video options, 50 to Terrain Detail: Very Low, 3.125 to Terrain Detail: Very High.

Syntax

Syntax:setTerrainGrid grid
Parameters:
  • grid: Number - Grid resolution.
Return Value:Nothing

Examples

Examples:
setTerrainGrid 12.5;

Additional Information

See also: setViewDistance, viewDistance
Multiplayer:
Problems:

Notes







Posted on August 4, 2006 - 12:02
hardrock


This is like opening up your video preferences and changing "terrain detail", i.e.: setTerrainGrid 50 = lowest detail setTerrainGrid 3.125 = highest detail It is similar to the command setViewDistance.


Posted on August 18, 2007 - 9:46
WGL.Q
Effects on grass:


  • 50: disables/removes grass altogether.
  • 25: grass is visible.
  • Lower values make grass drawn a bit further at distance. However the effect is decreasing rapidly: Grass radius of 25 is 100%. 12.5 is now like 100% + 20%, 6.25 is like 100% + 20% + 5% and 3.125 is 100% + 20% + 5% + 1%. Note these estimates!