A Skybox is, in a nutshell, a graphical representation of the sky that 'wraps around' a computer game-world, and is used to simulate the 'sky' of a game-world. In most cases, a skybox will contain the typical aspects of what constitutes a 'sky' — clouds, the sun, and (occasionally) birds and other avian life. Such life is usually non-interactive, and appears either as frames of static animation or as randomly generated graphical elements.
The use of a Skybox should be apparent: It allows the programmers to use relatively little memory to simulate a functioning day/night cycle and atmospheric system, even within the incredibly confined and compressed geography of a computer game (where the actual, physical distance between ground and sky may equal as little as a mile).
Skyboxes are independent graphical elements. Usually, a given skybox can be 'swapped out' for one that suits a particular setting. Some computer games come with several Skyboxes, showing different types of meteorological phenomena (such as aurora borealis
or other things that can't physically be rendered) or a even an entirely different setting (apocalyptic vs. modern, for example).
Note that Skyboxes are specific to computer games; animated cartoons don't use Skyboxes, for the simple reason that there's no need
to use them - the sky will naturally be drawn as part of the cartoon itself.
The Skybox may also contain 3D models that will be projected larger than life, such as distant land features or buildings— in fact it usually does, in newer games, since it's a great way to make the world appear richer. It may even contain objects that move and change, such as the Citadel in Half-Life 2
, or even animated characters (who will appear to be distant Godzillian monstrosities
, something occasionally used to good effect in Machinima
- Used in Sonic Adventure 2. The levels look like they occur in the real world, but there are glitches that allow the user to jump out of a level. Doing so reveals that the levels are hallways built in a large skybox.
- In Spyro the Dragon, flying outside the bounds of the flight levels reveal that you are inside a skybox.
- One of the maps in Team Fortress 2, a train-yard called "Well", uses the skybox to conceal the interiors of the teams' bases, which are Bigger on the Inside. The top half of the buildings' façades are 3D miniatures projected onto the skybox. Generally this is not feasible in the game's engine, since the technique requires that there not be a direct line of sight to any part of the area being hidden.
- In Mabinogi: Fantasy Life, the skybox moves as time flows; since time is sped up in the game compared to real life, you can actually watch the clouds/moon/sun move across the sky.
- A toggelable option in Runescape. Used most notably in the Clan Citadels.
- Roblox has tons and tons.
- Modern Game Engines come with built-in skyboxes; an example is Unreal Engine from Epic Games. It's most likely the first thing you see when you load up the development environment.
- Some especially enterprising Kerbal Space Program modder came up with a utility for replacing the default skybox, among other features.
- The Source Game Engine used by Valve Software supports both standard 2d skyboxes, and specialized 3d skyboxes; level designers can designate an enclosed area as the 3d skybox, which cause anything placed there to appear sixteen times larger for the rest of the map. The 3d skybox is used heavily to make the otherwise very small levels in Half-Life 2 appear much larger. Some Team Fortress 2 mods can abuse the 3d skybox (which does the same thing for Half-Life 2) for shits and giggles with ricocheting rockets from the Soldier, all of which can bounce off the corners of the skybox, which have a slim chance of actually hitting something.
- In the final scene of Half-Life: Opposing Force, the skybox was cleverly used to present a teleportation event without breaking the flow with a loading screen. Since the player has a very limited view of "outside" through the open door of an Osprey, giving each side of the skybox a different texture was sufficient to create the illusion of seeing Earth one moment and Xen the next. An unseen side of the skybox contains a hidden message◊ which alludes to this "hack".
- SCP Foundation has SCP-1165, titled "Minus Level", a deconstruction of Minus Worlds. There's a recreation of the Eiffel Tower in the distance, but it turns out to be part of the world's equivalent of a skybox; if one tries to reach it, they'll just notice the tower remaining at the same distance from them no matter how far they go. One survey team sent to investigate it had to call off their journey because lethal things would happen to them if they went beyond 100 km of their starting point within the strange world.