LevelInfo

consoledoc.h

Stores and controls the rendering and status information for a game level.

More...

Visibility

float

Closest distance from the camera's position to render the world.

float

Furthest distance from the camera's position to render the world.

float

Furthest distance from the camera's position to render players. Defaults to visibleDistance.

float

NearPlane bias used when rendering Decal and DecalRoad. This should be tuned to the visibleDistance in your level.

Fog

LinearColorF

The default color for the scene fog.

float

The 0 to 1 density value for the exponential fog falloff.

float

An offset from the camera in meters for moving the start of the fog effect.

float

A height in meters for altitude fog falloff.

LevelInfo

ColorI

The color used to clear the background before the scene or any GUIs are rendered.

Lighting

float

Number of seconds it takes to blend from one ambient light color to a different one.

EaseF

Interpolation curve to use for blending from one ambient light color to a different one.

filename

Accumulation texture.

Sound

The global ambient sound environment.

The distance attenuation model to use.

Detailed Description

Stores and controls the rendering and status information for a game level.

new LevelInfo(theLevelInfo)
{
  visibleDistance = "1000";
  fogColor = "0.6 0.6 0.7 1";
  fogDensity = "0";
  fogDensityOffset = "700";
  fogAtmosphereHeight = "0";
  canvasClearColor = "0 0 0 255";
  canSaveDynamicFields = "1";
  levelName = "Blank Room";
  desc0 = "A blank room ready to be populated with Torque objects.";
  Enabled = "1";
};

Visibility

float nearClip 

Closest distance from the camera's position to render the world.

float visibleDistance 

Furthest distance from the camera's position to render the world.

float visibleGhostDistance 

Furthest distance from the camera's position to render players. Defaults to visibleDistance.

float decalBias 

NearPlane bias used when rendering Decal and DecalRoad. This should be tuned to the visibleDistance in your level.

Fog

LinearColorF fogColor 

The default color for the scene fog.

float fogDensity 

The 0 to 1 density value for the exponential fog falloff.

float fogDensityOffset 

An offset from the camera in meters for moving the start of the fog effect.

float fogAtmosphereHeight 

A height in meters for altitude fog falloff.

LevelInfo

ColorI canvasClearColor 

The color used to clear the background before the scene or any GUIs are rendered.

Lighting

float ambientLightBlendPhase 

Number of seconds it takes to blend from one ambient light color to a different one.

EaseF ambientLightBlendCurve 

Interpolation curve to use for blending from one ambient light color to a different one.

filename AccuTexture 

Accumulation texture.

Sound

SFXAmbience soundAmbience 

The global ambient sound environment.

SFXDistanceModel soundDistanceModel 

The distance attenuation model to use.