Skip to content

Camera

Camera controls can be used to move the camera around the scene.

Camera Controls

Movement

When useGestureControls is enabled, the camera can be moved by dragging the mouse.

Movement

Perspective Camera vs Orthographic Camera

By default, the camera is a perspective camera. To change the camera to an orthographic camera, click the Orthographic button.

Orthographic

Rotation

Rotation

When useGestureControls is enabled, changing the rotation property will not change the rotation of the camera.

Zoom

To zoom in or out, use the zoom property. When useGestureControls is enabled, by pinching the mouse, the camera position will be changed, giving the effect of zooming in or out.

Zoom

FOV

By changing the field of view, the camera can be changed to a different perspective.

FOV

Orbit Controls

The orbit controls can be used to orbit around the model.

When autoRotate is enabled, the camera will automatically rotate around the model. autoRotateSpeed can be used to change the speed of the rotation.

  • enablePan can be used to enable or disable panning.
  • enableZoom can be used to enable or disable zooming.
  • enableRotate can be used to enable or disable rotation.

Reset

By pressing the focus button, the camera will focus the model's position.