Hello,
I wanted to ask if I encountered a bug or just did something wrong.
If I define a plain empty Scene, like so:
Scene _scene = new Scene();
and I put it into a SceneView, then it renders a gridded gray ball. If I then make a button with action like:
private void Button_Click(object sender, RoutedEventArgs e)
{
MySceneView.Scene.BaseSurface.Opacity = 0.1;
}
and click the button, the opacity won't change. If I move the camera then the opacity changes.
This behaviour is weird because if the Scene has a Basemap, then it changes right when I click the button.
Is this intended? And what is a good walk-around of this? I found when I change some other property, like:
private void Button_Click(object sender, RoutedEventArgs e)
{
MySceneView.Scene.BaseSurface.Opacity = 0.1;
MySceneView.Scene.BaseSurface.BackgroundGrid.IsVisible = !baseSurface.BackgroundGrid.IsVisible;
}
then it works even when the Scene doesn't have the basemap. But maybe there is a more elegant solution?
Thank you for reporting this. This appears to be a bug, and I've logged the issue internally for triage.