Skip to content

PortraitFraming ​

Interface of @v12-engine/client

ts
export interface PortraitFraming

How a unit's portrait is framed, lit and played: each field over what the model's bounds give. Distances and heights are in cells, of the model as it is drawn (its scale in)

Members ​

angle ​

ts
angle?: number;

From which side it is seen, in radians round it from its front; 0, its front, when left out (0.6, from its right, for a thing seen whole)

background ​

ts
background?: string;

What is behind it: a CSS background (a colour, a gradient); the box's own (see-through) when left out

distance ​

ts
distance?: number;

How far the camera is from what it looks at; fitted to frame when left out

fov ​

ts
fov?: number;

The camera's field of view, in radians, top to bottom; 0.55 when left out

frame ​

ts
frame?: number;

How much of the model's height the picture shows, top to bottom, where distance does not say: 0.6 (its head and shoulders) when left out; 1 the whole of it. A building (anything not a unit) or a model wider than it is tall without a head (a wagon) is seen whole, three quarters from above and its right, filling the round box: frame is then how much of it the box holds, 1 all of it

height ​

ts
height?: number;

How high above the model's feet the camera looks; its head's height (its head bone, else near its top) when left out

idle ​

ts
idle?: string;

The clip it plays while it stands in the box; its portrait clip where it has one, else its idle

light ​

ts
light?: PortraitLight;

The light on it

moods ​

ts
moods?: Record<string, string>;

A line's mood (DialogLine.emotion) to the clip it is said with: { angry: 'talk angry' }

pitch ​

ts
pitch?: number;

How far the camera looks down at it, in radians; 0.12 when left out (0.45 for a thing seen whole)

scale ​

ts
scale?: number;

How big the model is in the portrait, over its own size; 1 when left out

talk ​

ts
talk?: string | false;

The clip it plays while it speaks; its portrait talk or talk clip where it has one, else its idle with its head nodding. false: it does not move as it speaks