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.

Kinetic: a clip under the words keeps its own picture, without grain or vignette; the gallery check opens every tile

Adarsh8a6de3625743
diff --git a/src/lib/motion/scenes/marketing/poster.ts b/src/lib/motion/scenes/marketing/poster.ts
index 2834881b..7b5acc97 100644
--- a/src/lib/motion/scenes/marketing/poster.ts
+++ b/src/lib/motion/scenes/marketing/poster.ts
@@ -307,8 +307,9 @@ export function posterScene(def: PosterDef): Scene {
// The person's clip takes the place of the field (and its tonal ghost); without ground light the field has no pools of light.
if (clip) layers = layers.filter((l) => l.role !== "ground" && l.role !== "atmosphere" && l.role !== "ghost");
else if (unlit) layers = layers.filter((l) => l.role !== "atmosphere");
- if (built.grain !== false) layers.push({ role: "grain", nodes: [grain({ w: design.w, h: design.h, seed: recipe.seed, frame: Math.round(t * recipe.fps), dark: ctx.dark, ...(typeof built.grain === "number" && { amount: built.grain }) })] });
- if (built.vignette !== false && !unlit) layers.push({ role: "finish", nodes: [vignette({ w: design.w, h: design.h, strength: typeof built.vignette === "number" ? built.vignette : 0.14, color: withLightness(pal.ground, 0.08) })] });
+ // The person's own clip keeps its own picture: no grain or vignette over it (its dim and scrim are the only shade).
+ if (built.grain !== false && !clip) layers.push({ role: "grain", nodes: [grain({ w: design.w, h: design.h, seed: recipe.seed, frame: Math.round(t * recipe.fps), dark: ctx.dark, ...(typeof built.grain === "number" && { amount: built.grain }) })] });
+ if (built.vignette !== false && !unlit && !clip) layers.push({ role: "finish", nodes: [vignette({ w: design.w, h: design.h, strength: typeof built.vignette === "number" ? built.vignette : 0.14, color: withLightness(pal.ground, 0.08) })] });
const fl = flashNode(design.w, design.h, flash);
if (fl) layers.push({ role: "light", nodes: [fl] });
const cam = home || locked ? { x: 0, y: 0 } : (built.camera?.(tc) ?? { x: 0, y: 0 });
diff --git a/tests/e2e/kinetic-templates.mjs b/tests/e2e/kinetic-templates.mjs
index c7e5b83f..dffcca4c 100644
--- a/tests/e2e/kinetic-templates.mjs
+++ b/tests/e2e/kinetic-templates.mjs
@@ -203,6 +203,13 @@ try {
// Covers: every code template's tile shows its versioned cover and clip.
await page.goto("/marketing", { waitUntil: "load", timeout: 120_000 });
await page.waitForTimeout(2500);
+ // The strongest covers lead, so some code templates sit after "Show more".
+ for (let i = 0; i < 10; i++) {
+ const more = page.getByRole("button", { name: /^Show more/ });
+ if (!(await more.count())) break;
+ await more.first().click();
+ await page.waitForTimeout(400);
+ }
const html = await page.content();
const missing = CODE_TEMPLATES.filter((id) => !new RegExp(`templates/marketing/${id}\\.jpg\\?v=[0-9a-f]{8}`).test(html.replaceAll("%2F", "/").replaceAll("&amp;", "&")));
check(missing.length === 0, `the ten code templates' tiles show their versioned covers (missing: ${missing.join(", ") || "none"})`);