Change atmosphere effect

View inWPFUWPFormsiOSAndroid
View on GitHub
Sample viewer app

Changes the appearance of the atmosphere in a scene.

Image of change atmosphere effect

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

  1. Create a scene and display it in a scene view.
  2. 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

ChangeAtmosphereEffect.xamlChangeAtmosphereEffect.xaml.cs
               
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<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>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.