Globe lighting consistency issues

1. A concise explanation of the problem you’re experiencing.

When zoomed out enough the solar terminator (line between day/night) is clear and it’s easy to see which side of the earth is sunlit vs. dark. When zoomed in, the terminator disappears. The entire globe is “light”. I have enableLighting set to true. Tried messing around with showGroundAtmosphere, nightFadeInDistance, nightFadeOutDistance, lightingFadeInDistance, lightingFadeOutDistance, but I’m not sure how to get a consistent appearance of the terminator and day/night representation on the globe.

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

var scene2 = view3D_2v.scene;

scene2.globe.enableLighting = true;

scene2.globe.showGroundAtmosphere = true;

scene2.globe.nightFadeOutDistance = 100000;

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I need to show day/night on the globe regardless of how zoomed in i am. This is for a contract deliverable for my job so it’s critical I figure this out soon.

4. The Cesium version you’re using, your operating system and browser.

1.61, Windows 10, Firefox.

I think you need to decrease lighting fade in & out distance, as well as night fade out distance, and then make sure night fade in distance is a little higher than those. You can try that out in the example below by moving all the sliders to the minimum except for the last one:

https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Ground%20Atmosphere.html

Let me know if that helps. What kind of application or industry is this for?

Thank you for responding! I’m sorry I haven’t gotten back to this sooner, but I plan on trying this out and will let you know how it goes.

This is for aerospace analytics in the defense industry. Specifically, orbit visualization.