The blog post doesn’t do anything special to make it work, but notice that it mentions this is activated only when the camera is close enough to the billboard.
For your case, it would help to move the vertical origin to the bottom:
verticalOrigin: Cesium.VerticalOrigin.BOTTOM
``
Here’s a modified Sandcastle that does this. Let me know if this works better for you.
Thanks for the suggestion.
However using VerticalOrigin Bottom won’t work in my situation as I have other elements interacting with the billboard.
For example:
I have a polyline ending at the billboard point. So you can imagine a polyline ending point with a circle billboard center on the end.
However, if I set the billboard to be vert. org. : bottom , then it will look strange not the desired effect. See screenshot.
In my other example, I have billboards that have a height of 0.
While its true when you said the clipping feature is only activated upon zooming in enough, however it doesn’t seem to be the case for certain conditions.
Perhaps when there is a height of zero. See my other screenshot.
I imagine there is no way around this other than to do multiple extra offsets.
did you try viewer.scene.globe.depthTestAgainstTerrain = true;
see Cesium Sandcastle, the bottom one in the drop down menu.
or set the height of your billboard as (long, lat, altitude) and make the altitude adjustment until its above the terrain. Maybe either of those will help.