cesium icon indicating copy to clipboard operation
cesium copied to clipboard

clamp_to_ground doesn't work, point can't clamp to 3dtile

Open YHLpuyu opened this issue 1 year ago • 1 comments

What happened?

I add a entity with point, and set heightReference to CLAMP_TO_GROUND, in scene i add both terrain and 3dtile, but the entity is just clamp to terrain not 3dtile. the sandbox clamp to ground QQ截图20240524102135

Reproduction steps

  1. add terrain
  2. add 3dtile
  3. add entity with points
  4. set heightReference of point to CLAMP_TO_GROUND

Sandcastle example

https://sandcastle.cesium.com/index.html#c=zVVdbxo5FP0rFurDsKKGQAgkC9FSIJvREojCNFElJGo8F8aqxx7ZHkha8d/X85XMpHS1j+UF+95zrs89/hgqhTZoz+AACg2RgAMag2ZxiB/TmLOq0XQ+lsIQJkCtag30YyUQMqCUjVwVBC+b462S4ZNU3M8DTr2xEsf6nyuRLYM1BQF4x+UGsA+RCTzQZrSzUG1yjpViVAyW02yeYOlAHoZbwnWCMOolE0TTXgzjoMHYCuRAmCnUZX+diZelU5WuFCNtJ67vnLf6FxeJRoQq60WKhcywPWhMfN/Ji1eA36UMPVlOHRElhgbIsc1IVX9TJzlgLnfO12mSQFwSn4ldIfkKffiRMo5fsyorYT0jCgVE+Pz9/iypAhDLiFCY7kGY2wzkVORTYgvoTG5eBScNiyg2I2qYFM42FukAOaHcQ2gr5YILQw/RsGoJo9/upWYpu+DgKI9kaxVcSpSRw2ILkslOkShgNPU/CdgUEc4hKvMKm1K2HYkdM7EPf5z1W807YgJ87/4HnJhfoI+NX3nnvUSAZ9Mbbz2eueN/EvhKZB3wZ219zw2wUNtkfhZyk5KfICFcoVXNgu31eIsXprzekdeOO6kBE9hZIdr52Ovi7mWv3e61zvvt9lm300DnLdzq9C/6nd5l76LVuezWK4WZsOelJMHG2DPwJftulXQb5QSVXKo3CckMP0wnFYyMDbe3e3wC+nTretNT4Cfmm+AKtSu5ANguMA+wBQWCwmut22ocj2eju/u1t1j//bD4PK+K8ZkmGw6T4m2YMG1IWmwehxu7D/eLpeu5j9O1O79x5673pUQ/lsacbIC/s8nAszm1VwhtpUgzZ+eRQaEUUicH5B1Imxf+1tUsWWCZhPCNO5utR/PJevHZm7nz/+/YHpRhlPCFYrvSc/pYCeNPC89b3DV+2vDFdps+HaWX4fWQtZ1WA328rP9mG1QM7Teh1qgNUkevi+BfLIykMihW3MG4aSCM7I0G3dzE9Jt9t6nWxd0fNMvUgc/2iPnDEx8sRDnR2ma2MU9vyKp2PWha/E/U/EVe2D3h5CWBBWfXsyyIMR407fQ000jJN0S9q/wv

Environment

Browser: CesiumJS Version: Operating System:

YHLpuyu avatar May 24 '24 02:05 YHLpuyu

Browser: Microsoft Edge 125.0.2535.51 x64 CesiumJS Version: 117 Operation System: win10 home 22H2

YHLpuyu avatar May 24 '24 02:05 YHLpuyu

Hi @YHLpuyu, clamping is not enabled on all 3D Tiles by default for performance reasons. You'll need to provide the option enableCollision: true.

See this updated example.

ggetz avatar May 31 '24 13:05 ggetz