I have a 3D Tileset that I lay contour polylines over to indicate height. I would like to attach text labels to the contours on the point cloud displaying each contour’s elevation.
When I set the labels’ heightReference to HeightReference.CLAMP_TO_GROUND, they clamp to the ground/terrain layer.
However, when I set heightReference to HeightReference.CLAMP_TO_3D_TILES, the labels clamp to the basemap beneath the terrain instead of to the tileset.
Here is a screenshot of the problem (terrain has been removed for clarity):
Hi @Scarring8501, welcome to the community!
Can you share a Sandcastle example demonstrating the problem? If you can’t share that particular dataset, perhaps you could replicate the problem with a single label.
I’m wondering if the problem is related to Entity - Clamp to 3D Tiles · Issue #12195 · CesiumGS/cesium · GitHub
Here’s a sandcastle example with a smaller point cloud. I should note that I ran into HeightReference problems clamping labels to terrain. In that case, I had to pass the scene (with the Terrain instance) to the LabelCollection constructor . I’ll look into the github issue.
@jjhembd I was able to attach a label to a point cloud in this sandcastle example. I think my problem may have to do with smoothing/interpolation in the 3D Tileset.