terrain_chunk
Determines the chunk size of chunked terrain,
in
mesh squares
per row.
The smaller this value, the more chunks a terrain is split into.
Setting this variable to 0 disables chunked terrain and allows terrain
mesh deformation.
Range:
0 .. 256 (default = 32 for
a chunk size of 32x32 squares
/ 33x33 vertices).
Type:
var
Remarks:
-
This variable must be set before loading the terrain.
-
Water physics can be applied to nonchunked terrain
only (terrain_chunk
= 0).
- Terrain is automatically
nonchunked if its file name ends with "_n". This is useful if
water surfaces must be nonchunked for applying water physics.
- Smaller chunks sizes allow more dynamic lights on the terrain (max. 8 per
chunk). Too-small chunk sizes however reduce the frame rate.
-
For avoiding unchunked mesh stripes, terrain_chunk should be a multiple of 8, and the number of terrain mesh squares in x and y direction should be a multiple of the terrain_chunk value.
Edition
C
Example:
terrain_chunk = 0; // disable chunked terrain
level_load("myterrain.hmp");
See also:
Terrain, terrain_lod, detail_size
► latest
version online