-
-
Notifications
You must be signed in to change notification settings - Fork 136
Description
Hi there,
I hope you are all well.
I am working on a project that requires many 100s to a couple 1000 points to be drawn on the terrain. I can display that many points using Point Primitives but they are often drawn below the terrain because my dataset doesn't have any altitude information. I was setting the depth against terrain test distance to positive infinity as an interim solution so I can at least see the points but now I need to set the height information based on the terrain.
I've tried using Point Primitives while updating the dataset in my react app using sampleTerrain with the TerrainProvider, globe.getHeight, scene.sampleHeight and I tried doing my own Ray cast to find a point of intersection but those approaches were all too slow.
Then I tried ground primitives with circle geometry but again it was too slow (but better).
I tried Cesium Entities using clamp to ground height referencing but it still couldn't keep up (again better) and produced some flickering when I tried to fade out the points.
Has anyone found a solution for displaying many many point primitives at the terrain height?
All those options produced all the correct height for me but just were not fast enough for my use case and ate up too much CPU time.