Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Cinema: a camera path holds 24 keyframes again on your GPU; the cloud's H3 Max still takes 12

Claude5f04323df3d3
diff --git a/src/lib/camera-path.ts b/src/lib/camera-path.ts
index 5d24f9ed..fb3d40cb 100644
--- a/src/lib/camera-path.ts
+++ b/src/lib/camera-path.ts
@@ -24,8 +24,12 @@ export interface CameraKey {
/** The photo's own camera: where every path starts. */
export const PHOTO_KEY: CameraKey = { t: 0, azimuth: 0, elevation: 0, distance: 1 };
-/** fal's H3 Max takes 2–12 keyframes; a path keeps to that so it films the same on both engines. */
-export const MAX_KEYS = 12;
+/**
+ * The most keys a path holds. Your GPU follows the path your browser renders (Uni3C), so it takes every key; fal's H3 Max
+ * takes 2–12, and a longer path is simplified to the 12 that matter most there, which the run says (toH3MaxTrajectory).
+ * (It was 12 on both engines until the owner's rule of 2026-10-30: the GPU keeps what it can do.)
+ */
+export const MAX_KEYS = 24;
/** The closest and furthest a key may be (subject distances). */
export const DISTANCE = { min: 0.2, max: 4 } as const;
diff --git a/tests/camera-path.test.ts b/tests/camera-path.test.ts
index 2f9e5e2f..744a3f8d 100644
--- a/tests/camera-path.test.ts
+++ b/tests/camera-path.test.ts
@@ -2,6 +2,7 @@ import { describe, expect, it } from "vitest";
import {
DEFAULT_MOTION,
H3_AZIMUTH_SIGN,
+ H3_LIMITS,
MAX_KEYS,
PATH_PRESETS,
PHOTO_KEY,
@@ -102,10 +103,14 @@ describe("editing a path", () => {
]);
});
- it("holds at most 12 keys", () => {
+ it("holds at most 24 keys: your GPU follows them all, the cloud's H3 Max simplifies past 12 and says so", () => {
let path: CameraKey[] = [];
- for (let i = 1; i <= 20; i++) path = addKey(path, { azimuth: i * 10, elevation: 0, distance: 1 });
+ for (let i = 1; i <= 30; i++) path = addKey(path, { azimuth: i * 10, elevation: 0, distance: 1 });
+ expect(MAX_KEYS).toBe(24);
expect(path).toHaveLength(MAX_KEYS);
+ const cloud = toH3MaxTrajectory(path);
+ expect("trajectory" in cloud && cloud.trajectory).toHaveLength(H3_LIMITS.max);
+ expect(cloud.notes.join(" ")).toMatch(/H3 Max takes up to 12 keyframes: the path is simplified/);
});
it("interpolates angles in a line and distance by ratio, holding before the first key and after the last", () => {
diff --git a/tests/cinema-path.test.ts b/tests/cinema-path.test.ts
index fc6befd4..7d195633 100644
--- a/tests/cinema-path.test.ts
+++ b/tests/cinema-path.test.ts
@@ -330,7 +330,8 @@ describe("Cinema API: Film this path in demo mode", () => {
{ keys: [{ t: 2, azimuth: 0, elevation: 0, distance: 1 }] },
{ keys: [{ t: 0, azimuth: 0, elevation: 120, distance: 1 }] },
{ keys: [{ t: 0, azimuth: 0, elevation: 0, distance: 0 }] },
- { keys: Array.from({ length: 13 }, (_, i) => ({ t: i / 12, azimuth: i, elevation: 0, distance: 1 })) },
+ // Past 24 keys (your GPU follows up to 24; the cloud simplifies a longer path to H3 Max's 12, and says so).
+ { keys: Array.from({ length: 25 }, (_, i) => ({ t: i / 24, azimuth: i, elevation: 0, distance: 1 })) },
{ keys: orbit, render: "https://elsewhere.test/r.webm" },
{ keys: orbit, duration: 30 },
]) {