Mapdev:skybox

From Spring
Jump to navigationJump to search

Sky Box

Is a cubemap projection of a skyline used to enhance the background of the map.

Example
Skyboxsimple.gif Cloudysunset.jpg
Example cube cross before assembling to dds cubemap format Ingame Result

Specification

mapinfo.lua

The relevant sections of the mapinfo.lua file that effect the colour of the ground are in the atmosphere subtable

local mapinfo = {
   ...
   atmosphere = {
      ...
      skyBox = "",
      ...
   },
   ...
}

Image File

File Location ./maps/
File Format DXT1 compressed dds cubemap
Colour Depth 4bpp
Channels RGB
Resolution Powers of two, recommended higher than 512x512

Additional Information

Howto's