Click or drag to resize

Overlay Management

CentralBodyGraphics allows efficient rendering and organization of terrain and imagery overlays. This includes out-of-core memory management for high resolution terrain and images, level of detail control, and hierarchical culling.

Note Note

Technical Details: Globe overlay rendering is based on the 2002 paper Rendering Massive Terrains using Chunked Level of Detail Control.

Adding Overlays

Both terrain and imagery overlays are added to the central body by calling the Add method, as shown below:

C#
TerrainOverlay overlay = Scene.CentralBodies.Earth.Terrain.Add(overlayPath);

A TerrainOverlay is created and added to the central body.

Terrain Overlay

Alternatively, overlays can be created with new, initialized, and then added to the central body as shown below:

C#
TerrainOverlay terrainOverlay = new AGIProcessedTerrainOverlay(terrainUri);
Scene.CentralBodies.Earth.Terrain.Add(terrainOverlay);

When an overlay should no longer be rendered, remove the overlay from the central body.

C#
Scene.CentralBodies[overlay.CentralBody].Imagery.Remove(overlay);