Lines disappears on zooming in

Here is the viewer change

var viewer = new Cesium.Viewer(“cesiumContainer”, {

shouldAnimate: true,

terrainProvider : Cesium.createWorldTerrain()

});

Zoom all the way in and out …

Hi Sam,

@micelic

Thank you for sharing your sandcastle demo with the community. It looks like sections of the KML are being hidden as I zoom towards the terrain.

image

This error might be related to multi-frustum artifacts. Thus, it may be fixed by enabling log depth. Please try setting

scene.logarithmicDepthBuffer = true;
scene.camera.frustum.near = 0.1;
scene.camera.frustum.far = 10000000000.0;

-Sam

Hi Sam.

I see the same issue. This is what I did on your sandcastle.

var viewer = new Cesium.Viewer(“cesiumContainer”,{terrainProvider : Cesium.createWorldTerrain()});
viewer.scene.logarithmicDepthBuffer = true;
viewer.scene.camera.frustum.near = 0.1;
viewer.scene.camera.frustum.far = 10000000000.0;

Let me know if this is what you were asking.

Thanks,

Carlo

Hi Sam

Here is another sandcastle example

@micelic

Are you still seeing the same issue even when you update your project to include the following code?

scene.logarithmicDepthBuffer = true;
scene.camera.frustum.near = 0.1;
scene.camera.frustum.far = 10000000000.0;

-Sam