3DTilesRendererJS icon indicating copy to clipboard operation
3DTilesRendererJS copied to clipboard

CameraTransition: Transitioning with a very far away point causes issues on the globe

Open gkjohnson opened this issue 1 year ago • 1 comments

gkjohnson avatar Jul 15 '24 16:07 gkjohnson

This likely due to the perspective camera being positioned under the terrain after the transition resulting in the camera rotation being angled incorrectly.

gkjohnson avatar Jul 17 '24 10:07 gkjohnson

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

gkjohnson avatar Oct 25 '24 09:10 gkjohnson