Skip to content

Camera and FOV

Change the field of view while the model is running, use the imperative ref to fit the model, and capture camera position and target after OrbitControls interaction.

Why position and target are both required

The camera position says where the camera is. The target says what the orbit controls and camera are looking at. Save both values to reproduce the same shot later.

Released under the MIT License.