Office
Two people at work: one types seated at a desk, rubs their eyes and thinks; the other checks a watch at a desk, shifts, takes a call, gets up, walks to the wall and switches the light.
The packages refuse this scene today, in their own words on the view below. #3556 fixes it.
Computing the take.
Each person is a chain of typed actions from @automovie/motions. This is what an agent writes for the scene; Composing motion explains the parts.
import type { IAutoMovieMotionHumanBody, IAutoMovieMotionHumanPerformance } from "@automovie/interface";
import { HumanChain, HumanHabit, HumanObject, HumanPerformance, HumanStance } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";
const deskD = archetypes.createTable({ depth: 0.7, kind: "desk" });
const deskDAt = { at: { x: -1.2, y: 0, z: 0.75 }, yaw: 0 };
const chairD = archetypes.createSeat({ kind: "office" });
const chairDAt = { at: { x: -1.2, y: 0, z: 0.08 }, yaw: 0 };
const keyboard = archetypes.createKeyboard({ kind: "keyboard" });
const keyboardAt = { at: { x: -1.2, y: 0.74, z: 0.48 }, yaw: 180 };
const deskE = archetypes.createTable({ kind: "desk" });
const deskEAt = { at: { x: 1, y: 0, z: 0.75 }, yaw: 0 };
const chairE = archetypes.createSeat({ kind: "office" });
const chairEAt = { at: { x: 1, y: 0, z: -0.15 }, yaw: 0 };
const switch_ = archetypes.createSwitch({ kind: "rocker" });
const switch_At = { at: { x: 2.2, y: 0, z: 0 }, yaw: 270 };
// dee: body f2, at (-1.2, 0.3) m, facing 0°, trained
const dee = HumanChain.subject("dee")
.act("sit", { seat: HumanObject.seat(chairD, chairDAt), seconds: 0.5 })
.act("typeText", { keyboard: "keyboard", text: "the scene opens" })
.registered("rubEyes", {})
.registered("thinking", { seconds: 1.5 });
// eli: body m2, at (1, 0.15) m, facing 0°, trained
const eli = HumanChain.subject("eli")
.act("sit", { seat: HumanObject.seat(chairE, chairEAt), seconds: 0.5 })
.registered("checkWatch", {})
.act("shift", { by: 0.1 })
.act("handToFace", { task: "phone" })
.act("rise", {})
.act("approach", {
target: { kind: "prop", subject: "switch", point: "press" },
at: 0.15,
})
.act("operate", {
mechanism: {
kind: "button",
at: { kind: "prop", subject: "switch", point: "press" },
},
});
const scene = dee.with(eli);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanHabit.rubEyes, HumanStance.thinking, HumanHabit.checkWatch];
const props = [
HumanObject.prop("deskD", deskD, deskDAt),
HumanObject.prop("chairD", chairD, chairDAt),
HumanObject.prop("keyboard", keyboard, keyboardAt),
HumanObject.prop("deskE", deskE, deskEAt),
HumanObject.prop("chairE", chairE, chairEAt),
HumanObject.prop("switch", switch_, switch_At),
];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "office",
performers: [
{ subject: "dee", body: bodies["f2"]!, at: { x: -1.2, y: 0, z: 0.3 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "eli", body: bodies["m2"]!, at: { x: 1, y: 0, z: 0.15 }, yaw: 0, proficiency: { level: "trained" } },
],
composition: scene.node,
props,
laws,
};
const performance = new HumanPerformance(input);Each person's actions on the film clock, with their named instants, as the engine placed them.
The timeline appears when the take is drawn.
The same composition in 4 takes on the player's clock. Each changes one choice and keeps the rest; the other takes are computed in this page, which takes a few seconds.