Points are being cut off by tileset

Hi @mechobba, welcome to the forums! I’m guessing you’re referring to the points you want to display intersecting with the earth? One option you have to solve this is to set the disableDepthTestDistance property on each point to Number.POSITIVE_INFINITY, which will make the points ignore depth testing and never clip:


// points
viewer.entities.add({
  position: Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
  point: {
    heightReference : Cesium.HeightReference.CLAMP_TO_GROUND,
    color: Cesium.Color.fromCssColorString('rgba(255, 233, 147, 0.6)'),
    pixelSize: 20,
    disableDepthTestDistance: Number.POSITIVE_INFINITY
  },
});
viewer.entities.add({
  position: Cesium.Cartesian3.fromDegrees(-80.5, 35.14),
  point: {
    heightReference : Cesium.HeightReference.CLAMP_TO_GROUND,
    color: Cesium.Color.fromCssColorString('rgba(255, 233, 147, 0.6)'),
    pixelSize: 20,
    disableDepthTestDistance: Number.POSITIVE_INFINITY
  },
});
viewer.entities.add({
  position: Cesium.Cartesian3.fromDegrees(-80.12, 25.46),
  point: {
    heightReference : Cesium.HeightReference.CLAMP_TO_GROUND,
    color: Cesium.Color.fromCssColorString('rgba(255, 233, 147, 0.6)'),
    pixelSize: 20,
    disableDepthTestDistance: Number.POSITIVE_INFINITY
  },
1 Like