Closed OmarShehata closed 1 year ago
@OmarShehata for this case, the user will probably want to implement their own camera controls. See this tutorial: https://cesiumjs.org/tutorials/Camera-Tutorial/
I'm running into this again with an NYC tileset. Testing without the globe on makes orbit controls and panning really hard.
I keep running into this. Right now it's a tileset that happens to be underground, and is moved with a modelMatrix above ground. For debugging purposes, I need its modelMatrix to be identity, so I turn off the globe to see it, but then suddenly it's very difficult to maneuver the camera.
I also run into it whenever I want to show a high resolution tileset, where the terrain/globe doesn't matter, so I turn the globe off to speed things up/reduce network requests, but then again, I suddenly can't can't click and drag around as easily anymore.
The context for this is trying to view a model with the globe turned off. See this thread for more background.
The problem starts with the fact that this particular model is not on the surface of the earth. But this is actually not a problem when the globe is turned on.
To see what I mean, go to this Sandcastle. Use the slider to move the height of the tileset way up. You can still move the camera just fine if you click onto the tiles and pan/rotate. If you miss and click on the background, it moves too fast and you'll probably lose the model.
But if you turn the globe off, you'll see that even if you do click on the tile itself when panning/rotating, it behaves as if you're clicking on the background.
For people using Cesium to view 3D Tiles without the globe, I think this can be really annoying. I'm not sure if there's an easy fix that the user could do (couldn't figure out an easy way to push the model to the ground, or if this camera behavior is intended).