Earth Globe API

advanced scripting

World Map Globe Edition · Scripting Support (C#)

Class: All members on this page belong to WorldMapGlobe (namespace WPM). Access via WorldMapGlobe.instance.

Earth Globe Properties

Control the appearance and rendering of the globe itself.

Visibility & Style

bool showEarth { get; set; }

Show or hide the earth surface.

EARTH_STYLE earthStyle { get; set; }

Earth texture style. Options: Natural, Alternate1/2/3, SolidColor, NaturalHighRes, NaturalScenic, NaturalHighRes16K, NaturalScenic16K.

Color earthColor { get; set; }

Color used when earthStyle is set to SolidColor.

float contrast { get; set; }

Earth texture contrast.

float brightness { get; set; }

Earth brightness.

float ambientLight { get; set; }

Ambient lighting intensity.

Surface Details

bool earthBumpMapEnabled { get; set; }

Enable bump mapping on the earth surface for terrain relief.

float earthBumpMapIntensity { get; set; }

Bump map intensity.

bool earthSpecularEnabled { get; set; }

Enable specular highlights (ocean reflections).

float earthSpecularIntensity { get; set; }

Specular intensity.

bool earthGlowScatter { get; set; }

Enable glow/scatter effect around the globe.

float earthGlowScatterIntensity { get; set; }

Glow scatter intensity.

bool earthHighDensityMesh { get; set; }

Use a high-density mesh for better visual quality (higher poly count).

bool earthInvertedMode { get; set; }

Render the globe inside-out (camera inside the sphere).

bool showBackSide { get; set; }

Show back-facing triangles of the globe.

Atmosphere

Color atmosphereColor { get; set; }

Color of the atmospheric glow.

float atmosphereAlpha { get; set; }

Atmosphere transparency (0 = invisible, 1 = opaque).

float atmosphereThickness { get; set; }

Thickness of the atmosphere shell.

float atmosphereFallOff { get; set; }

Atmosphere falloff rate.

Clouds

float cloudsSpeed { get; set; }

Cloud animation speed.

float cloudsAlpha { get; set; }

Cloud transparency.

float cloudsElevation { get; set; }

Cloud layer height above the globe surface.

bool cloudsShadowEnabled { get; set; }

Enable cloud shadows on the earth surface.

float cloudsShadowStrength { get; set; }

Cloud shadow intensity.

Skybox & Moon

SKYBOX_STYLE skyboxStyle { get; set; }

Skybox rendering style.

Texture2D skyboxEnvironmentTextureHDR { get; set; }

HDR environment texture for skybox.

float skyboxEnvironmentTransitionAltitudeMin { get; set; }

Minimum altitude for environment transition.

float skyboxEnvironmentTransitionAltitudeMax { get; set; }

Maximum altitude for environment transition.

bool showMoon { get; set; }

Show or hide the moon.

bool moonAutoScale { get; set; }

Auto-scale moon size relative to the globe.

Lighting & Time

Transform sun { get; set; }

The sun's transform. The globe uses this for directional lighting.

Vector3 earthScenicLightDirection { get; set; }

Light direction for scenic rendering mode.

bool syncTimeOfDay { get; set; }

Synchronize Earth rotation to time of day.

void SetTimeOfDay(DateTime date)

Sets the Earth's rotation to match a specific date/time.

void SetTimeOfDaySimple(float time24h)

Sets time of day using a simple 0-24 hour value.

Borders & Frontiers

bool showFrontiers { get; set; }

Show or hide country borders.

bool showCoastalFrontiers { get; set; }

Include coastal borders.

bool showInlandFrontiers { get; set; }

Show inland frontiers.

bool showOutline { get; set; }

Show or hide the highlighted country outline.

Misc Methods

void DestroySurfaces()

Removes all colored/textured surfaces from the globe.

void Hide() / void Show()

Hides or shows the entire globe.

Texture2D BakeTexture(string outputFile)

Bakes the current globe appearance (including surfaces and labels) into a texture file.

Globe Orientation

void StraightenGlobe()

Aligns the globe so the north pole points up. Instant.

void StraightenGlobe(float duration)

Animates the globe back to north-up orientation over the given duration in seconds.

void StraightenGlobe(float duration, bool keepLocationOnCenter)

Like StraightenGlobe(duration); with keepLocationOnCenter = true the current centered location remains centered after the rotation.

void TiltGlobe()

Tilts the globe to a default isometric-ish angle.

void TiltGlobe(Vector3 angles, float duration)

Tilts the globe to the supplied Euler angles over the given duration.

void ReloadEarthTexture()

Reloads the current earth texture from disk. Use after replacing the texture asset at runtime.

Globe Animation Events

OnFlyStart / OnFlyEnd, OnOrbitRotateStart / OnOrbitRotateEnd and OnZoomStart / OnZoomEnd are documented on the dedicated Events page with their delegate signatures.

Was this page helpful?