Shoulder greeting
Two friends wave, shake hands, chat and clasp each other's shoulder.
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, HumanPerformance, shoulderClasp } from "@automovie/motions";
// a: body m1, at (0, -4) m, facing 0°, trained
const a = HumanChain.subject("a")
.act("look", {
target: {
kind: "point",
frame: "world",
at: { x: 0, y: 1.7, z: 0.45 },
},
seconds: 0.8,
}, "greet-seen")
.act("gesture", { kind: "wave" }, "greet-wave")
.act("walk", { to: { x: 0, y: 0, z: -0.45 }, face: 0 })
.act("handshake", { partner: "b" }, "greet-shake")
.act("gesture", { kind: "palmsUp" })
.act("gesture", { kind: "nod" });
// b: body m1, at (0, 0.45) m, facing 180°, trained
const b = HumanChain.subject("b")
.act("look", {
target: { kind: "person", subject: "a", region: "face" },
seconds: 0.6,
})
.act("gesture", { kind: "wave", side: "left" })
.sync({ of: "greet-wave", event: "strokeStart", offset: 0.1 })
.act("gesture", { kind: "beckon" })
.act("handshake", { partner: "a" })
.sync({ of: "greet-shake" })
.act("gesture", { kind: "shrug" })
.act("gesture", { kind: "nod" });
const scene = a.with(b).next(
HumanChain.mutual(
shoulderClasp,
{ one: HumanChain.subject("a"), other: HumanChain.subject("b") },
{ hold: 1 },
),
);
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "shoulder-greeting",
performers: [
{ subject: "a", body: bodies["m1"]!, at: { x: 0, y: 0, z: -4 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "b", body: bodies["m1"]!, at: { x: 0, y: 0, z: 0.45 }, yaw: 180, proficiency: { level: "trained" } },
],
composition: scene.node,
};
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.