Command Palette

Search for a command to run...

Hectal
Back to the lesson: Topic 7.1 — Perspective and Orthographic Cameras
3D Web · Example 1 of 2

Field of view as zoom

The picture uses FOV; the printed table always compares 20, 50 and 90 degrees with a picture twice as wide as tall.

A camera sees a shape in space, its frustum. A perspective camera sees a pyramid, so far things look small; an orthographic camera sees a box, so size never changes with distance. Field of view acts as the zoom, and the aspect must follow the window.

Change the code and press Run (Ctrl+Enter). Predict what will happen first, then break it on purpose and read what changes. Your edits are saved and match the lesson page.

Ready for more? This phase has 3 hands-on exercises with automatic checks.

Practice questions

Write the code in the editor, run it, then open the model answer to compare.

01

Write visibleHeight(fov, distance) and use it to find the fov that shows exactly 2 m of height at 4 m.

02

A camera is new THREE.PerspectiveCamera(50, 1.5, 0.1, 100). The window becomes 800 × 800. Write the two lines that fix the camera.

Explain it without notes

01

At 4 m, how much height does a camera with fov = 40 see, and what changes if the window gets twice as wide?

02

When would you choose an orthographic camera in the showroom?

Field of view as zoom
Press Run to see the page.
idle

Console

Nothing logged yet.

Expected console output

fov 20: sees 1.76 m tall and 3.53 m wide at 5 m, 1 of 5 post centres
fov 50: sees 4.66 m tall and 9.33 m wide at 5 m, 5 of 5 post centres
fov 90: sees 10.00 m tall and 20.00 m wide at 5 m, 5 of 5 post centres