#include <SkyDome.h>
Public Member Functions | |
void | Create (const char *starfile, int depth, float radius, const char *sun_texture=NULL, const char *moon_texture=NULL) |
void | SetGeoLocation (const DPoint2 &geo) |
void | SetTime (const vtTime &time) |
void | SetDayColors (const RGBf &horizon, const RGBf &azimuth) |
void | SetSunsetColor (const RGBf &sunset) |
void | SetInterpCutoff (float cutoff) |
void | SetSunLight (vtTransform *light) |
void | SetSunLightSource (vtLightSource *ls) |
bool | SetTexture (const char *filename) |
void | SetStarAltitude (float fDegrees) |
void | RefreshCelestialObjects () |
void | ShowMarkers (bool bShow) |
bool | MarkersShown () |
Protected Member Functions | |
void | CreateMarkers () |
void | UpdateSunLight () |
void | ApplyDomeColors () |
void | ConvertVertices () |
Protected Attributes | |
DPoint2 | m_geo |
vtTime | m_time |
float | m_fSunAlt |
float | m_fSunAzi |
float | m_fStarAltitude |
vtStarDome * | m_pStarDome |
vtTransform * | m_pSunLight |
vtLightSource * | m_pSunLightSource |
RGBf | DayHorizonCol |
RGBf | DayAzimuthCol |
RGBf | SunsetCol |
float | Cutoff |
int | NumVertices |
FPoint3 * | SphVertices |
vtTransform * | m_pCelestial |
vtGeode * | m_pDomeGeom |
vtMaterialArrayPtr | m_pMats |
vtMaterial * | m_pMat |
vtMaterial * | m_pTextureMat |
vtMesh * | m_pDomeMesh |
vtMovGeode * | m_pSunGeom |
vtMaterial * | m_pSunMat |
ImagePtr | m_pSunImage |
bool | m_bHasTexture |
vtGeode * | m_pTicks |
vtGeode * | m_pWireSphere |
vtTransform * | m_pGreenMarker |
vtTransform * | m_pRedMarker |
Additional Inherited Members | |
![]() | |
osg::MatrixTransform * | m_pTransform |
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 (vtLightSource) which approximates the actual color, direction and intensity of sunlight.
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).
time | Time in seconds since midnight. |