Vertically exaggerate terrain in a scene.
Use case
Vertical exaggeration can be used to emphasize subtle changes in a surface. This can be useful in creating visualizations of terrain where the horizontal extent of the surface is significantly greater than the amount of vertical change in the surface. A fractional vertical exaggeration can be used to flatten surfaces or features that have extreme vertical variation.
How to use the sample
Use the slider to update terrain exaggeration.
How it works
- Create an elevation source and add it to a new surface.
- An elevation source defines the terrain based on a digital elevation model (DEM) or digital terrain model (DTM).
- Add the surface.
- The surface visualizes the elevation source.
- Configure the surface's elevation exaggeration using
Surface.ElevationExaggeration
.
Relevant API
- Scene
- Scene.BaseSurface
- Surface
- Surface.ElevationExaggeration
Tags
3D, DEM, DTM, elevation, scene, surface, terrain
Sample Code
<UserControl x:Class="ArcGISRuntime.WPF.Samples.TerrainExaggeration.TerrainExaggeration"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
<Grid>
<esri:SceneView x:Name="MySceneView" />
<Border Style="{StaticResource BorderStyle}">
<StackPanel>
<Label Content="Terrain exaggeration:" />
<Slider x:Name="TerrainSlider"
AutoToolTipPlacement="TopLeft"
AutoToolTipPrecision="2"
Maximum="3"
Minimum="1"
Value="1" />
</StackPanel>
</Border>
</Grid>
</UserControl>