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:

Java
TerrainOverlay overlay = getScene().getCentralBodies().getEarth().getTerrain().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:

Java
TerrainOverlay terrainOverlay = new AGIProcessedTerrainOverlay(terrainUri);
getScene().getCentralBodies().getEarth().getTerrain().add(terrainOverlay);

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

Java
getScene().getCentralBodies().get(overlay.getCentralBody()).getImagery().remove(overlay);