Street corner
Eight passers-by cross a corner, each with their own gait and business.
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, HumanGait, HumanHabit, HumanPerformance, HumanPose, HumanStance } from "@automovie/motions";
// a: body f1, at (-4, -2) m, facing 90°, trained
const a = HumanChain.subject("a")
.registered("stroll", { to: { x: -1, y: 0, z: -2 } })
.act("look", {
with: "trunk",
cue: "seen",
target: {
kind: "point",
frame: "world",
at: { x: -0.5, y: 1.6, z: -3.5 },
},
seconds: 1.5,
})
.registered("checkWatch", {})
.registered("stroll", { to: { x: 4, y: 0, z: -2 } });
// b: body m1, at (4, -1) m, facing 270°, trained
const b = HumanChain.subject("b")
.registered("hurry", { to: { x: 1.5, y: 0, z: -1 } })
.registered("checkWatch", {})
.registered("hurry", { to: { x: -3, y: 0, z: -1 } })
.act("gesture", { kind: "raiseHand", hold: 1.5 })
.registered("hurry", { to: { x: -5, y: 0, z: -1 } });
// c: body m2, at (-4, 0) m, facing 90°, trained
const c = HumanChain.subject("c")
.registered("jog", { to: { x: 3, y: 0, z: 0 } })
.registered("checkWatch", {})
.registered("neckRoll", {})
.registered("jog", { to: { x: -4, y: 0, z: 0 } });
// d: body f2, at (4, 1) m, facing 270°, trained
const d = HumanChain.subject("d")
.registered("limp", { to: { x: 1.5, y: 0, z: 1 } })
.registered("wince", {})
.registered("handsOnHips", { seconds: 1.5 })
.registered("limp", { to: { x: -2, y: 0, z: 1 } })
.registered("kneelBriefly", {})
.registered("wince", {});
// e: body m1, at (-4, 2) m, facing 90°, trained
const e = HumanChain.subject("e")
.registered("swagger", { to: { x: -0.5, y: 0, z: 2 } })
.act("gesture", { kind: "chinLift" })
.registered("handsInPockets", { seconds: 1.5 })
.registered("swagger", { to: { x: 4, y: 0, z: 2 } })
.act("look", {
with: "trunk",
cue: "seen",
target: { kind: "person", subject: "f", region: "face" },
})
.act("gesture", { kind: "wave", count: 3 });
// f: body f1, at (3, 3) m, facing 270°, trained
const f = HumanChain.subject("f")
.registered("proud", { to: { x: 0.5, y: 0, z: 3 } })
.act("gesture", { kind: "squareShoulders" })
.act("gesture", { kind: "nod" })
.registered("proud", { to: { x: -3.5, y: 0, z: 3 } })
.act("look", {
with: "trunk",
cue: "seen",
target: { kind: "person", subject: "e", region: "face" },
})
.act("gesture", { kind: "wave", count: 2 })
.registered("handsOnHips", { seconds: 1.5 });
// g: body m2, at (-3, 4) m, facing 90°, trained
const g = HumanChain.subject("g")
.registered("sad", { to: { x: -0.5, y: 0, z: 4 } })
.registered("rubEyes", {})
.registered("trudge", { to: { x: 2.5, y: 0, z: 4 } })
.registered("facepalm", {})
.act("gesture", { kind: "shakeHead" });
// h: body f2, at (2, -3) m, facing 300°, trained
const h = HumanChain.subject("h")
.registered("readingWalk", { to: { x: -0.5, y: 0, z: -3.3 } })
.over((overlay) =>
overlay
.registered("checkPhone", { seconds: 2 })
)
.act("handToFace", { task: "phone", seconds: 2 })
.act("walk", { to: { x: -4.5, y: 0, z: -3.6 } })
.over((overlay) =>
overlay
.act("handToFace", { task: "phone", seconds: 1.5 })
)
.registered("checkPhone", { seconds: 1.5 });
const scene = a.with(b, c, d, e, f, g, h);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanGait.stroll, HumanHabit.checkWatch, HumanGait.hurry, HumanGait.jog, HumanStance.neckRoll, HumanGait.limp, HumanPose.wince, HumanStance.handsOnHips, HumanPose.kneelBriefly, HumanGait.swagger, HumanStance.handsInPockets, HumanGait.proud, HumanGait.sad, HumanHabit.rubEyes, HumanGait.trudge, HumanEmblem.facepalm, HumanHabit.readingWalk, HumanHabit.checkPhone];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "street",
performers: [
{ subject: "a", body: bodies["f1"]!, at: { x: -4, y: 0, z: -2 }, yaw: 90, proficiency: { level: "trained" } },
{ subject: "b", body: bodies["m1"]!, at: { x: 4, y: 0, z: -1 }, yaw: 270, proficiency: { level: "trained" } },
{ subject: "c", body: bodies["m2"]!, at: { x: -4, y: 0, z: 0 }, yaw: 90, proficiency: { level: "trained" } },
{ subject: "d", body: bodies["f2"]!, at: { x: 4, y: 0, z: 1 }, yaw: 270, proficiency: { level: "trained" } },
{ subject: "e", body: bodies["m1"]!, at: { x: -4, y: 0, z: 2 }, yaw: 90, proficiency: { level: "trained" } },
{ subject: "f", body: bodies["f1"]!, at: { x: 3, y: 0, z: 3 }, yaw: 270, proficiency: { level: "trained" } },
{ subject: "g", body: bodies["m2"]!, at: { x: -3, y: 0, z: 4 }, yaw: 90, proficiency: { level: "trained" } },
{ subject: "h", body: bodies["f2"]!, at: { x: 2, y: 0, z: -3 }, yaw: 300, proficiency: { level: "trained" } },
],
composition: scene.node,
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.