Difference between revisions of "Surface tile"

From OrbiterWiki
Jump to navigation Jump to search
m (Surface Tiles moved to surface tiles)
(Added category.)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Surface Tiles are a way to use high resolution ground textures for a small local region, usually around a base.  
+
'''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 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  
+
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.  
+
'''surface tile''' definition in the [[configuration file]] of a base.  
  
 +
==Configuration file syntax==
  
 
+
The syntax for a '''surface tile''' list is
The syntax for a surface tile list is
 
  
 
<pre>
 
<pre>
 
BEGIN_SURFTILELIST
 
BEGIN_SURFTILELIST
<texturelevel> <tilenumberfrommeridian_positive_for_east> <tilenumberfromequator_positive_north> 1
+
<texturelevel> <tilenumberfrommeridian_positive_for_east> <tilenumberfromequator_positive_north> <bitflag_for_transparency>
 
END_SURFTILELIST
 
END_SURFTILELIST
 
</pre>
 
</pre>
Line 22: Line 22:
 
</pre>
 
</pre>
  
The function for getting the tilenumber in latitude is:
+
The function for getting the tilenumber in [[latitude]] is:
  
 
TN_lat = 1024.0 * latitude / 90.0
 
TN_lat = 1024.0 * latitude / 90.0
  
The function for getting the tilenumber in longitude is:
+
The function for getting the tilenumber in [[longitude]] is:
  
 
TN_long = 2048.0 * longitude / 180.0
 
TN_long = 2048.0 * longitude / 180.0
  
Each surface tile is roughly 5 x 5 km large.
+
Each '''surface tile''' is roughly 5 x 5 km large.
 +
 
 +
The '''transparency bitflag''' is usually '''1'''. If the tile contains transparency in the alpha channel, the bitflag has to be changed to '''3'''
 +
 
 +
==Future developments==
 +
 
 +
It is planned for future versions, to replace the '''surface tiles''' by a ultra high resolution [[planet texture]] (Level 15?).
 +
 
 +
[[Category: Articles]]
 +
[[Category: Glossary]]

Latest revision as of 03:49, 16 October 2022

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.

Configuration file syntax[edit]

The syntax for a surface tile list is

BEGIN_SURFTILELIST
<texturelevel> <tilenumberfrommeridian_positive_for_east> <tilenumberfromequator_positive_north> <bitflag_for_transparency>
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:

TN_lat = 1024.0 * latitude / 90.0

The function for getting the tilenumber in longitude is:

TN_long = 2048.0 * longitude / 180.0

Each surface tile is roughly 5 x 5 km large.

The transparency bitflag is usually 1. If the tile contains transparency in the alpha channel, the bitflag has to be changed to 3

Future developments[edit]

It is planned for future versions, to replace the surface tiles by a ultra high resolution planet texture (Level 15?).