AnsweredAssumed Answered

Changing scene background

Question asked by kirsten.strandjord_ucboulder on Feb 4, 2017
Latest reply on Feb 9, 2017 by LSmallwood-esristaff

I create a topographic scene in my main window constructor like so:

 

ui->setupUi(this);

// Create a scene using the topographic BaseMap

mn::Scene* scene = new mn::Scene(mn::Basemap::topographic(this), this);

// create a new elevation source from Terrain3D rest service

mn::ArcGISTiledElevationSource* elevationSource = new mn::ArcGISTiledElevationSource(

QUrl("http://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer"), this);

// add the elevation source to the scene to display elevation

scene->baseSurface()->elevationSources()->append(elevationSource);

// Create a scene view, and pass in the scene

m_sceneView = new mn::SceneGraphicsView(scene, this);

ui->map->addWidget(m_sceneView);

 

The scene currently has a starry night background. I would like the background to just be a solid color. This seems like a simple change, but I am having the hardest time finding the code for it. Any ideas? Thanks!

Outcomes