Skip to content

Search

Dokumentasi

camera3d

The camera the scene is drawn from. Its node places and aims it, looking along the node's -z as a light3d shines; the lens rows say how it projects and…

Di halaman ini

3d · render · 10 properties · 3D

The camera the scene is drawn from. Its node places and aims it, looking along the node's -z as a light3d shines; 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
far float 1000 The farthest distance drawn, in world units At least 0.000001.
focus_distance float 10 How far ahead the camera's focus sits, in world units: an orthographic frame with no orthographic_height is sized from it, and a stereo pair converges there At least 0.001.
fov_degrees float 45 The vertical field of view; in orthographic, how much of focus_distance the frame covers Range 1–179.
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 focus_distance 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.
stereo_separation float 0 Above zero, a stereo pair this far apart in world units: one eye in each half of the frame, both converging focus_distance ahead. A stereo camera ignores projection and keeps +y up At least 0.

Asset types this component references: camera_effects.

Kamu yakin?