Changes the appearance of the atmosphere in a scene.
Use case
Atmospheric effect can be used to make the scene view look more realistic.
How to use the sample
Select one of the three available atmosphere effects. The sky will change to display the selected atmosphere effect.
How it works
- Create a scene and display it in a scene view.
- Change the atmosphere effect with the
SceneView.AtmosphereEffect
property.
Relevant API
- SceneView
- SceneView.AtmosphereEffect
Additional information
There are three atmosphere effect options:
- Realistic - A realistic atmosphere effect is applied over the entire surface.
- Horizon only - Atmosphere effect applied to the sky (horizon) only.
- None - No atmosphere effect. The sky is rendered black with a starfield consisting of randomly placed white dots.
Tags
atmosphere, horizon, sky
Sample Code
<UserControl x:Class="ArcGISRuntime.WPF.Samples.ChangeAtmosphereEffect.ChangeAtmosphereEffect"
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}">
<ComboBox IsEditable="False">
<ComboBoxItem x:Name="RealisticOption">Realistic</ComboBoxItem>
<ComboBoxItem x:Name="HorizonOnlyOption" IsSelected="True">Horizon only</ComboBoxItem>
<ComboBoxItem x:Name="NoneOption">None</ComboBoxItem>
</ComboBox>
</Border>
</Grid>
</UserControl>