Glitches in SkyAtmosphere

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

When we adjust near and far ranges manually to for example near = 0.15, we start experiencing rendering glitches in SkyAtmosphere. With default near and far setting this does not occur.

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

See attached image how the bug looks like. There are these extra black “cubes” on the skyatmosphere…

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

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

1.41, windows or mac, chrome browser

Here is a sandcastle to reproduce the problem:

You can see the tiny black artifacts on sky effect.

Code to reproduce is:

var viewer = new Cesium.Viewer(‘cesiumContainer’);

viewer.camera.frustum.near = 0.15;

viewer.camera.frustum.far = 50000000;

viewer.camera.rotateRight(0.01);

viewer.camera.rotateDown(0.001);

Thanks for the report! I’ve gone ahead an opened a GitHub issue.

If you have time to contribute a fix or just track down the source of the error, it would help speed things up and would be greatly appreciated!

Thanks,

Gabby