Remove blue atmosphere / surface when tilting view / camera

Hi,

I'm trying to remove the blue atmosphere / surface that becomes visible when you tilt the camera and looking at the surface from the side?

The following settings does not seem to do the trick:

var viewer = new Cesium.Viewer("cesiumContainer", {
    timeline: false,
    animation: false,
    baseLayerPicker: false,
    fullscreenButton: false,
    geocoder: true,
    selectionIndicator: false,
    infoBox: false,
    sceneModePicker: false,
    navigationHelpButton: true,
    navigationInstructionsInitiallyVisible: false
});

viewer.scene.skyBox.show = false;
viewer.scene.sun.show = false;
viewer.scene.moon.show = false;
viewer.scene.skyAtmosphere.show = false;

viewer.scene.backgroundColor = Cesium.Color.BLACK;
viewer.scene.globe.baseColor = Cesium.Color.BLACK;
viewer.scene.fxaa = false;

viewer.scene.globe.depthTestAgainstTerrain = false;
viewer.scene.globe.enableLighting = false;
viewer.scene.globe.showWaterEffect = false;
viewer.scene.imageryLayers.removeAll();

This can illustrated in sandcastle here:

And select "Fly to Rectangle". Once loaded, CTRL + Left Mouse to to tilt the camera.. Not sure what effect it is, since skyAtmosphere is disabled.

Is there perhaps a property I've missed somewhere?

Any pointers or advice would be greatly appreciated.

Cheers,
Andries

Perhaps the attached pic illustrates it better:

Hello,

I think you’re looking for this option:

var viewer = new Cesium.Viewer(‘cesiumContainer’, {
skyAtmosphere: false
});

``

You can see all of the available options in the viewer documentation: http://cesiumjs.org/Cesium/Build/Documentation/Viewer.html

Best,

Hannah

Hi Hannah, thanks for the response. Figured out it was actually the fog (https://cesiumjs.org/Cesium/Build/Documentation/Fog.html) on the scene I had to disable:

viewer.scene.fog.enabled = false;

Works like magic! Would be great to have a color property on the fog class as mentioned here:

That’s the only reason I’m disabling it for now…

Anyway, much appreciated!

Ah okay. Thanks for following up! I added a link to your post to that issue so we can track how many people are asking for that feature.

Best,

Hannah

Quick update here: fog and ground atmosphere color can now be controlled with

viewer.scene.globe.atmosphereHueShift
viewer.scene.globe.atmosphereSaturationShift
viewer.scene.globe.atmosphereBrightnessShift

``

This functionality will be included in Cesium 1.51 on November 1st.