Surface tile

From OrbiterWiki
Revision as of 20:12, 12 October 2005 by 62.176.226.64 (talk) (Started article, still in the todo state.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Surface Tiles are a way to use high resolution ground textures for a small local region, usually around a base.

The earth is split into 2048 tiles in latitude and 4096 tiles in longitude.

The surface tiles in orbiter consist of two parts: The actual tile textures for the planet and the surface tile definition in the configuration file of a base.


The syntax for a surface tile list is

BEGIN_SURFTILELIST
<texturelevel> <tilenumberfrommeridian_positive_for_east> <tilenumberfromequator_positive_north> 1
END_SURFTILELIST

The filenames for the textures follow a similar scheme:

<planet name>_<texture level>_<E/W><tile number in latitude>_<N/S><tile number in longitude>.dds

The function for getting the tilenumber in latitude is:

The function for getting the tilenumber in longitude is:

Each surface tile is roughly 5 x 5 km large.