Difference between revisions of "Making Tracks: Sky and Lighting"

(Start on sky and lighting)
(No difference)

Revision as of 19:40, 24 August 2016

Sky and lighting may not seem like very important or time-consuming element of track creation, but just because this is one of the last sections, do not slack off on it. Lighting is probably the single most important step in setting the theme or mood of your track—more than even decorations. Decorations should complement the mood, but even the way in which they do this is greatly affected by the lighting. Compare Cocoa Temple with its nighttime version, Carnival del Cacao.

The nighttime sky in Carnival del Cacao is contrasted by the colorful light from the fireworks and the more noticeable light from the torches, creating a more festive atmosphere. Cocoa Temple seems quite everyday and ordinary in comparison.

Sky

Sky complements lighting in setting the mood (and in fact directly effects the lighting if an ambient light map is used). A dark track should have a dark sky, and a light track should have a light sky. Sky is configured in the SuperTuxKart Scene Properties panel. Select a type from the "Sky Type" drop-down menu. Each type is detailed below.

Box

For performance and lighting reasons, SuperTuxKart uses a skybox for textured skies, meaning that the track essentially exists inside a textured cube. (Skydomes are no longer an option.) Though simple in design, skyboxes are not always easy to create. Textures must fit together properly; otherwise the corners of the skybox will be readily visible. Don't try to make the skybox too detailed, and don't use photographs; otherwise you will have problems with noticeable edges. The same rules for texture guidelines apply to skybox textures.

Don't worry too much if edges are visible. As long as your track is interesting enough, players won't be bothered much by a slightly visible edge, as is visible in the top center of this picture:

Another way to avoid visible lines in a skybox is to hide them with vegetation and land formations. The skybox in Cocoa Temple is barely visible, but the vegetation in front of it does not look strange because the skybox texture itself suggests vegetation:

Sun

Sun (Lighting and Shadows)

Sun (Visible)

Point lights

Ambient Light Map

Fog and Volumetric Lighting