vtSkyDome Class Reference
[Terrain]

Inheritance diagram for vtSkyDome:

Inheritance graph
[legend]
List of all members.

Detailed Description

A SkyDome is a hemisphere which is colored according to the time of day: shades of blue, plus yellow-orange at dawn and dusk. The intended use is to make it large and far away from the camera, so that it is always behind all the terrain and objects in the world. It also contains an image of the Sun (as a texture billboard). The Sun is moved and sky is colored appropriately for the time of day (set with SetTime). It also supplies a real Light (vtLight) which approximates the actual color, direction and intensity of sunlight.


Public Member Functions

void Create (const char *starfile, int depth, float radius, const char *sun_texture=NULL, const char *moon_texture=NULL)
void SetTime (const vtTime &time)


Member Function Documentation

void vtSkyDome::Create const char *  starfile,
int  depth,
float  radius,
const char *  sun_texture = NULL,
const char *  moon_texture = NULL
 

Creates a complete SkyDome, which includes a StarDome.

void vtSkyDome::SetTime const vtTime time  ) 
 

Sets the time of day (or night).

Parameters:
time Time in seconds since midnight.


Generated on Tue Apr 22 10:11:08 2008 for vtlib library by  doxygen 1.4.5