HOME

TheInfoList



OR:

A skybox is a method of creating backgrounds to make a
video game Video games, also known as computer games, are electronic games that involves interaction with a user interface or input device such as a joystick, controller, keyboard, or motion sensing device to generate visual feedback. This fee ...
level Level or levels may refer to: Engineering *Level (instrument), a device used to measure true horizontal or relative heights *Spirit level, an instrument designed to indicate whether a surface is horizontal or vertical *Canal pound or level *Regr ...
appear larger than it really is. When a skybox is used, the level is enclosed in a
cuboid In geometry, a cuboid is a hexahedron, a six-faced solid. Its faces are quadrilaterals. Cuboid means "like a cube", in the sense that by adjusting the length of the edges or the angles between edges and faces a cuboid can be transformed into a cub ...
. The
sky The sky is an unobstructed view upward from the surface of the Earth. It includes the atmosphere and outer space. It may also be considered a place between the ground and outer space, thus distinct from outer space. In the field of astronomy, ...
, distant mountains, distant buildings, and other unreachable objects are
projected Projected is an American rock supergroup consisting of Sevendust members John Connolly and Vinnie Hornsby, Alter Bridge and Creed drummer Scott Phillips, and former Submersed and current Tremonti guitarist Eric Friedman. The band released thei ...
onto the cube's faces (using a technique called
cube mapping In computer graphics, cube mapping is a method of environment mapping that uses the six faces of a cube as the map shape. The environment is projected onto the sides of a cube and stored as six square textures, or unfolded into six regions of a s ...
), thus creating the illusion of distant three-dimensional surroundings. A skydome employs the same concept but uses either a
sphere A sphere () is a Geometry, geometrical object that is a solid geometry, three-dimensional analogue to a two-dimensional circle. A sphere is the Locus (mathematics), set of points that are all at the same distance from a given point in three ...
or a
hemisphere Hemisphere refers to: * A half of a sphere As half of the Earth * A hemisphere of Earth ** Northern Hemisphere ** Southern Hemisphere ** Eastern Hemisphere ** Western Hemisphere ** Land and water hemispheres * A half of the (geocentric) celes ...
instead of a cube. Processing of
3D graphics 3D computer graphics, or “3D graphics,” sometimes called CGI, 3D-CGI or three-dimensional computer graphics are graphics that use a three-dimensional representation of geometric data (often Cartesian) that is stored in the computer for the ...
is computationally expensive, especially in real-time games, and poses multiple limits. Levels have to be processed at tremendous speeds, making it difficult to render vast skyscapes in real-time. Additionally, real-time graphics generally have depth buffers with limited bit-depth, which puts a limit on the amount of details that can be rendered at a distance. To avoid these problems, games often employ skyboxes. Traditionally, these are simple cubes with up to six different textures placed on the faces. By careful alignment, a viewer in the exact middle of the skybox will perceive the illusion of a real 3D world around it, made up of those six faces. As a viewer moves through a 3D scene, it is common for the skybox to remain stationary with respect to the viewer. This technique creates the illusion that objects in the skybox are infinitely far away, since they do not exhibit any
parallax Parallax is a displacement or difference in the apparent position of an object viewed along two different lines of sight and is measured by the angle or semi-angle of inclination between those two lines. Due to foreshortening, nearby objects ...
motion, whereas 3D objects closer to the viewer do appear to move. This is often a good approximation of reality, where distant objects such as clouds, stars and even mountains appear to be stationary when the viewpoint is displaced by relatively small distances. However, designers must be careful about which objects they include in a fixed skybox. If an object of known size (e.g. a car) is included in the texture, and is large enough for the viewer to perceive it as close by, the lack of parallax motion may be perceived as unrealistic or confusing. The source of a skybox can be any form of
texture Texture may refer to: Science and technology * Surface texture, the texture means smoothness, roughness, or bumpiness of the surface of an object * Texture (roads), road surface characteristics with waves shorter than road roughness * Texture (c ...
, including photographs, hand-drawn images, or pre-rendered 3D geometry. Usually, these textures are created and aligned in 6 directions, with viewing angles of 90 degrees (which covers up the 6 faces of the cube).


Advanced skyboxes

Simple texture-based skyboxes had severe disadvantages. They could not be animated, and all objects would appear equally distant at infinity. They looked simple and because of certain limits, it was hard for designers to be creative with this feature. But starting in the late 1990s, some game designers built small amounts of 3D geometry to appear in the skybox to create a better illusion of depth, in addition to a traditional skybox for objects very far away. This constructed skybox was placed in an unreachable location, typically outside the bounds of the playable portion of the level, to prevent players from touching the skybox. In older versions of this technology, such as the ones presented in the game ''
Unreal Unreal may refer to: Books and TV * ''Unreal'' (short story collection), a 1985 book of short stories by Paul Jennings * ''Unreal'' (TV series), a 2015 television drama series on Lifetime Computing and games * ''Unreal'' (video game series), ...
'', this was limited to movements in the sky, such as the movements of clouds. Elements could be changed from level to level, such as the positions of stellar objects, or the color of the sky, giving the illusion of the gradual change from day to night. The skybox in this game would still appear to be infinitely far away, as the skybox, although containing 3D geometry, did not move the viewing point along with the player movement through the level. Newer engines, such as the
Source engine Source is a 3D game engine developed by Valve. It debuted as the successor to GoldSrc in 2004 with the release of '' Counter-Strike: Source'' and '' Half-Life 2''. Updates to Source were released in incremental versions, with the engine being su ...
, continue on this idea, allowing the skybox to move along with the player, although at a different speed. Because depth is perceived on the compared movement of objects, making the skybox move slower than the level causes the skybox to appear far away, but not infinitely so. It is also possible, but not required, to include 3D geometry which will surround the accessible playing environment, such as unreachable buildings or mountains. They are designed and modeled at a smaller scale, typically 1/16th, then rendered by the engine to appear much larger. This results in fewer CPU requirements than if they were rendered in full size. The effect is referred to as a "3D skybox". In the game ''
Half-Life 2 ''Half-Life 2'' is a 2004 first-person shooter game developed by Valve. It was published by Valve through its distribution service Steam. Like the original ''Half-Life'' (1998), ''Half-Life 2'' combines shooting, puzzles, and storytelling, and ...
'', this effect was extensively used in showing
The Citadel The Citadel, The Military College of South Carolina, commonly known simply as The Citadel, is a Public college, public United States senior military college, senior military college in Charleston, South Carolina. Established in 1842, it is one ...
, a huge structure in the center of
City 17 The ''Half-Life'' video game series features many locations set in a dystopian future stemming from the events of the first game, ''Half-Life''. These locations are used and referred to throughout the series. The locations, for the most part, ar ...
. In the closing chapters of the game, the player travels through the city towards the Citadel, the skybox effect making it grow larger and larger progressively with the player movement, completely appearing to be a part of the level. As the player reaches the base of the Citadel, it is broken into two pieces. A small lower section is a part of the main map, while the upper section is in the 3D skybox. The two sections are seamlessly blended together to appear as a single structure.


See also

*
Cube mapping In computer graphics, cube mapping is a method of environment mapping that uses the six faces of a cube as the map shape. The environment is projected onto the sides of a cube and stored as six square textures, or unfolded into six regions of a s ...
*
Parallax scrolling Parallax scrolling is a technique in computer graphics where background images move past the camera more slowly than foreground images, creating an illusion of depth in a 2D scene of distance. The technique grew out of the multiplane camera tec ...


External links


Skybox (2D)
(Valve Developer Community)

(Tutorial 25: SkyBox)


References

{{Computer graphics Video game design