Wine toast
Four friends take up wine glasses from a table; two clink first, then all four bring their glasses together over it.
The packages refuse this scene today, in their own words on the view below. #3528 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, HumanObject, HumanPerformance, HumanSocial } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";
const table = archetypes.createTable({ kind: "dining" });
const tableAt = { at: { x: 0, y: 0, z: 0 }, yaw: 0 };
const g1 = archetypes.createDrinkware({ kind: "wineGlass" });
const g1At = { at: { x: -0.45, y: 0.736, z: -0.3 }, yaw: 0 };
const g2 = archetypes.createDrinkware({ kind: "wineGlass" });
const g2At = { at: { x: 0.25, y: 0.736, z: -0.3 }, yaw: 0 };
const g3 = archetypes.createDrinkware({ kind: "wineGlass" });
const g3At = { at: { x: -0.25, y: 0.736, z: 0.3 }, yaw: 180 };
const g4 = archetypes.createDrinkware({ kind: "wineGlass" });
const g4At = { at: { x: 0.45, y: 0.736, z: 0.3 }, yaw: 180 };
// val: body f1, at (-0.35, -0.75) m, facing 0°, trained
const val = HumanChain.subject("val")
.act("pickUp", { prop: "g1", handle: "stem" });
// wes: body m1, at (0.35, -0.75) m, facing 0°, trained
const wes = HumanChain.subject("wes")
.act("pickUp", { prop: "g2", handle: "stem" });
// xio: body m2, at (-0.35, 0.75) m, facing 180°, trained
const xio = HumanChain.subject("xio")
.act("pickUp", { prop: "g3", handle: "stem" });
// yeo: body f2, at (0.35, 0.75) m, facing 180°, trained
const yeo = HumanChain.subject("yeo")
.act("pickUp", { prop: "g4", handle: "stem" });
const scene = val.with(wes, xio, yeo).next(
HumanChain.mutual(
HumanSocial.toast,
{ host: HumanChain.subject("val"), guest: HumanChain.subject("wes") },
{ glasses: { host: "g1", guest: "g2" } },
),
HumanChain.mutual(
HumanSocial.toastOfFour,
{ host: HumanChain.subject("val"), guest: HumanChain.subject("wes"), third: HumanChain.subject("xio"), fourth: HumanChain.subject("yeo") },
{
glasses: { host: "g1", guest: "g2", third: "g3", fourth: "g4" },
at: { x: 0, y: 1.15, z: 0 },
},
),
);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSocial.fistBump];
const props = [
HumanObject.prop("table", table, tableAt),
HumanObject.prop("g1", g1, g1At),
HumanObject.prop("g2", g2, g2At),
HumanObject.prop("g3", g3, g3At),
HumanObject.prop("g4", g4, g4At),
];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "wine-toast",
performers: [
{ subject: "val", body: bodies["f1"]!, at: { x: -0.35, y: 0, z: -0.75 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "wes", body: bodies["m1"]!, at: { x: 0.35, y: 0, z: -0.75 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "xio", body: bodies["m2"]!, at: { x: -0.35, y: 0, z: 0.75 }, yaw: 180, proficiency: { level: "trained" } },
{ subject: "yeo", body: bodies["f2"]!, at: { x: 0.35, y: 0, z: 0.75 }, 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.