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