Skip to content

cinematicRecord ​

Namespace of @v12-engine/editor

Members ​

CameraSample beta ​

ts
export interface CameraSample

Where the view looked at a moment of the cinematic: a shot of the camera lane (x, z, distance, yaw, pitch, and fov, roll, height where they are not the view's own)

putTake beta ​

ts
export declare function putTake(def: CinematicDef, laneId: string, keys: readonly CameraSample[]): CinematicEdit;

A take put on a camera lane: its keys in the place of the lane's keys over the stretch it covers (from its first to its last, a frame either side), its clips (a follow, a shake) kept. The keys put are selected

simplifyTake beta ​

ts
export declare function simplifyTake(samples: readonly CameraSample[], tolerance?: TakeTolerance): CameraSample[];

The samples of a take that a straight line between those kept around them does not already give (within tolerance): the first and the last always, the rest where the move bends, speeds up or slows down

TAKE_TOLERANCE beta ​

ts
TAKE_TOLERANCE: TakeTolerance

The tolerance a take is simplified by when none is given: a quarter of a unit, half a degree, half a degree of lens

TakeTolerance beta ​

ts
export interface TakeTolerance

How far a key may be from the straight line between the keys kept around it and still be dropped: the ground point and the height in the map's units, the distance too, the yaw, the pitch and the roll in radians, the lens in degrees

tidyShot beta ​

ts
export declare function tidyShot(value: Record<string, unknown>): Record<string, unknown>;

A shot as a take keeps it: the ground point, the distance and the height to a thousandth, the angles to a ten-thousandth of a radian, the lens to a tenth of a degree