Model - cameras[]
Every method of the cameras[] lane. Each step of a cameras[] entry returns a camera, and the lane's entries are addressed by the identity schema/lanes.ts declares for it.
| Method | Description | Arg | Type | Default | Meaning |
|---|---|---|---|---|---|
camera | Camera — A named camera — reference it from a view3d head's camera arg by key. Set fov OR height, never both: fov projects through an angle (perspective), height through a box (orthographic). NOT product. | position | point | [1000, 1000, 1000] | Eye position [x,y,z] mm. |
target | point | [0, 0, 0] | Look-at point [x,y,z] mm. Must differ from Position — equal points name no view direction. | ||
up | vector | Roll reference [x,y,z]. Default [0,0,1] (level with the world). | |||
fov | number | 45 | VERTICAL field of view in DEGREES — makes this camera perspective. Exclusive with Height. No aspect ratio: the consumer's viewport or sheet cell supplies it. | ||
height | length | World height visible — makes this camera orthographic. Exclusive with FOV. The left/right/top/bottom edges are derived from it and the consumer's aspect. |