When loading a large amount of data, Cesium Billboard displays an exception in version 1.138

When loading a large number of Billboard data (12,393 entries), loading issues occur from a specific perspective

Hi @WwhCesium, can you clarify what the exception is? Is there a warning or error in the console log? Or are you saying the display doesn’t look correct?

12,393 is a lot of billboards! Have you considered clustering them when zoomed out? See the Clustering Sandcastle for an example.

The console did not report any errors. The issue is that when loading a large number of Billboard , the rendering of Billboard is incomplete. Using aggregation can indeed solve the problem, but functional requirements prohibit the use of aggregation. This issue was not present in previous versions (1.132), and only appeared after updating to version 1.138.

Hi @WwhCesium,

I think this is less of a loading issue and more of a rendering issue. That is, I don’t think it has to do with how many billboards you’re loading, but more to do with where they’re positioned (and where the camera is positioned / looking).

We’ve made several updates to billboard rendering recently, and it’s clear that more work is needed. There are some more updates coming in 1.139 that may help, but I’m curious if adjusting the any of following settings on your Billboard(s) would help:

  • eyeOffset - try offsetting the billboards towards the camera a bit so they don’t clip into the ground.
  • disableDepthTestDistance - this is somewhat of a bandaid (not solving the root cause but helping the symptoms). First just try setting this to Number.POSITIVE_INFINITY - if all your billboards are visible as before, that proves the issue is the billboards clipping the terrain.
  • position - if your billboards aren’t clamped to the ground, you can try positioning them above the ground slightly (z > 0) to prevent clipping issues.

There are a few more settings coming along in 1.139 that may help as well, but this is a good starting place.

Happy to help more if you need it to get this resolved.

Best,
Matt

1 Like