1. A concise explanation of the problem you’re experiencing.
Billboards render incorrectly when entities are added and deleted and terrain provider is changed. The underlying data is correct, but billboards are drawn on-top of other billboards.
In this example I gave the billboards a unique offset so you can see that they are getting drawn in the wrong location. If the offset if set to 0, then it looks like the billboards disappear, but they are really just rendered on top of another billboard.
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
-
Load sandcastle. (see below)
-
Select “Delete Billboards” in the dropdown
-
Select “Add multiple Billboards”
-
Select “Change Terrain Provider”
-
Verify that several billboards are rendered out of place.
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
We need to be able to create billboard entities, delete billboard entities, and change terrain providers, without having rendering issues. We see this issue most often when we refresh the browser.
4. The Cesium version you’re using, your operating system and browser.
Sandcastle with Cesium 1.58. Issue has existed at least since 1.52. Chrome Version 75.0.3770.100 (Official Build) (64-bit). Windows 10.