Skybox Basics

From Valve Developer Community

(Redirected from Skybox)
Jump to: navigation, search


Skyboxes are solutions intended to make maps look bigger than they are. They are typically used to display the sky, along with distant, unreachable areas and landscapes, such as distant mountains or buildings.

In the Source engine, the skybox is locked to the player's viewpoint, never moving or changing perspective as they move, creating the illusion of distance.

Be aware that while the most primitive shape of a skybox is a six-sided box completely enveloping the entire map, this will have a big impact on performance, compile times, and will basically create more problems than it solves. (If you have leaks, do not get tempted into using this method. The only type of map where you can use a skybox in this way, is if your map is nothing but a bunch of platforms floating in mid-air.)

A skybox should instead be reserved for places the player can see but is just out of reach of (by touch or with thrown/launched objects), typically only enveloping the upper part of the playing field of a map.

There are two types of skyboxes in the Source engine:

2D Skybox

Consists gives the effect of a giant cube surrounding the map used for applying textures in its interior faces. These textures usually consist of the ground meeting the sky in the horizon, clouds, and other distant details. The 2D skybox for a level is set in the Map Properties dialog of Hammer.

3D Skybox

This new addition for skyboxes became available with the Source engine. It's a surrounding area constructed by the level designer, outside the bounds of the gameplay area on the map. Players can never reach the 3D skybox. Maps do not require a 3D skybox to be created — it is a purely optional visual addition to the map. See 3D Skybox for more information.

See Also

Personal tools
Namespaces
Variants
Actions