Loading files
// Arcade machine 3D model from poly.pizza (https://poly.pizza/m/GLDkMhiynM) — "Arcade Machine" by dook,
// licensed CC-BY. If this ships, surface that attribution in a visible credit.
//
// From decoding the GLB (obj2gltf; identity node transforms): the body is `ArcadeMachine_Cube.002` and the
// monitor is `GameScreen_Plane` — a near-square quad (verified corners), tilted back ~2.6°. Native bounds:
// machine: min [-0.449, 0, -0.464] max [0.788, 2.586, 0.463]
// monitor: center (0.320, 1.888, -0.005), size (z) 0.780 × (y) 0.779
// The model's front (monitor + controls) faces +X, so we spin it -90° about Y to face +Z (toward the
// camera), scale it up, and drop it on the floor. World placement below is that transform applied to the
// bounds above — native (x, y, z) → world ( -z·S, FLOOR_Y + y·S, x·S ), with the group at x = z = 0.
export const MODEL_URL = "/models/arcade.glb";
export const MODEL_SCALE = 1.8; // native machine is 2.586 tall → ~4.65 world units, matching the scene
export const MODEL_ROT_Y = -Math.PI / 2; // front (+X) → +Z, facing the camera
export const FLOOR_Y = -2.6; // the machine sits here (matches the floor plane in Cabinet)
const S = MODEL_SCALE;
// GameScreen_Plane (the model's monitor) transformed to world space.
const MONITOR_CENTER_Y = FLOOR_Y + 1.888 * S; // ≈ 0.80 (native y center)
const MONITOR_Z = 0.32 * S; // ≈ 0.58 (native x center → world z)
const MONITOR_W = 0.78 * S; // ≈ 1.40 (native z extent → world x) — the squarish monitor
const MONITOR_H = 0.779 * S; // ≈ 1.40 (native y extent)
// The black monitor surface (world rect). ScreenMesh paints this black — the CRT, as before — and the
// live feed sits centered on it.
export const MONITOR = {
w: MONITOR_W,
h: MONITOR_H,
y: MONITOR_CENTER_Y,
z: MONITOR_Z + 0.03, // a hair proud of the recess so the bezel lip can't clip it
} as const;
// ── Tuning knobs ── the live multicam feed is a 16:9 rectangle INSET on the black monitor, centered, so it
// keeps the camera-feed aspect and doesn't spill onto the bezel. Nudge these if it looks off on the model:
export const FEED_WIDTH_FRAC = 0.8; // share of the monitor width the feed spans (smaller = more bezel margin)
export const FEED_Y_OFFSET = 0.1; // world-unit nudge up(+)/down(-) if the feed looks off-center in the monitor
const FEED_ASPECT = 1320 / 745; // the multicam composite's native pixel aspect (matches ScreenMesh)
// The live feed — what the camera frames its zoomed-in "rest pose" around; `yOffset` is the feed's shift
// within the black backing (ScreenMesh), kept in sync so the camera follows it.
export const FEED = {
w: MONITOR_W * FEED_WIDTH_FRAC,
h: (MONITOR_W * FEED_WIDTH_FRAC) / FEED_ASPECT,
y: MONITOR_CENTER_Y + FEED_Y_OFFSET,
z: MONITOR.z,
yOffset: FEED_Y_OFFSET,
} as const;
// full machine, transformed to world space — for the intro's full-height framing
export const MACHINE = {
bottom: FLOOR_Y, // native y = 0 sits on the floor
top: FLOOR_Y + 2.586 * S, // ≈ 2.05
frontZ: 0.788 * S, // ≈ 1.42 (native max x → world z, nearest the camera)
} as const;
05241c15dThis file is pinned to the selected release. Download the original to open it in your design tool.