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.

Fuobe FX: covers for Relight, Restyle, Remove person, Depth, Evolution, Upscale modes, Splat and Blockout

Adarsh7b353b11906a
diff --git a/src/lib/area-showcase.ts b/src/lib/area-showcase.ts
index 90bcd75e..4d3cfbda 100644
--- a/src/lib/area-showcase.ts
+++ b/src/lib/area-showcase.ts
@@ -6,7 +6,7 @@
import "server-only";
import { cacheLife } from "next/cache";
import { APPS, EFFECTS, MOTIONS } from "@/lib/catalog";
-import { FX_COVERS, FX_SECTIONS, fxCardable, isFxApp } from "@/lib/fx-tools";
+import { FX_SECTIONS, fxCardable, fxCover, isFxApp } from "@/lib/fx-tools";
import { HOME_EFFECTS, HOME_MOTIONS, HOME_STUDIOS, homeCard, homeShowcase, presetHref, type HomeFacts } from "@/lib/home-showcase";
import { areaCount, areaSections, cardsToShow, PILL_ONLY, rankCards, type AreaId } from "@/lib/nav-areas";
import { entry, NAV_ENTRIES, subLabel, visibleTo, type NavEntry, type ViewerKind } from "@/lib/nav-model";
@@ -165,7 +165,7 @@ export function fxItem(id: string, facts?: HomeFacts): FxItem | undefined {
}
const e = entry(id);
if (!e) return undefined;
- const cover = FX_COVERS[id] ?? areaCover(id);
+ const cover = fxCover(id) ?? areaCover(id);
const line = facts ? lineOf(e, facts) : (e.line ?? e.what);
return {
id,
diff --git a/src/lib/fx-tools.ts b/src/lib/fx-tools.ts
index d5d3c79b..bc00a51c 100644
--- a/src/lib/fx-tools.ts
+++ b/src/lib/fx-tools.ts
@@ -33,9 +33,30 @@ export const FX_COVERS: Readonly<Record<string, string>> = {
"video-tools-green-screen": "app-remove-background",
"video-tools-colors": "app-match-colors",
"video-tools-restore": "app-restore-photo",
+ "video-tools-remove-person": "effect-vanish",
+ "video-tools-depth": "effect-lidar-transition",
+ "video-tools-relight": "app-relight",
+ "video-tools-evolution": "effect-world-morphing",
+ [gj("restyle")]: "effect-layer-mixed-media",
+ [gj("finish")]: "effect-film-colors",
"upscale-fps": "motion-slow-motion",
};
+/**
+ * The cover a mode of a shared tool shows here (a pill on the page, a row with its picture in the menu): it stays a pill,
+ * as its tool does.
+ */
+export const FX_PILL_COVERS: Readonly<Record<string, string>> = {
+ "upscale-video": "app-macro-scene",
+ "upscale-hdr": "effect-hyper-neon",
+ "upscale-export": "app-behind-the-scenes",
+ "image-to-3d-splat": "effect-point-cloud",
+ "cinema-blockout": "effect-wireframe",
+};
+
+/** An item's own cover here, a card's or a pill's (undefined: its studio's, areaCover). */
+export const fxCover = (id: string): string | undefined => FX_COVERS[id] ?? FX_PILL_COVERS[id];
+
export interface FxSection {
/** The section's anchor (#replace), its tab and its menu column. */
id: string;
diff --git a/src/lib/mega-menus.server.ts b/src/lib/mega-menus.server.ts
index 565f8fb6..997258c4 100644
--- a/src/lib/mega-menus.server.ts
+++ b/src/lib/mega-menus.server.ts
@@ -24,7 +24,7 @@ import { templateCover } from "@/lib/template-covers";
import { templateStillSources } from "@/lib/template-hd";
import { MENU_LINES } from "@/lib/menu-lines";
import { fxSections } from "@/lib/area-showcase";
-import { FX_COVERS, FX_SECTIONS, isFxApp } from "@/lib/fx-tools";
+import { FX_SECTIONS, fxCover, isFxApp } from "@/lib/fx-tools";
import { entry } from "@/lib/nav-model";
/** A column of a preset menu: its name, its phone chip, and the catalog categories it holds. */
@@ -256,8 +256,9 @@ function fxMenuItem(id: string): MegaItem | undefined {
const e = entry(id);
if (!e) return undefined;
// A mode shows the preset whose picture shows its job (inline: the nav's own covers don't carry it); else the entry's.
- const own = FX_COVERS[id] ? presetMegaCover(FX_COVERS[id]) : undefined;
- const nav = own ? undefined : (FX_COVERS[id] ?? e.cover);
+ const mine = fxCover(id);
+ const own = mine ? presetMegaCover(mine) : undefined;
+ const nav = own ? undefined : (mine ?? e.cover);
return {
id,
href: e.href,