Sky

From DoomWiki.org

The sky is a special effect built into the Doom rendering engine.

The original Doom contains three sky textures (SKY1, SKY2 and SKY3), one for each episode. This is consistent with the backstory, because each episode takes place in a specific venue (Phobos, Deimos and Hell, respectively), and the nine levels of each episode share the same sky. The first is a misty gray sky with lumpy greenish mountains, the second is a red overcast sky with brown mountains with light snow, and the third is a much foggier red sky with mountains tinted reddish-black. Ultimate Doom added a fourth sky texture, SKY4, for use in Episode 4, showing orange-tinted clouds with no visible mountains.

Doom II uses the same names for its three sky textures, but the graphics in the IWAD file are different. The engine selects SKY1 for the levels MAP01 through MAP11, depicting a brown partly cloudy sky, SKY2 for MAP12 through MAP20, showing a burning cityscape, and SKY3 for MAP21 through MAP32, which somewhat resembles SKY2 from the original Doom but with bright red cave walls behind the mountains, making it clear the player is in a subterranean Hell. The game is not divided into episodes, of course, but textual interludes divide it into related groups of levels and the sky textures again correspond to the backstory venues: starport, your own home city and alien base (Hell on Earth).

TNT: Evilution's SKY1 is daytime, with a brown sky and snowcapped mountains, and SKY2 is nighttime and filled with stars, with a crude galaxy and a rendering of Supernova 1987a covering large portions of opposite sides of the sky. However, SKY3 is another Hell sky, here bright red and overcast.

The Plutonia Experiment uses grayish-white overcast for SKY1, a somber dark red for SKY2, and bright red hell cave wall for SKY3.

Heretic contains three sky textures (SKY1, SKY2 and SKY3), one for each episode. SKY1 contains a dark gray overcast sky with brown mountains, SKY2 a cloudy red sky with gray mountains, and SKY3 a deep blue underwater "sky" with blue mountains and large struts visibly supporting the dome. Episode 4 and the three unused levels of "Episode 6" simply use SKY1, whereas Episode 5 recycles SKY3.

Hexen does skies in a different manner, allowing for two textures to be used at once as well as scrolling textures (Used, for example, in clouds) and thunder and lightning. Skies in Hexen are defined in the MAPINFO lump.

Technical[edit]

In order to appear out-of-doors, a sector is given the special ceiling flat name of F_SKY1 (but see below). This flat is not actually drawn, however. The engine recognizes it as indicating that the ceiling is transparent to the sky beyond, and draws sky above the ceiling height. The actual sky texture drawn depends on the episode and/or level number as described above. It is important to note that the sky is drawn similarly to a wall, not like a regular ceiling.

SKY1, SKY2, SKY3 and SKY4 are in an IWAD file as wall textures, each consisting of one or more wall patches. They must be 128 units high. They are always drawn with their tops at the top of the view window and their zero column at due north. A 1024-wide sky will exactly circumscribe the horizon; this effect was first explained in details in the text file accompanying The Unholy Trinity. The sky textures in Doom and Doom II are only 256 units wide, so they are tiled and repeat four times for each full revolution. The sky patches in Heretic and Hexen are 200-unit tall, but the textures themselves are still declared to be only 128-unit tall. The additional height, however, is used and serves to prevent tiling when looking up or down.

Hexen skies are combined with a background sky (SKY1 to SKY4) and a foreground sky (SKYFOG/2 or SKYWALL/2). They are indicated respectively as the sky1 and sky2 properties in MAPINFO. Foreground skies use black as a transparent color. Hexen also allows to define different scrolling speeds for both sky layers.

The sky texture is mirrored compared to how it appears when used as a texture on a wall.

Sky Doom Doom II TNT: Evilution Plutonia Heretic Hexen
SKY1 256×128
SKY1
256×128
RSKY1
1024×128
DO*DAY (E/N/W/S)
256×128
SKY1
256×128†
SKY1
256×128†
SKY1
SKY2 256×128
SKY2
256×128
RSKY2
1024×128
DO*NITE (E/N/W/S)
1024×128
SKY2* (A/B/C/D)
256×128†
SKY2
256×128†
SKY1
SKY3 256×128
SKY3
256×128
RSKY3
1024×128
DO*HELL (E/N/W/S)
512×128
SKY3* (A/B)
256×128†
SKY3
256×128†
SKY1
SKY4 256×128
SKY4
256×128†
SKY4

Other textures:

Name Description Notes Game
SKY5 256×128†
SKY1
Unused copy of SKY1 Heretic
SKYFOG 256×128†
SKYFOG
Used as foreground sky Hexen
SKYFOG2 256×128†
SKYFOG2
Used as foreground sky Hexen
SKYWALL 256×128†
SKYFOG
Used as foreground sky Hexen
SKYWALL2 256×128†
SKYFOG2
Used as foreground sky Hexen
SKYMNTN01 1024×128
P_RED* (1/2/3/4)
Strife
SKYMNTN02 1024×128
P_BLUE* (1/2/3/4)
Strife

† The patch is actually 256×200.

Additional information[edit]

  • F_SKY1 may be used for floors as well as ceilings. However, this may cause Hall of Mirrors effect if the player can see too high.
  • Hexen uses F_SKY instead of F_SKY1, and Strife uses F_SKY001. All other Doom-engine games use F_SKY1.
  • SKY1 et. al. may be used directly as wall textures, but then they just look like paintings. They will be mirror images of what they look like when used as sky.
  • If the player can see too far down (past the bottom of the sky texture), a seam will appear between texture tiles. Some ports try to prevent this by stretching sky textures, or by making them blur to a solid color past their limits.
  • If two adjacent sectors both have F_SKY1 for their ceiling, the upper texture specified (if any) is ignored. Sky is drawn instead. Comments in the code responsible for this effect call it the "sky hack".
  • Animated skies do not work outside of Hexen and certain source ports.
  • Sky selection is one reason a PWAD author might select a map slot other than E1M1 or MAP01 (another obvious reason is the music). Of course, with a little more work the author could provide replacement sky or music lumps; or use port-specific features such as MAPINFO to choose the sky and music.

Trivia[edit]

  • Most Doom and Doom II sky textures were derived from stock images distributed on MediaClips CD-ROM by Aris Entertainment. [1]
  • The SKY1 texture in The Ultimate Doom was made from a photograph of a Yangshuo cavern which was taken by Tom Atwood (MAJEST3.TIF).
  • The SKY2 texture is made from the Zion National Park (ZION.TIF) in the foreground and another picture for the background mountains.
  • The SKY3 texture is a composition of several sources: the clouds are taken from a picture of white clouds over distant mountains (MAJEST4.TIF), the mountains are partly sourced from another picture (MAJEST5.TIF), other mountains are derived from pictures of stalagmites (probably from the Carlsbad Caverns National Park).
  • The SKY1 texture in Doom II was made from a photograph of sunset clouds over a beach. (WILD4.TIF)
  • The smoke from the burning city in SKY2 from Doom II was taken from the take off blast of a Space Shuttle launch. (WORLD2.TIF)
  • Pre-release versions of Doom intended for the level designer to select a sky texture per level or even sector. In the final release the sky used depends on the level number or episode. This is why the flat used for selecting a sky is named F_SKY1, as there were originally more sky flats with names such as F_SKY2, F_SKY3 and so on.
  • There were originally five sky textures to choose from. Some of these even had multiple frames for animation. The unseen graphic that F_SKY1 in the final game holds is a cropped version of SKY1 from this roster of sky textures.
  • However, it seems this functionality may have never been implemented, as in the October 4th, 1993 build, using a sky flat other than F_SKY2 does not display their respective sky texture, and are simply rendered like a normal flat instead, like the final game. Using F_SKY1 in that build always shows SKY1 regardless of episode.
  • This idea was possibly scrapped between October 4th, 1993 and an unspecified date in November 1993, as the build seen in the A Visit to id Software video uses the final SKY1 in E1 levels.

Gallery[edit]

See also[edit]

Sources[edit]

References[edit]

  1. Blackmantis (29 January 2016). [FOUND] Doom Sky source files. Doomworld forums. Retrieved 29 February 2016.