Issues with Polyline & Terrain

1. A concise explanation of the problem you're experiencing.
I have a sloped polyline that correctly draws and displays with depthTestAgainstTerrain = false. When depthTestAgainstTerrain is enabled, rotating the camera to different angles causes portions or sometimes all of the polyline to disappear, even though it should not be obstructed by the terrain as it is several hundred feet above it.

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
[Sandcastle Example](

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I need to display a rectangular glide slope that starts several hundred feet in the air and ends at the terrain. I also need to enable depthTestAgainstTerrain as I have models that need to be displayed.

4. The Cesium version you're using, your operating system and browser.
Chrome 68 on Windows 10

I'm aware of [Issue 2172](, but can't tell whether that will resolve this or not as most of this polyline is not tied to the terrain at all. Any help is greatly appreciated.



Thanks for the code example!

I think this is related to the logarithmic depth buffer that we introduced a few releases back.
We’re tracking log-depth and geometry issues here, but in the meantime it looks like setting viewer.scene.logarithmicDepthBuffer = false helps.
Let me know if you find any views that are still broken though.


Thank you, that definitely works better! I see a few labels sometimes getting partially obscured when rotating, but that I can live with for now. I’ll keep an eye on that issue.

Thanks for the quick response.