Problem with corridor rendering

Hi,

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
        });

scene.groundPrimitives.add(GroundPrimitive);

Hello,

This looks related to this problem: https://github.com/AnalyticalGraphicsInc/cesium/issues/4326

You can see a solution I proposed here: https://github.com/AnalyticalGraphicsInc/cesium/pull/4485/files

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.

Best,

Hannah

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.

Hello,

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!

Thanks,

Hannah