Hi,
In my project, I have a point cloud and load in position markers (positions where a scan for the point cloud was taken). The markers are gltf models i load using Model.fromGltfAsync. Depending on the project, we usually have between 20 and 1000 of those markers.
I have a functionality to apply a clipping box to the tileset (the point cloud in this case). I also applied this clipping box to the scan markers when calling Model.fromGltfAsync. The same .glb file is used for all of them, but each marker calls Model.fromGltfAsync itself.
This does not work properly. I assume that Cesium instances the models under the hood, because this is the behavior I see: there is one ‘original’ marker. If it falls into the clipping box, all markers are shown. If half of it is being clipped away, half of every single marker is clipped away, regardless of whether the individual markers are inside or outside the clipping box. If the ‘original’ marker is outside the box, all markers clipped away.
My question is, is there a way to apply a clipping plane collection that works on a per instance basis?
Best regards,
Daniel