Kitchen and yard
At an inn a cook stirs, a server wipes the bar, and a stable hand throws to a porter.
Loading 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, HumanEmblem, HumanHabit, HumanLabour, HumanObject, HumanPerformance } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";
const stove = archetypes.createTable({ kind: "counter" });
const stoveAt = { at: { x: -2, y: 0, z: 0.6 }, yaw: 180 };
const pan = archetypes.createVessel({ kind: "saucepan" });
const panAt = { at: { x: -1.95, y: 0.914, z: 0.5 }, yaw: 0 };
const spoon = archetypes.createTool({ kind: "spoon" });
const spoonAt = { position: { x: -2.2, y: 0.914, z: 0.34 }, rotation: { x: 0.7071067811865476, y: 0, z: 0, w: 0.7071067811865476 } };
const bar = archetypes.createTable({ kind: "counter" });
const barAt = { at: { x: 0, y: 0, z: 0.65 }, yaw: 180 };
// kat: body f1, at (-2, 0) m, facing 0°, trained
const kat = HumanChain.subject("kat")
.act("pickUp", {
prop: "spoon",
handle: "grip",
use: { tip: "face", line: "square" },
})
.registered("stir", {
prop: "spoon",
on: { kind: "prop", subject: "pan", point: "inside" },
})
.act("look", {
target: { kind: "person", subject: "lev", region: "face" },
cue: "seen",
})
.act("gesture", { kind: "nod" })
.registered("stir", {
prop: "spoon",
on: { kind: "prop", subject: "pan", point: "inside" },
cycles: 6,
})
.act("look", {
target: { kind: "person", subject: "mak", region: "face" },
cue: "seen",
})
.registered("stir", {
prop: "spoon",
on: { kind: "prop", subject: "pan", point: "inside" },
cycles: 6,
});
// lev: body m2, at (0, 0.12) m, facing 0°, trained
const lev = HumanChain.subject("lev")
.registered("scrub", {
on: {
kind: "point",
at: { x: 0, y: 0.914, z: 0.45 },
frame: "world",
},
})
.act("gesture", { kind: "touchFace" })
.act("wipe", {
on: {
kind: "point",
at: { x: -0.1, y: 0.914, z: 0.42 },
frame: "world",
},
cycles: 3,
})
.act("gesture", { kind: "squareShoulders" })
.act("wipe", {
on: {
kind: "point",
at: { x: -0.2, y: 0.914, z: 0.4 },
frame: "world",
},
cycles: 1,
});
// mak: body m2, at (2, -1) m, facing 0°, trained
const mak = HumanChain.subject("mak")
.registered("carryBag", { to: { x: 2, y: 0, z: 1 } })
.registered("haul", { to: { x: 2, y: 0, z: 2.5 } })
.act("gesture", { kind: "touchFace" })
.act("gesture", { kind: "raiseHand" }, "ky-ready")
.registered("thumbsUp", {})
.registered("carryBag", { to: { x: 2, y: 0, z: 4 } })
.act("gesture", { kind: "nod" });
// nel: body f2, at (2, 6) m, facing 180°, trained
const nel = HumanChain.subject("nel")
.registered("checkWatch", {})
.act("gesture", { kind: "rubHands" })
.act("gesture", { kind: "raiseHand" })
.act("stand", { seconds: 1.5 })
.registered("hurl", {
at: { kind: "person", subject: "mak", region: "sternum" },
})
.sync({
of: "ky-ready",
event: "strokeEnd",
align: "release",
offset: 0.2,
})
.act("gesture", { kind: "wave" })
.act("gesture", { kind: "nod" });
const scene = kat.with(lev, mak, nel);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanLabour.stir, HumanLabour.scrub, HumanLabour.carryBag, HumanLabour.haul, HumanEmblem.thumbsUp, HumanHabit.checkWatch, HumanLabour.hurl];
const props = [
HumanObject.prop("stove", stove, stoveAt),
HumanObject.prop("pan", pan, panAt),
HumanObject.prop("spoon", spoon, spoonAt),
HumanObject.prop("bar", bar, barAt),
];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "kitchen-and-yard",
performers: [
{ subject: "kat", body: bodies["f1"]!, at: { x: -2, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "lev", body: bodies["m2"]!, at: { x: 0, y: 0, z: 0.12 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "mak", body: bodies["m2"]!, at: { x: 2, y: 0, z: -1 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "nel", body: bodies["f2"]!, at: { x: 2, y: 0, z: 6 }, yaw: 180, 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.