Open misterbighead opened 6 years ago
viewFrom
only affects the initial camera view when the entity becomes tracked in the viewer. If it was applied every frame, it would lock out interactive mouse control. The property does depend on time, so the value will be calculated using the current simulation time, which means you could have different initial offsets at different times, though this is of limited usefulness, admittedly.
More complete programmatic camera control is something we'd like to add in the future.
What is the most elegant way to animate the camera to move smoothly?
applied every frame, it would lock out interactive mouse control
It seems intuitive from the docs and from how the position interpolation works that this would be the default behavior and I think this would satisfy our "pan camera smoothly around tracked entity" use case.
only affects the initial camera view when the entity becomes tracked
Maybe this should be an opt-in/out behavior provided by some other viewFrom
parameter
viewFrom
only affects the initial camera view when the entity becomes tracked in the viewer. If it was applied every frame, it would lock out interactive mouse control. The property does depend on time, so the value will be calculated using the current simulation time, which means you could have different initial offsets at different times, though this is of limited usefulness, admittedly.More complete programmatic camera control is something we'd like to add in the future.
I think being able to tie camera view to an InterpolatableProperty would be very useful
I would like to move my camera smoothly around my aircraft. With viewer.trackedEntity = airplane, I have tried including multiple camera positions in czml:
But the camera stays locked in one position. Shouldn't this work? (https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/ViewFrom says "Interpolatable: yes")
Or is there a way to animate viewer.camera.position dynamically?