Problem with corridor rendering


i am building an application that allows users to draw shapes on a 2D map and visualize that objets in a 3D view map using Cesium js. I’m facing an issue with rendering corridor. At certain zoom levels, a part or all corridor disapear.

Here is how I build the primitive and add it to the scene

var CorridorGeometryInstance = new Cesium.GeometryInstance({
geometry : CorridorGeometry,
id : ‘CorridorCesium’+ (new Date()).getTime(),
attributes : {
color : new Cesium.ColorGeometryInstanceAttribute.fromColor(LineColorCesium)

        var GroundPrimitive = new Cesium.GroundPrimitive({
             geometryInstances : CorridorGeometryInstance,
            releaseGeometryInstances : false



This looks related to this problem:

You can see a solution I proposed here:

You can use that as a workaround, but we need to figure out a better solution to fix the problem in the main code base.



Hello Hannah,

I tried the workaround you proposed, it didn’t work with value 15. I tried other values and I finally got a good render with 2000.

Thank for your help.


A fix for this was just merged into master and will be included in the Cesium 1.30 release on February 1st. Please let me know if you still see a problem after then!