camera¶
The Scene’s camera.
Camera is a Mob, so it is moved,
rotated and animated with exactly the methods every other Mob uses, inside the
same animation contexts – there is no separate camera-animation API. Camera
moves usually want easing=easings.identity, since easing in and out of a
pan reads as a wobble.
It carries perspective projection, a field of view in degrees, and near/far
clipping distances. set_near_orthographic approximates orthographic projection
with a distant perspective camera; it is not a separate orthographic ray model. Camera.center_on() frames a
given Mob, and look_at()
aims at a point.
Each Scene owns its own camera. The renderer consumes an immutable camera and light snapshot per frame batch, which is what lets batch preparation for the next batch run on a worker thread while the current one renders.
See Cameras.
Classes
The Scene's viewpoint. |