Skip to content

Search

Documentation

camera3d

The camera the scene is drawn from. look_at and up aim it, the lens rows say how it projects and what it draws, effects how the frame resolves, and the…

On this page

3d · render · 11 properties · 3D

The camera the scene is drawn from. look_at and up aim it, the lens rows say how it projects and what it draws, effects how the frame resolves, and the last current camera wins.

In a scene, camera3d is the node key that applies it. A script reaches each property below as a field on node.camera3d: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.camera3d.get() and node.camera3d.set(table).

Properties

property type default description
current bool true Whether this camera drives the view; the last current one wins
effects asset · camera_effects — The passes the frame resolves through and how each is tuned; empty draws the frame as it is
eye_separation float 0 Above zero, a stereo pair this far apart in world units: one eye in each half of the frame, both converging on the point looked at. A stereo camera ignores projection and keeps +y up At least 0.
far float 1000 The farthest distance drawn, in world units At least 0.000001.
fov_degrees float 45 The vertical field of view; in orthographic, how much of the distance to the point looked at the frame covers Range 1–179.
look_at vec3 [0,0,0] World point the camera looks at
near float 0.1 The nearest distance drawn, in world units At least 0.000001.
orthographic_height float 0 The orthographic frame's full height in world units; zero sizes it from the distance to the point looked at and fov_degrees At least 0.
projection enum perspective Perspective, or parallel lines that stay parallel One of perspective, orthographic.
render_layers flags [] The layers this camera draws: a node whose render_layers share one; empty is every layer One of 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32.
up vec3 [0,1,0] The direction the camera keeps up

Asset types this component references: camera_effects.

Are you sure?