You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Desired functionality: Allow users to accurately toggle billboards on and off their 3D Tileset. In this application, terrain data would likely be turned off to improve performance.
Current functionality:
When the viewer is loaded for the first time, the billboards are correctly placed on the 3d tileset (with HeightReference.NONE and getting the position using viewer.scene.clampToHeight).
After clicking the toggle button once, the billboards are properly placed on the ground. This is because HeightReference.CLAMP_TO_GROUND is used and we are lading Cesium World Terrain.
However, when clicking the toggle button a third time (with the goal of showing the 3D Tileset), we see that the billboard are "stuck" on the ground yet the labels are positioned above the 3D Tileset.
A .gif showcases this behavior
Upon further testing, I noticed that this error also occurs in the following circumstances:
This error seems to occur for any number of billboard values.
If toggled is initialized to true (`let toggled = true;) we see even more erratic behavior when toggling the tileset on and off. It seems like the billboards disappear and then re-appear.
Is there any news on this? I am facing this issue currently. My solution at the moment is to completely rebuild the viewer whenever the tiles are toggled which is not a particularly flashy solution.
@AnonymousSausage77#11604 will be adding height references that allow billboards and entities to clamp to 3D Tiles without using viewer.scene.clampToHeight, as well as clamp to terrain. The ability to toggle between the two is accounted for there.
Desired functionality: Allow users to accurately toggle billboards on and off their 3D Tileset. In this application, terrain data would likely be turned off to improve performance.
Current functionality:
When the viewer is loaded for the first time, the billboards are correctly placed on the 3d tileset (with
HeightReference.NONE
and getting the position usingviewer.scene.clampToHeight)
.After clicking the toggle button once, the billboards are properly placed on the ground. This is because
HeightReference.CLAMP_TO_GROUND
is used and we are lading Cesium World Terrain.However, when clicking the toggle button a third time (with the goal of showing the 3D Tileset), we see that the billboard are "stuck" on the ground yet the labels are positioned above the 3D Tileset.
A
.gif
showcases this behaviorUpon further testing, I noticed that this error also occurs in the following circumstances:
This error seems to occur for any number of billboard values.
If toggled is initialized to true (`let toggled = true;) we see even more erratic behavior when toggling the tileset on and off. It seems like the billboards disappear and then re-appear.
This issue stems from a community forum post. Here is a sandcastle example that showcases the error.
Browser: Chrome
Operating System: Windows 10
The text was updated successfully, but these errors were encountered: