Editing Surface tile

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
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> <bitflag_for_transparency>
+
<texturelevel> <tilenumberfrommeridian_positive_for_east> <tilenumberfromequator_positive_north> 1
 
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]]
 

Please note that all contributions to OrbiterWiki are considered to be released under the GNU Free Documentation License 1.2 (see OrbiterWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)