Issues with Polyline & Terrain

Skip to first unread message

Aug 8, 2018, 8:45:25 PM8/8/18
to cesium-dev
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.


Kangning Li

Aug 9, 2018, 11:35:36 AM8/9/18
to cesium-dev

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.


Sherwin Faria

Aug 9, 2018, 12:10:54 PM8/9/18
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.

You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit
To unsubscribe from this group and all its topics, send an email to
For more options, visit

Omar Shehata

Apr 2, 2020, 12:26:49 PM4/2/20
to cesium-dev
The issue ( has now been fixed! It'll be available in the next CesiumJS release, 1.69, which will be available in May.
To unsubscribe from this group and all its topics, send an email to
Reply all
Reply to author
0 new messages