Skip to content

3D camera field of view across eight engines

Last checked ·

Each engine renders the same camera pose near Wildspitz. We chose 65° diagonal as a common comparison lens close to several native landscape defaults.

What the comparison shows

A fixed diagonal FOV keeps centered landmarks the same size when the same phone rotates. The exact-rotation calculation uses an 844 × 394 viewport and its 394 × 844 transpose. A fixed vertical FOV makes the landmarks 2.14× as large. The engine screenshots use 390 × 844 in portrait. Cesium’s longer-axis rule also preserves size on that rotation. Its diagonal FOV grows to 78.46° in a square window.

Measured native defaults · horizontal × vertical FOV
EngineNative ruleLandscape1280 × 720Portrait390 × 844
ArcGIS Maps SDK for JavaScript 55.00° diagonal 48.81° × 28.63° 24.64° × 50.59°
CesiumJS 60.00° longer viewport axisHorizontal in landscape · vertical in portrait 60.00° × 35.98° 29.88° × 60.00°
MapLibre GL JS 36.87° vertical 61.30° × 36.87° 17.51° × 36.87°
Mapbox GL JS 36.87° vertical 61.30° × 36.87° 17.51° × 36.87°
Three.js 50.00° vertical 79.32° × 50.00° 24.32° × 50.00°
deck.gl 75.00° verticalFirstPersonView 107.51° × 75.00° 39.05° × 75.00°
Godot 75.00° vertical 107.51° × 75.00° 39.05° × 75.00°
Google Maps JavaScript 3D 35.00° vertical 58.54° × 35.00° 16.58° × 35.00°

MapLibre and Mapbox match in all four FOV readbacks. The 65° Mapbox portrait uses a capture-only override.

Landscape and portrait captures use the same scale within each pair. Open a capture to see it at full size.

Requested camera pose 8.578901° lon · 47.082215° lat · 1578.2 m eye height · 160.365° heading · 75.577° tilt · 0° roll. CesiumJS returns 360° for the same roll. Mapbox readback puts the eye roughly 0.1 m higher and 0.1 m away horizontally. CesiumJS readback · Mapbox readback

Calculated viewport cases · Capture method and lens conversion · Shared view links

ArcGIS Maps SDK for JavaScript

Native default 55.00° diagonal

Landscape 1280 × 720
View capture
55.00° diagonal
48.81° H × 28.63° V
Camera readback
Portrait 390 × 844
View capture
55.00° diagonal
24.64° H × 50.59° V
Camera readback

JavaScript

// cameraOptions has position, heading and tilt.
const camera = new Camera(cameraOptions);
const view = new SceneView({ ...sceneOptions, camera });

65° diagonal target SDK input 65.00° diagonal FOV

Landscape 1280 × 720
View capture
65.00° diagonal
58.08° H × 34.69° V
Camera readback
Portrait 390 × 844
View capture
65.00° diagonal
29.92° H × 60.08° V
Camera readback

JavaScript

const camera = new Camera({ ...cameraOptions, fov: 65 });
const view = new SceneView({ ...sceneOptions, camera });

SDK reference

CesiumJS · Mesh terrain

Native default 60.00° horizontal in landscape 60.00° vertical in portrait

Landscape 1280 × 720
View capture
67.04° diagonal
60.00° H × 35.98° V
Camera readback
Portrait 390 × 844
View capture
64.91° diagonal
29.88° H × 60.00° V
Camera readback

JavaScript

viewer.resize();
viewer.camera.setView(eyeView);

65° diagonal target SDK input 58.08° horizontal FOV in landscape 60.08° vertical FOV in portrait

Landscape 1280 × 720
View capture
65.00° diagonal
58.08° H × 34.69° V
Camera readback
Portrait 390 × 844
View capture
65.00° diagonal
29.92° H × 60.08° V
Camera readback

JavaScript

viewer.resize();
const frustum = viewer.camera.frustum;
frustum.fov = toRadians(width >= height
  ? horizontalDegrees : verticalDegrees);
viewer.camera.setView(eyeView);

SDK reference

MapLibre GL JS

Native default 36.87° vertical

Landscape 1280 × 720
View capture
68.42° diagonal
61.30° H × 36.87° V
Camera readback
Portrait 390 × 844
View capture
40.33° diagonal
17.51° H × 36.87° V
Camera readback

JavaScript

// Set the eye without changing the lens.
map.jumpTo(map.calculateCameraOptionsFromCameraLngLatAltRotation(
  [lon, lat], heightMetres, heading, tilt, roll));

65° diagonal target SDK input 34.69° vertical FOV in landscape 60.08° vertical FOV in portrait

Landscape 1280 × 720
View capture
65.00° diagonal
58.08° H × 34.69° V
Camera readback
Portrait 390 × 844
View capture
65.00° diagonal
29.92° H × 60.08° V
Camera readback

JavaScript

// Set the lens first because it affects the eye calculation.
map.setVerticalFieldOfView(verticalDegrees);
map.jumpTo(map.calculateCameraOptionsFromCameraLngLatAltRotation(
  [lon, lat], heightMetres, heading, tilt, roll));

SDK reference

Mapbox GL JS

Native default 36.87° vertical

Landscape 1280 × 720
View capture
68.42° diagonal
61.30° H × 36.87° V
Camera readback
Portrait 390 × 844
View capture
40.33° diagonal
17.51° H × 36.87° V
Camera readback

JavaScript

function applyEye() {
  const camera = map.getFreeCameraOptions();
  camera.position = mapboxgl.MercatorCoordinate.fromLngLat(
    [lon, lat], heightMetres);
  camera.setPitchBearing(tilt, heading);
  map.setFreeCameraOptions(camera);
}
applyEye();

65° diagonal target SDK input 34.69° vertical FOV in landscape 60.08° vertical FOV in portrait

Landscape 1280 × 720
View capture
65.00° diagonal
58.08° H × 34.69° V
Camera readback
Portrait 390 × 844
View capture
65.00° diagonal
29.92° H × 60.08° V
Capture-only override
Camera readback

JavaScript

map.setVerticalFieldOfView(verticalDegrees);
if (map.getVerticalFieldOfView() < verticalDegrees - 0.001) {
  // Capture only. The private transform is pinned to v3.35.2.
  if (mapboxgl.version !== '3.35.2') throw Error('Unsupported SDK version');
  map.transform._fov = toRadians(verticalDegrees);
  map.transform._calcMatrices();
}
applyEye();
const appliedVertical = map.getVerticalFieldOfView();
const appliedSlope = Math.tan(toRadians(appliedVertical) / 2);
const appliedDiagonal = toDegrees(2 * Math.atan(
  appliedSlope * Math.hypot(width, height) / height));

SDK reference

Three.js

Native default 50.00° vertical

Landscape 1280 × 720
View capture
87.13° diagonal
79.32° H × 50.00° V
Camera readback
Portrait 390 × 844
View capture
54.38° diagonal
24.32° H × 50.00° V
Camera readback

JavaScript

const camera = new THREE.PerspectiveCamera();
camera.aspect = width / height;
camera.updateProjectionMatrix();

65° diagonal target SDK input 34.69° vertical FOV in landscape 60.08° vertical FOV in portrait

Landscape 1280 × 720
View capture
65.00° diagonal
58.08° H × 34.69° V
Camera readback
Portrait 390 × 844
View capture
65.00° diagonal
29.92° H × 60.08° V
Camera readback

JavaScript

const camera = new THREE.PerspectiveCamera();
camera.fov = verticalDegrees;
camera.aspect = width / height;
camera.updateProjectionMatrix();

SDK reference

deck.gl

Native default 75.00° vertical

Landscape 1280 × 720
View capture
114.85° diagonal
107.51° H × 75.00° V
Camera readback
Portrait 390 × 844
View capture
80.41° diagonal
39.05° H × 75.00° V
Camera readback

JavaScript

const viewState = {
  longitude: lon, latitude: lat, position: [0, 0, heightMetres],
  bearing: heading, pitch: 90 - tilt,
};
const view = new FirstPersonView({ near: 1, far: 40000 });
new Deck({ views: view, viewState, layers: [terrain] });

65° diagonal target SDK input 34.69° vertical FOV in landscape 60.08° vertical FOV in portrait

Landscape 1280 × 720
View capture
65.00° diagonal
58.08° H × 34.69° V
Camera readback
Portrait 390 × 844
View capture
65.00° diagonal
29.92° H × 60.08° V
Camera readback

JavaScript

const view = new FirstPersonView({
  near: 1, far: 40000,
  fovy: verticalDegrees,
});
new Deck({ views: view, viewState, layers: [terrain] });

SDK reference

Godot

Native default 75.00° vertical

Landscape 1280 × 720
View capture
114.85° diagonal
107.51° H × 75.00° V
Camera readback
Portrait 390 × 844
View capture
80.41° diagonal
39.05° H × 75.00° V
Camera readback

GDScript

var camera := Camera3D.new()
add_child(camera)
camera.make_current()

65° diagonal target SDK input 34.69° vertical FOV in landscape 60.08° vertical FOV in portrait

Landscape 1280 × 720
View capture
65.00° diagonal
58.08° H × 34.69° V
Camera readback
Portrait 390 × 844
View capture
65.00° diagonal
29.92° H × 60.08° V
Camera readback

GDScript

var camera := Camera3D.new()
var aspect := float(width) / float(height)
camera.fov = rad_to_deg(2.0 * atan(
    tan(deg_to_rad(65.0) / 2.0) / sqrt(1.0 + aspect * aspect)))
add_child(camera)
camera.make_current()

SDK reference

Google Maps JavaScript 3D

Native default 35.00° vertical

Landscape 1280 × 720
View capture
65.49° diagonal
58.54° H × 35.00° V
Camera readback
Portrait 390 × 844
View capture
38.31° diagonal
16.58° H × 35.00° V
Camera readback

JavaScript

// mapOptions includes cameraPosition, heading, tilt and roll.
const map = new Map3DElement(mapOptions);

65° diagonal target SDK input 34.69° vertical FOV in landscape 60.08° vertical FOV in portrait

Landscape 1280 × 720
View capture
65.00° diagonal
58.08° H × 34.69° V
Camera readback
Portrait 390 × 844
View capture
65.00° diagonal
29.92° H × 60.08° V
Camera readback

JavaScript

const map = new Map3DElement(mapOptions);
map.fov = verticalDegrees;

SDK reference

Capture method and lens conversion

Each FOV is the full angle between two rays from the eye. The 65° series calculates the axis each engine needs from the usable viewport before applying the pose.

Rays from the eye to side midpoints measure horizontal FOV, to top and bottom midpoints measure vertical FOV, and to opposite corners measure diagonal FOV. The landscape and portrait frames share a 65° diagonal.
At 65° diagonal, landscape measures 58.08° horizontal and 34.69° vertical. Portrait measures 29.92° horizontal and 60.08° vertical. Excalidraw source
const toRadians = degrees => degrees * Math.PI / 180;
const toDegrees = radians => radians * 180 / Math.PI;
const diagonal = Math.hypot(width, height);
const slope = Math.tan(toRadians(65) / 2);
const horizontalDegrees = toDegrees(2 * Math.atan(slope * width / diagonal));
const verticalDegrees = toDegrees(2 * Math.atan(slope * height / diagonal));

Phone rotation and squarish windows

These angles are calculated for a centered perspective camera. On the example phone, the diagonal and the longer side keep their pixel lengths when the dimensions swap. Under the vertical rule, image magnification follows viewport height and grows by 844 ÷ 394 ≈ 2.14 from landscape to portrait.

Calculated horizontal × vertical FOV and diagonal FOV
Viewport36.87° fixed vertical65° fixed diagonal60° longer axis (Cesium)
Phone landscape844 × 39471.06° × 36.87°76.48° diagonal59.99° × 30.16°65.00° diagonal60.00° × 30.17°65.01° diagonal
Phone portrait394 × 84417.69° × 36.87°40.39° diagonal30.16° × 59.99°65.00° diagonal30.17° × 60.00°65.01° diagonal
4:3 window1024 × 76847.92° × 36.87°58.11° diagonal54.01° × 41.84°65.00° diagonal60.00° × 46.83°71.64° diagonal
Square window800 × 80036.87° × 36.87°50.48° diagonal48.50° × 48.50°65.00° diagonal60.00° × 60.00°78.46° diagonal

The phone cases give nearly identical angles under the 65° diagonal and 60° longer-axis rules. At 1024 × 768 the longer-axis rule opens to 71.64° diagonal. At 800 × 800 it opens to 78.46°.

Mapbox’s 60° vertical limit

The limit affects the 65° portrait in this comparison. The public setter fits 65° diagonal when width ÷ height is at least 0.46645. At 844 pixels tall, 394 pixels is the first whole-pixel width that fits. At 390 × 844 the public setter applies 60° vertical and 64.91° diagonal. At the same pose that makes centered landmarks about 0.17% larger. A 64° target would need 59.74° vertical at 9:21. Mapbox camera limits

For the 65° portrait capture, the harness uses the Mapbox GL JS 3.35.2 private camera transform and rebuilds the projection matrix at 60.08° vertical. It verifies the angle from the matrix and then records the camera pose. Mapbox transform source

Capture settings by engine

Recaptured on with the latest stable releases checked against the ArcGIS CDN, npm’s latest tags and the Google Maps and Godot release records. Imagery and terrain names identify the tile sources used. Dataset revisions are unrecorded.

Shared sky is solid pale blue (#c6dbea) with fog and stars disabled.
Engine and capture versionLatest releaseImagery and terrainSky and hazeCapture notes
ArcGIS Maps SDK for JavaScript5.2.7 CDN 5.2.7 CDN Esri World ImageryEsri Terrain3D · Raster Shared sky Pinned CDN build. The readback records the full SDK version and CDN URL. Waited for the scene update and checked imagery and elevation tile responses. Pinned SDK source
CesiumJS1.147.0 1.147.0 Esri World Imageryswisstopo quantized mesh · Mesh Shared sky Reads swisstopo mesh tiles directly. Landscape renders internally at 960 × 540. The globe reported loaded tiles in all four captures. swisstopo mesh service
MapLibre GL JS6.19.0 6.19.0 Esri World ImageryMapzen Terrarium · Raster Shared sky Waited at least 25 seconds after setting the pose, then checked tile loading and stable sample elevations. The render matrices give the eye position and lens angle.
Mapbox GL JS3.35.2 3.35.2 Esri World ImageryMapbox Terrain DEM · Raster Shared sky Hosted sample with the SDK assets pinned to the capture version. Waited at least 25 seconds after setting the pose, then checked tile loading and stable sample elevations. Raster and terrain sources
Three.jsr187 r187 Esri World Imagery · zoom 15 near camera, 12 farther awayMapzen Terrarium local mesh · Mesh Shared sky Rendered twelve frames after both imagery textures were ready.
deck.gl9.4.1 9.4.1 Esri World ImageryMapzen Terrarium · Raster Shared sky Uses FirstPersonView for direct eye placement and TerrainLayer with regional elevation bounds. The view and projection matrices verify the pose and lens. MapView defaults to about 36.87° vertical. FirstPersonView · TerrainLayer · MapView
Godot4.7.2-stable (official) 4.7.2-stable (official) Esri World Imagery · zoom 15.0 near camera, 12 farther awayMapzen Terrarium local mesh · Mesh Shared sky Rendered twelve frames after both imagery textures were ready.
Google Maps JavaScript 3D3.67.1d 3.67.1d Google photorealistic imageryGoogle photorealistic terrain · Mesh Google’s atmosphere. The public API has no sky or fog controls. Google 3D API Hosted SDK sample with Google’s built-in 3D imagery. The scene reported steady in all four captures. The custom imagery tile API belongs to the 2D Map class. 3D map modes · Custom map types

How to read the captures

LabelMeaning
RasterThe engine receives a grid of elevation samples.
MeshThe engine receives vertices and triangles. Three.js and Godot use a local mesh built from raster elevation.
Camera readbackEach screenshot links to the measured pose and lens angles.
Visual differencesTerrain geometry, imagery, height references, clipping and lighting vary by engine.

Other web SDKs checked

SDK and version testedLatest release seriesImagery and camera controls
HERE Maps API for JavaScript3.2 series3.2Loaded Esri imagery in a tilted map. The SDK uses a look-at target and has no public FOV setting. HERE SDK notes and tilt readback
Apple MapKit JS5.81.72 hosted sample6Supports raster tile overlays, center, camera distance and rotation. The web API lacks pitch and FOV settings. MapKit JS and native MapKit notes

Lens defaults and SDK sources · Shared camera lens rules

What this means for shared view links

A shared camera saves a known perspective lens as the full diagonal field of view, in degrees strictly between 0° and 180°. For example, 68.4f means 68.4° from one corner of the viewport to the opposite corner. Holding that angle fixed keeps centered landmarks the same size relative to the viewport diagonal as the screen shape changes.

Use the source viewport to convert a native horizontal or vertical angle to diagonal. The receiving viewer uses its own viewport to convert back to the axis its camera API takes. If the sender omits f, the receiver uses its own lens and reports the choice. Conversion formulas · Lens decision