Three.js Camera and Controls Examples

The camera decides how people experience a 3D scene. These demos cover the main ways to move one in three.js: OrbitControls for inspecting an object, first-person WASD and mouse-look controls for exploring a space, and cinematic tricks like the dolly zoom that changes field of view while the camera moves.

There are also stereoscopic examples that render the scene twice from offset eyes, the basis of anaglyph 3D and VR headsets. Each page explains the maths behind projection, field of view and camera movement, with code you can drop into your own project.

Most viewed in camera controls

All camera controls demos

5 Demos