Billboard occluded by the terrain or water mask

I’m creating billboards in the Cesium Viewer with a TerrainProvider, and I’m seeing the bottom half of the billboard be occluded at some camera angles and zoom values. I’ve set the heightReference to several different values testing this issue but nothing seems to work(CLAMP_TO_GROUND, CLAMP _TO_TERRAIN, …). I also tried to set a negative z value in the eyeOffset which has worked except for some zoom values(OUT). I’ve never had the problem in the past. The heightReference property has always worked as I would have expected.
Cesium 1.123

image
Any suggestions on what to do would be greatly appreciated,
Scott

Have you tried setting depthPlaneEllipsoidOffset in the Viewer to a negative value?

Have you tried setting showSkirts to false?

Can you reproduce your problem in a Cesium Sandcastle? https://sandcastle.cesium.com/
This would it make easier for us to see what is going wrong. Else, we can only guess.

I did try setting the depthPlaneEllipsoidOffset and it might of helped a little. What values would you suggest? I tried -1 to -16, and I thought I saw a small improvement in the smaller numbers. The code loading Cesium is in our core and at times it’s hard to get the browser to load my changes.

In my project, we use depthPlaneEllipsoidOffset: -1000.0 because we show lots of stuff under the surface. So if such a high number doesn’t solve your case, you need something different.

I don’t know what you mean with your changes loaded in the browser? Have you tried disabling the cache via developer tools in your browser?
image from chrome:
grafik

Again, if you could reproduce your problem in a Cesium Sandcastle (with fake data, but which represents your case), the community could help you more than just guessing.

1 Like