CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.43k stars 3.39k forks source link

Camera stops working close to ground #11985

Open mramato opened 2 months ago

mramato commented 2 months ago
  1. Go to http://localhost:8080/Apps/Sandcastle/index.html?src=Google%20Photorealistic%203D%20Tiles.html
  2. Navigate to the soccer field right near the starting camera location: Screenshot_20240514_183726
  3. Zoom in close.
  4. You can no longer pan, the camera is mostly stuck. Here is my view when this happens: Screenshot_20240514_183826

This happens in a bunch of 3D Tiles tilesets, Google was just the easiest to explain.

I was hoping the recent picking fixed would have addressed this, but it's still an issue in main.

cddhq commented 2 months ago

I also encountered this problem where the custom material froze in a low perspective and stopped flowing, but the console did not report any error messages

1715917856940
gammaxy1 commented 1 month ago

I found the code that causes the behavior, but it is protecting against issues with the camera panning below the ground so simply removing it is worse behavior. https://github.com/CesiumGS/cesium/blame/5fda45a5861ca67291ff55655c9c395b8a06d20d/Source/Scene/ScreenSpaceCameraController.js#L1875

ggetz commented 1 month ago

Thanks for the clue @gammaxy1!