Skip to Content

Picnic

Four friends on the grass: two sit, cross-legged and on the floor, and raise a mimed cup to drink; one kneels, sits back and nods; one lies still.

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, HumanPerformance, HumanPose, HumanSocial } from "@automovie/motions";

// lea: body f1, at (-1, 0) m, facing 45°, trained
const lea = HumanChain.subject("lea")
  .registered("sitCrossLegged", {})
  .registered("toastSip", {});

// max: body m1, at (1, 0) m, facing 315°, trained
const max = HumanChain.subject("max")
  .registered("sitOnFloor", {})
  .registered("toastSip", {});

// nia: body f2, at (0, 1.4) m, facing 180°, trained
const nia = HumanChain.subject("nia")
  .registered("kneelSit", {})
  .act("gesture", { kind: "nod" });

// oto: body m2, at (0, -1.2) m, facing 0°, trained
const oto = HumanChain.subject("oto")
  .registered("lieStill", {});

const scene = lea.with(max, nia, oto);

// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanPose.sitCrossLegged, HumanSocial.toastSip, HumanPose.sitOnFloor, HumanPose.kneelSit, HumanPose.lieStill];

// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;

const input: IAutoMovieMotionHumanPerformance.IInput = {
  seed: "picnic",
  performers: [
    { subject: "lea", body: bodies["f1"]!, at: { x: -1, y: 0, z: 0 }, yaw: 45, proficiency: { level: "trained" } },
    { subject: "max", body: bodies["m1"]!, at: { x: 1, y: 0, z: 0 }, yaw: 315, proficiency: { level: "trained" } },
    { subject: "nia", body: bodies["f2"]!, at: { x: 0, y: 0, z: 1.4 }, yaw: 180, proficiency: { level: "trained" } },
    { subject: "oto", body: bodies["m2"]!, at: { x: 0, y: 0, z: -1.2 }, yaw: 0, proficiency: { level: "trained" } },
  ],
  composition: scene.node,
  laws,
};
const performance = new HumanPerformance(input);