3DTilesRendererJS
3DTilesRendererJS copied to clipboard
CameraTransition: Transitioning with a very far away point causes issues on the globe
This likely due to the perspective camera being positioned under the terrain after the transition resulting in the camera rotation being angled incorrectly.
To handle this the manager should be able to transition between cameras at different positions with different near / far plane. However this makes it difficult to keep a "fixed" point during transitions meaning that the fixed point will "swim" but only in the case that the camera must be shifted after syncing positions.
Update cycle from #821
- Sync camera positions and views
- Update camera positions, views, etc from controls
- Perform transition
- Recompute "fixedHeight" for every transition step
- Transition orientation (though ideally it shouldn't be different)
- Transition the position of each camera, which is ultimately used to model the "ray" that each camera is looking along