My use case is that I want to pick some points and then have objects anchored to those latitude/longitude positions (even if the terrain or 3d tiles under them changes).
Using {enableCollision:true}
lets me do that with picking and clamping the billboards to the ground, but in some case there are performance issues in CesiumJS that make it unusable.
Has anyone ran into this problem? What approach did you take?
Here is what I am going to try do to (I’ll let you know if this works out).
-
Pick the point using
useDepthPicking
to get the visual point the user clicked on. This Sandcastle shows picking Google 3D Tiles. -
Raise an event whenver the loaded assets or terrian change and then re-clamp everything using Scene.clampToHeightMostDetailed. This is probably going to be the most work to thread the event through the application and then update the heights.