Tillbaka
· 1 min lästid
Camera lens
camera3d takes kiss3d's lens: field of view, clip planes, orthographic projection, render layers and a stereo pair.
- Dragos Balaur
A camera3d carries kiss3d's lens: how it projects, what it draws, and whether it draws two eyes. Its node alone moves it.

fov_degrees,nearandfarset the lens.projection = "orthographic"keeps parallel lines parallel,orthographic_heighthigh or sized from the distance to the point looked at.render_layersis a bitmask. A camera draws ashape3d,meshormultimesh3dwhose ownrender_layersshare a bit with it.- No mouse or key moves a camera. The editor library's Orbit camera and First person rigs are scripts that move one, which a game can read and change.
- With no current camera the defaults come back, so a game's lens ends when its play in the editor stops.
eye_separationabove 0 makes the camera a stereo pair: one eye in each half of the frame, both converging on the point looked at.

[nodes.camera3d]
look_at = [0.0, 0.0, 0.0]
fov_degrees = 25.0
projection = "perspective"
render_layers = 1