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 |
---|
Technical Details: Globe overlay rendering is based on the 2002 paper Rendering Massive Terrains using Chunked Level of Detail Control. |
Both terrain and imagery overlays are added to the central body by calling the add method, as shown below:
TerrainOverlay overlay = getScene().getCentralBodies().getEarth().getTerrain().add(overlayPath);
A TerrainOverlay is created and added to the central body.
Alternatively, overlays can be created with new, initialized, and then added to the central body as shown below:
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.
getScene().getCentralBodies().get(overlay.getCentralBody()).getImagery().remove(overlay);