-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
What happened?
Entity - Clamp to 3D Tiles w/ Google P3DT
When you are trying to clamp to 3D tiles, Google's P3DT will be ignored. If CLAMP_TO_GROUND
is selected the entity will clamp to the Cesium Globe if present but this is probably an async thing.
It is a behavior I have only been able to recreate with Google P3DT. This sandcastle also supports this, as CLAMP_TO_GROUND
and CLAMP_TO_3D_TILE
work as expected there. If you look at this example (make sure line 10 is commented out), you will see that the cube is "floating" relative to P3DT if either CLAMP_TO_GROUND
or CLAMP_TO_3D_TILE
are being used. If you toggle the globe off, the cube will snap to the 3D Tiles "ground" after a few seconds if CLAMP_TO_GROUND
is being used. If CLAMP_TO_3D_TILE
is being used, it will stay "floating" regardless of if the globe is toggled on or off.
Reproduction steps
- Import Google P3DT
- Create entity and clamp to 3D Tiles
- entity will be at the "height" of the Cesium globe and not clamped to P3DT
Sandcastle example
Environment
Browser: Chrome Version 128.0.6613.138
CesiumJS Version: 1.121
Operating System: Windows