diff --git a/docs/art-bible.md b/docs/art-bible.md new file mode 100644 index 0000000..a584c98 --- /dev/null +++ b/docs/art-bible.md @@ -0,0 +1,74 @@ +# Art bible + +The look of every asset is fixed here before anything is generated. Prompts are +assembled mechanically: **base prompt + kind template + asset prompt**. The exact +strings live in `works/faust/assets/assets.json` (`base_prompt` and each asset's +`prompt`); this document explains them. + +## Look + +- **Era and medium**: a romantic 19th-century illustrated edition of *Faust* — oil + painting with the drawing discipline of a steel engraving (think Delacroix's Faust + lithographs, Kaulbach, Friedrich's skies). Painted, not photographic, not anime. +- **Palette**: muted and earthy — umber, ochre, slate blue, ivory, deep crimson as the + only saturated accent (reserved for Mephistopheles and the Earth Spirit). Heaven gets + warm gold and pale blue, never neon. +- **Proportions**: semi-realistic adults, natural heads (about 1:7.5), no exaggerated eyes. +- **Lighting**: one warm key light from the upper left, soft chiaroscuro, deep but not + crushed shadows. Night scenes keep the same direction (lamp light from the left). +- **Never**: text, letters, signatures, watermarks, frames, UI, modern objects. + +## Base prompt (used for every asset) + +> Hand-painted romantic 19th-century oil painting on canvas with the fine linework of a steel engraving, as in an illustrated 1850s edition of Goethe's Faust (in the spirit of Delacroix's Faust lithographs and Caspar David Friedrich). Clearly painted, NOT photorealistic, NOT a 3D render, NOT digital concept art: visible loose brushstrokes, subtle engraved cross-hatching in the shadows, slightly aged varnish. Muted earthy palette of umber, ochre, slate blue and ivory with restrained deep crimson accents. Soft chiaroscuro, single warm key light from the upper left. Semi-realistic proportions. No text, no letters, no signature, no watermark, no frame, no border. + +The first calibration image (with a softer wording) came out as glossy digital concept +art, hence the explicit "NOT photorealistic, NOT a 3D render" clause. + +## Kind templates + +**Background** (16:9): wide establishing shot, eye level, empty foreground band at the +bottom third so sprites can stand in front, no people unless the asset prompt says so. + +**Sprite** (2:3): one character, standing, framed from head to knees, centred, body +turned slightly to the viewer, whole head and both hands inside the frame with margin +above the head. Background is a **perfectly flat, uniform chroma-green (#00B140) field** +with no gradient, floor, shadow or props — so it can be keyed out. No green in costumes. + +**Expression variant**: generated with the base sprite as `reference_images`; the prompt +demands the identical character, costume, framing, lighting and green field and changes +only face (and hands where noted). Identity drift → regenerate. + +## Cast (only characters drawn as sprites) + +| Id | Description | Expressions | +|---|---|---| +| `faust` | Scholar in his fifties, gaunt, deep-set tired eyes, greying shoulder-length hair, short grey beard; dark umber academic gown with fur collar over a black doublet; 16th-century German. | neutral (brooding), anguished, ecstatic (awed, lit from above), fearful (recoiling) | +| `mephisto` | Lean man of no clear age, sharp features, arched brows, pointed black beard, sardonic mouth; 16th-century nobleman in deep crimson and black doublet, short black cape, black beret with a single red rooster feather. No horns, no tail. | neutral, sly (smirk), scornful, deferent (mock bow, hand on chest) | +| `director` | Stout middle-aged theatre impresario, late 18th century; brown frock coat, buff waistcoat, tied grey wig, holding a ledger. | neutral, pleased, worried | +| `poet` | Young pale man, long dark wavy hair, open white shirt collar, dark slate-blue coat; holds a quill. | neutral (dreamy), inspired, indignant | +| `clown` | Jovial comedian, round ruddy face, motley of red, ochre and slate-blue diamonds, white ruff. | neutral, laughing, mocking | + +Not drawn as sprites (see `docs/adaptation-rules.md`): the Lord (a throne of light), the +archangels (part of the heaven background), the Earth Spirit (a lighting change of the +study), the Dedicatoria's lyric voice (full-screen text). + +## Backgrounds + +| Id | Content | +|---|---| +| `bg_dedication` | Twilight sky of drifting mist; faint translucent figures half-formed in the clouds, no faces. Also the main-menu image. | +| `bg_theatre` | Empty stage of a small late-18th-century German wooden theatre, painted flats, candle footlights, rehearsal daylight from high windows. | +| `bg_heaven` | Celestial realm above luminous clouds, sun and stars; three robed, winged archangels in white and gold, small and distant, singing. | +| `bg_heaven_lord` | Same heavens; a throne-shaped radiance of golden light with no visible figure, heavenly hosts as faint silhouettes. | +| `bg_study` | Narrow, high-vaulted Gothic study at night: books, parchments, alembics, a skull, a lamp on a desk with a great open book, moonlight through leaded glass. | +| `bg_study_macrocosm` | Same study (reference `bg_study`); a golden cosmic diagram of rings and stars floats glowing above the open book. | +| `bg_study_spirit` | Same study (reference `bg_study`) flooded with trembling red light; a towering, indistinct column of flame-like presence; no clear face. | + +## Process + +1. Generate the base asset, inspect it, regenerate if off-model (max 20 generations/hour + on the ChatGPT image MCP). +2. Sprites: key out the green field (`vnpipe assets cutout`), inspect the alpha edges. +3. Record prompt, generation id, sha256 and status in `assets.json`. Anything not + approved falls back to a generated placeholder. diff --git a/src/vnpipe/assets.py b/src/vnpipe/assets.py new file mode 100644 index 0000000..93dcf77 --- /dev/null +++ b/src/vnpipe/assets.py @@ -0,0 +1,307 @@ +"""Asset manifest management: import generated images, key out sprite backgrounds, +fall back to placeholders, and build contact sheets for visual review. + +The manifest (``/assets/assets.json``) is the single source of truth for every +image: prompt, origin, hash and review status. Image generation itself happens +outside this module (an MCP tool driven by an agent); ``import`` ingests its result. +""" + +import argparse +import base64 +import hashlib +import json +from pathlib import Path +from typing import Any + +from PIL import Image, ImageDraw, ImageFont, ImageOps + +from vnpipe.config import load_work +from vnpipe.schema import validate + +MANIFEST = "assets/assets.json" +BG_SIZE = (1920, 1080) +SPRITE_HEIGHT = 1000 +USABLE = {"processed", "approved"} + +# Chroma key thresholds on "greenness" = g - max(r, b). +KEY_FULL = 60 # at or above: fully transparent +KEY_NONE = 20 # at or below: fully opaque + + +def sha256_file(path: Path) -> str: + return hashlib.sha256(path.read_bytes()).hexdigest() + + +def load_manifest(work_root: Path) -> dict[str, Any]: + data = json.loads((work_root / MANIFEST).read_text(encoding="utf-8")) + validate(data, "manifest") + return data + + +def save_manifest(work_root: Path, data: dict[str, Any]) -> None: + validate(data, "manifest") + text = json.dumps(data, ensure_ascii=False, indent=2) + "\n" + (work_root / MANIFEST).write_text(text, encoding="utf-8") + + +def find_asset(manifest: dict[str, Any], asset_id: str) -> dict[str, Any]: + for asset in manifest["assets"]: + if asset["id"] == asset_id: + return asset + raise KeyError(f"unknown asset id: {asset_id}") + + +def full_prompt(manifest: dict[str, Any], asset: dict[str, Any]) -> str: + """Prompt actually sent to the generator: base + kind template + asset prompt.""" + kind = "variant" if asset.get("reference") and asset["kind"] == "sprite" else asset["kind"] + template = manifest["templates"][kind] + return "\n\n".join(p for p in (manifest["base_prompt"], template, asset["prompt"]) if p) + + +# --- import ----------------------------------------------------------------- + + +def load_tool_result(path: Path) -> dict[str, Any]: + """Read a stored query_tasks result (raw object or [{"type": "text", "text": ...}]).""" + data = json.loads(path.read_text(encoding="utf-8")) + if isinstance(data, list) and data and isinstance(data[0], dict) and "text" in data[0]: + data = json.loads(data[0]["text"]) + if isinstance(data, str): + data = json.loads(data) + return data + + +def decode_output(result: dict[str, Any], index: int = 0) -> bytes: + if result.get("status") != "COMPLETED": + raise ValueError(f"generation not completed: status={result.get('status')}") + outputs = [o for o in result.get("outputs", []) if o.get("base64")] + if len(outputs) <= index: + raise ValueError("no base64 output; query again with include_base64=true") + out = outputs[index] + raw = base64.b64decode(out["base64"]) + expected = out.get("sha256") + if expected and hashlib.sha256(raw).hexdigest() != expected: + raise ValueError("sha256 mismatch between decoded image and the MCP report") + return raw + + +def import_image(work_root: Path, asset_id: str, raw: bytes, generation_id: str | None) -> Path: + manifest = load_manifest(work_root) + asset = find_asset(manifest, asset_id) + raw_rel = f"raw/{asset_id}.png" + raw_path = work_root / "assets" / raw_rel + raw_path.parent.mkdir(parents=True, exist_ok=True) + with Image.open(_bytes_io(raw)) as img: + img.convert("RGB").save(raw_path, "PNG") + asset.update(raw_file=raw_rel, generation_id=generation_id, status="generated") + asset.setdefault("source", "chatgpt-web") + save_manifest(work_root, manifest) + return raw_path + + +def _bytes_io(raw: bytes): + import io + + return io.BytesIO(raw) + + +# --- processing ------------------------------------------------------------- + + +def chroma_key(img: Image.Image) -> Image.Image: + """Make the flat green field transparent with a soft edge and green despill.""" + rgb = img.convert("RGB") + pixels = [] + for r, g, b in rgb.getdata(): + greenness = g - max(r, b) + if greenness >= KEY_FULL: + pixels.append((0, 0, 0, 0)) + continue + if greenness <= KEY_NONE: + alpha = 255 + else: + alpha = round(255 * (KEY_FULL - greenness) / (KEY_FULL - KEY_NONE)) + if greenness > 0: + g = max(r, b) # despill: clamp green to the other channels + pixels.append((r, g, b, alpha)) + out = Image.new("RGBA", rgb.size) + out.putdata(pixels) + return out + + +def trim_and_scale_sprite(img: Image.Image, height: int = SPRITE_HEIGHT) -> Image.Image: + bbox = img.getchannel("A").point(lambda a: 255 if a > 16 else 0).getbbox() + if bbox: + img = img.crop(bbox) + scale = height / img.height + return img.resize((max(1, round(img.width * scale)), height), Image.Resampling.LANCZOS) + + +def process_asset(work_root: Path, asset: dict[str, Any]) -> None: + raw_path = work_root / "assets" / asset["raw_file"] + final = work_root / "assets" / asset["file"] + final.parent.mkdir(parents=True, exist_ok=True) + with Image.open(raw_path) as img: + if asset["kind"] == "sprite": + out = trim_and_scale_sprite(chroma_key(img)) + else: + out = ImageOps.fit(img.convert("RGB"), BG_SIZE, Image.Resampling.LANCZOS) + out.save(final, "PNG", optimize=True) + asset["sha256"] = sha256_file(final) + asset["status"] = "processed" + + +def placeholder(asset: dict[str, Any], label_color: str = "#d8cfc0") -> Image.Image: + """Deterministic stand-in image so the game always runs.""" + if asset["kind"] == "background": + img = Image.new("RGB", BG_SIZE, "#1d1a17") + draw = ImageDraw.Draw(img) + for y in range(BG_SIZE[1]): + shade = 23 + round(30 * y / BG_SIZE[1]) + draw.line([(0, y), (BG_SIZE[0], y)], fill=(shade, shade - 4, shade - 8)) + else: + img = Image.new("RGBA", (500, SPRITE_HEIGHT), (0, 0, 0, 0)) + draw = ImageDraw.Draw(img) + draw.ellipse([170, 40, 330, 220], fill=(60, 52, 46, 230)) + draw.rounded_rectangle([110, 230, 390, SPRITE_HEIGHT], 60, fill=(60, 52, 46, 230)) + draw = ImageDraw.Draw(img) + font = ImageFont.load_default(size=40) + draw.text((30, 30), asset["id"], fill=label_color, font=font) + return img + + +def ensure_placeholder(work_root: Path, asset: dict[str, Any]) -> None: + final = work_root / "assets" / asset["file"] + final.parent.mkdir(parents=True, exist_ok=True) + placeholder(asset).save(final, "PNG") + asset.update(source="placeholder", status="placeholder", sha256=sha256_file(final)) + + +def contact_sheet(work_root: Path, ids: list[str], out: Path, thumb: int = 360) -> Path: + """Tile raw or processed images (sprites over a checkerboard) for visual review.""" + manifest = load_manifest(work_root) + tiles = [] + for asset_id in ids: + asset = find_asset(manifest, asset_id) + rel = asset["file"] if asset["status"] in USABLE else asset.get("raw_file") + if not rel: + continue + with Image.open(work_root / "assets" / rel) as img: + img = img.convert("RGBA") + img.thumbnail((thumb, thumb)) + tile = _checker((thumb, thumb)) + tile.alpha_composite(img, ((thumb - img.width) // 2, (thumb - img.height) // 2)) + ImageDraw.Draw(tile).text((6, 6), asset_id, fill="white") + tiles.append(tile) + cols = min(4, max(1, len(tiles))) + rows = (len(tiles) + cols - 1) // cols + sheet = Image.new("RGBA", (cols * thumb, max(1, rows) * thumb), "black") + for i, tile in enumerate(tiles): + sheet.paste(tile, ((i % cols) * thumb, (i // cols) * thumb)) + out.parent.mkdir(parents=True, exist_ok=True) + sheet.convert("RGB").save(out) + return out + + +def _checker(size: tuple[int, int], cell: int = 20) -> Image.Image: + img = Image.new("RGBA", size, (90, 90, 90, 255)) + draw = ImageDraw.Draw(img) + for y in range(0, size[1], cell): + for x in range((y // cell % 2) * cell, size[0], cell * 2): + draw.rectangle([x, y, x + cell - 1, y + cell - 1], fill=(130, 130, 130, 255)) + return img + + +# --- CLI -------------------------------------------------------------------- + + +def _cmd_import(args: argparse.Namespace) -> int: + work = load_work(args.work) + result = load_tool_result(args.tool_result) + raw = decode_output(result, args.index) + path = import_image(work.root, args.asset_id, raw, result.get("generationId")) + print(f"{args.asset_id}: imported {path} ({len(raw)} bytes, sha256 verified)") + return 0 + + +def _cmd_process(args: argparse.Namespace) -> int: + work = load_work(args.work) + manifest = load_manifest(work.root) + for asset in manifest["assets"]: + if args.ids and asset["id"] not in args.ids: + continue + if asset["status"] == "generated" or (args.force and asset.get("raw_file")): + process_asset(work.root, asset) + print(f"{asset['id']}: processed") + save_manifest(work.root, manifest) + return 0 + + +def _cmd_status(args: argparse.Namespace) -> int: + work = load_work(args.work) + manifest = load_manifest(work.root) + if args.set: + asset = find_asset(manifest, args.set[0]) + asset["status"] = args.set[1] + if len(args.set) > 2: + asset["notes"] = args.set[2] + save_manifest(work.root, manifest) + for asset in manifest["assets"]: + print(f"{asset['status']:<11} {asset['id']}") + return 0 + + +def _cmd_placeholders(args: argparse.Namespace) -> int: + work = load_work(args.work) + manifest = load_manifest(work.root) + for asset in manifest["assets"]: + if asset["status"] not in USABLE: + ensure_placeholder(work.root, asset) + print(f"{asset['id']}: placeholder") + save_manifest(work.root, manifest) + return 0 + + +def _cmd_prompt(args: argparse.Namespace) -> int: + work = load_work(args.work) + manifest = load_manifest(work.root) + print(full_prompt(manifest, find_asset(manifest, args.asset_id))) + return 0 + + +def _cmd_sheet(args: argparse.Namespace) -> int: + work = load_work(args.work) + print(contact_sheet(work.root, args.ids, args.out)) + return 0 + + +def register(sub: argparse._SubParsersAction) -> None: + parser = sub.add_parser("assets", help="Manage the asset manifest and images") + cmds = parser.add_subparsers(dest="assets_command", required=True) + + p = cmds.add_parser("prompt", help="Print the full generation prompt for an asset") + p.add_argument("asset_id") + p.set_defaults(handler=_cmd_prompt) + + p = cmds.add_parser("import", help="Decode a stored query_tasks result into an asset") + p.add_argument("asset_id") + p.add_argument("tool_result", type=Path) + p.add_argument("--index", type=int, default=0) + p.set_defaults(handler=_cmd_import) + + p = cmds.add_parser("process", help="Cut out sprites / fit backgrounds") + p.add_argument("ids", nargs="*") + p.add_argument("--force", action="store_true", help="Reprocess already processed assets") + p.set_defaults(handler=_cmd_process) + + p = cmds.add_parser("status", help="List statuses, or --set ID STATUS [NOTE]") + p.add_argument("--set", nargs="+", metavar="ARG") + p.set_defaults(handler=_cmd_status) + + p = cmds.add_parser("placeholders", help="Create placeholders for unusable assets") + p.set_defaults(handler=_cmd_placeholders) + + p = cmds.add_parser("sheet", help="Build a contact sheet PNG for review") + p.add_argument("out", type=Path) + p.add_argument("ids", nargs="+") + p.set_defaults(handler=_cmd_sheet) diff --git a/src/vnpipe/schemas/manifest.schema.json b/src/vnpipe/schemas/manifest.schema.json index 79536c3..57fff83 100644 --- a/src/vnpipe/schemas/manifest.schema.json +++ b/src/vnpipe/schemas/manifest.schema.json @@ -3,32 +3,118 @@ "$id": "vnpipe/manifest.schema.json", "title": "Asset manifest", "type": "object", - "required": ["base_prompt", "assets"], + "required": [ + "base_prompt", + "templates", + "assets" + ], "additionalProperties": false, "properties": { - "base_prompt": {"type": "string"}, + "base_prompt": { + "type": "string" + }, "assets": { "type": "array", "items": { "type": "object", - "required": ["id", "kind", "prompt", "source", "file", "sha256", "status"], + "required": [ + "id", + "kind", + "prompt", + "source", + "file", + "sha256", + "status" + ], "additionalProperties": false, "properties": { - "id": {"type": "string", "pattern": "^(bg|sprite)_[a-z0-9_]+$", "description": "bg_[_] or sprite__"}, - "kind": {"enum": ["background", "sprite"]}, - "character": {"type": "string"}, - "expression": {"type": "string"}, - "prompt": {"type": "string", "description": "Asset-specific prompt; the full prompt sent is base_prompt + kind prompt + this"}, - "source": {"enum": ["chatgpt-web", "zenvairo-media", "placeholder", "manual"]}, - "generation_id": {"type": ["string", "null"]}, - "reference": {"type": ["string", "null"], "description": "Asset id used as reference image (identity consistency)"}, - "raw_file": {"type": ["string", "null"], "description": "Original generated image, relative to the work's assets dir"}, - "file": {"type": "string", "description": "Final processed image used by the game, relative to the work's assets dir"}, - "sha256": {"type": ["string", "null"], "pattern": "^[0-9a-f]{64}$"}, - "status": {"enum": ["planned", "generated", "processed", "approved", "rejected", "placeholder"]}, - "notes": {"type": "string"} + "id": { + "type": "string", + "pattern": "^(bg|sprite)_[a-z0-9_]+$", + "description": "bg_[_] or sprite__" + }, + "kind": { + "enum": [ + "background", + "sprite" + ] + }, + "character": { + "type": "string" + }, + "expression": { + "type": "string" + }, + "prompt": { + "type": "string", + "description": "Asset-specific prompt; the full prompt sent is base_prompt + kind prompt + this" + }, + "source": { + "enum": [ + "chatgpt-web", + "zenvairo-media", + "placeholder", + "manual" + ] + }, + "generation_id": { + "type": [ + "string", + "null" + ] + }, + "reference": { + "type": [ + "string", + "null" + ], + "description": "Asset id used as reference image (identity consistency)" + }, + "raw_file": { + "type": [ + "string", + "null" + ], + "description": "Original generated image, relative to the work's assets dir" + }, + "file": { + "type": "string", + "description": "Final processed image used by the game, relative to the work's assets dir" + }, + "sha256": { + "type": [ + "string", + "null" + ], + "pattern": "^[0-9a-f]{64}$" + }, + "status": { + "enum": [ + "planned", + "generated", + "processed", + "approved", + "rejected", + "placeholder" + ] + }, + "notes": { + "type": "string" + } } } + }, + "templates": { + "type": "object", + "required": [ + "background", + "sprite", + "variant" + ], + "additionalProperties": { + "type": "string" + }, + "description": "Kind-specific prompt templates appended after base_prompt" } } } diff --git a/works/faust/assets/assets.json b/works/faust/assets/assets.json new file mode 100644 index 0000000..1b056b8 --- /dev/null +++ b/works/faust/assets/assets.json @@ -0,0 +1,333 @@ +{ + "base_prompt": "Hand-painted romantic 19th-century oil painting on canvas with the fine linework of a steel engraving, as in an illustrated 1850s edition of Goethe's Faust (in the spirit of Delacroix's Faust lithographs and Caspar David Friedrich). Clearly painted, NOT photorealistic, NOT a 3D render, NOT digital concept art: visible loose brushstrokes, subtle engraved cross-hatching in the shadows, slightly aged varnish. Muted earthy palette of umber, ochre, slate blue and ivory with restrained deep crimson accents. Soft chiaroscuro, single warm key light from the upper left. Semi-realistic proportions. No text, no letters, no signature, no watermark, no frame, no border.", + "templates": { + "background": "Visual novel background, 16:9 wide establishing shot at eye level, empty foreground band in the bottom third, no people unless described.", + "sprite": "Visual novel character sprite, 2:3 portrait. One character, standing, framed from head to knees, centred, body turned slightly toward the viewer, whole head and both hands inside the frame with clear margin above the head. The background is a perfectly flat, uniform chroma-green (#00B140) field with no gradient, no floor, no shadow and no props. No green anywhere on the character.", + "variant": "Use the reference image: keep exactly the same character, face, hair, costume, framing, scale, lighting and flat chroma-green (#00B140) background. Change only the facial expression and pose of the hands as described." + }, + "assets": [ + { + "id": "bg_dedication", + "kind": "background", + "prompt": "Twilight sky of drifting silver mist; faint translucent human figures half-formed in the clouds, like memories, with no recognisable faces; melancholic and dreamlike.", + "source": "chatgpt-web", + "generation_id": null, + "reference": null, + "raw_file": null, + "file": "bg/dedication.png", + "sha256": null, + "status": "planned" + }, + { + "id": "bg_theatre", + "kind": "background", + "prompt": "The empty wooden stage of a small late-18th-century German theatre seen from the wings toward the stage: painted canvas flats, a heavy curtain partly drawn, a row of candle footlights, rehearsal daylight falling from high windows, dust in the air.", + "source": "chatgpt-web", + "generation_id": null, + "reference": null, + "raw_file": null, + "file": "bg/theatre.png", + "sha256": null, + "status": "planned" + }, + { + "id": "bg_heaven", + "kind": "background", + "prompt": "The celestial realm high above luminous clouds, the sun blazing and stars visible in a deep blue sky; three robed, winged archangels in white and gold, small and distant in the middle ground, singing.", + "source": "chatgpt-web", + "generation_id": null, + "reference": null, + "raw_file": null, + "file": "bg/heaven.png", + "sha256": null, + "status": "planned" + }, + { + "id": "bg_heaven_lord", + "kind": "background", + "prompt": "The celestial realm above luminous clouds; at the centre a throne-shaped radiance of golden light with no visible figure inside it, rays spreading outward; the heavenly hosts as faint winged silhouettes on both sides.", + "source": "chatgpt-web", + "generation_id": null, + "reference": null, + "raw_file": null, + "file": "bg/heaven_lord.png", + "sha256": null, + "status": "planned" + }, + { + "id": "bg_study", + "kind": "background", + "prompt": "A narrow, high-vaulted Gothic study at night: shelves crammed with old books and parchments, alembics and glass vessels, a skull, dusty instruments; an oil lamp burning on a heavy wooden desk with a great open book; cold moonlight through a tall leaded-glass window on the left mixing with the warm lamplight.", + "source": "chatgpt-web", + "generation_id": "83bd1969-5831-405d-8f27-b1e813e87439", + "reference": null, + "raw_file": "raw/bg_study.png", + "file": "bg/study.png", + "sha256": "56851eaed4c28d52809ef8dda3912c7b1985b2cbcb4532a027ad124bf672a4d2", + "status": "rejected", + "notes": "Calibration image: composition good but too photorealistic; base prompt tightened." + }, + { + "id": "bg_study_macrocosm", + "kind": "background", + "prompt": "Same Gothic study as the reference image, same viewpoint: above the great open book on the desk floats a glowing golden diagram of the macrocosm, concentric rings, stars and planets, casting soft golden light across the room.", + "source": "chatgpt-web", + "generation_id": null, + "reference": "bg_study", + "raw_file": null, + "file": "bg/study_macrocosm.png", + "sha256": null, + "status": "planned" + }, + { + "id": "bg_study_spirit", + "kind": "background", + "prompt": "Same Gothic study as the reference image, same viewpoint, now flooded with trembling blood-red light; a towering, indistinct column of flame-like presence rises in the middle of the room, terrifying, with no clear face; long dark shadows.", + "source": "chatgpt-web", + "generation_id": null, + "reference": "bg_study", + "raw_file": null, + "file": "bg/study_spirit.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_faust_neutral", + "kind": "sprite", + "character": "faust", + "expression": "neutral", + "prompt": "A scholar in his fifties, gaunt, deep-set tired eyes, greying shoulder-length hair and a short grey beard; dark umber academic gown with a fur collar over a black doublet; 16th-century German. Expression and pose: brooding, weary, neutral expression, hands loosely clasped.", + "source": "chatgpt-web", + "generation_id": null, + "reference": null, + "raw_file": null, + "file": "sprites/faust_neutral.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_faust_anguished", + "kind": "sprite", + "character": "faust", + "expression": "anguished", + "prompt": "Expression and pose: anguished, brow furrowed, one hand pressed to his temple.", + "source": "chatgpt-web", + "generation_id": null, + "reference": "sprite_faust_neutral", + "raw_file": null, + "file": "sprites/faust_anguished.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_faust_ecstatic", + "kind": "sprite", + "character": "faust", + "expression": "ecstatic", + "prompt": "Expression and pose: awed and ecstatic, eyes raised, face lit from above, one hand lifted.", + "source": "chatgpt-web", + "generation_id": null, + "reference": "sprite_faust_neutral", + "raw_file": null, + "file": "sprites/faust_ecstatic.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_faust_fearful", + "kind": "sprite", + "character": "faust", + "expression": "fearful", + "prompt": "Expression and pose: terrified, recoiling, eyes wide, both hands raised defensively.", + "source": "chatgpt-web", + "generation_id": null, + "reference": "sprite_faust_neutral", + "raw_file": null, + "file": "sprites/faust_fearful.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_mephisto_neutral", + "kind": "sprite", + "character": "mephisto", + "expression": "neutral", + "prompt": "A lean man of no clear age, sharp features, arched eyebrows, pointed black beard, sardonic mouth; dressed as a 16th-century nobleman in a deep crimson and black doublet, short black cape, black beret with a single red rooster feather. No horns, no tail. Expression and pose: composed, cool, slightly amused neutral expression, one hand on his hip.", + "source": "chatgpt-web", + "generation_id": null, + "reference": null, + "raw_file": null, + "file": "sprites/mephisto_neutral.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_mephisto_sly", + "kind": "sprite", + "character": "mephisto", + "expression": "sly", + "prompt": "Expression and pose: sly smirk, one eyebrow raised, finger lifted as if making a clever point.", + "source": "chatgpt-web", + "generation_id": null, + "reference": "sprite_mephisto_neutral", + "raw_file": null, + "file": "sprites/mephisto_sly.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_mephisto_scornful", + "kind": "sprite", + "character": "mephisto", + "expression": "scornful", + "prompt": "Expression and pose: scornful sneer, chin raised, arms crossed.", + "source": "chatgpt-web", + "generation_id": null, + "reference": "sprite_mephisto_neutral", + "raw_file": null, + "file": "sprites/mephisto_scornful.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_mephisto_deferent", + "kind": "sprite", + "character": "mephisto", + "expression": "deferent", + "prompt": "Expression and pose: mock-humble, bowing slightly, hand on his chest, ironic smile.", + "source": "chatgpt-web", + "generation_id": null, + "reference": "sprite_mephisto_neutral", + "raw_file": null, + "file": "sprites/mephisto_deferent.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_director_neutral", + "kind": "sprite", + "character": "director", + "expression": "neutral", + "prompt": "A stout middle-aged theatre impresario of the late 18th century; brown frock coat, buff waistcoat, tied grey wig, holding a ledger under one arm. Expression and pose: businesslike neutral expression.", + "source": "chatgpt-web", + "generation_id": null, + "reference": null, + "raw_file": null, + "file": "sprites/director_neutral.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_director_pleased", + "kind": "sprite", + "character": "director", + "expression": "pleased", + "prompt": "Expression and pose: pleased, broad smile, rubbing his hands.", + "source": "chatgpt-web", + "generation_id": null, + "reference": "sprite_director_neutral", + "raw_file": null, + "file": "sprites/director_pleased.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_director_worried", + "kind": "sprite", + "character": "director", + "expression": "worried", + "prompt": "Expression and pose: worried, frowning, glancing at the open ledger.", + "source": "chatgpt-web", + "generation_id": null, + "reference": "sprite_director_neutral", + "raw_file": null, + "file": "sprites/director_worried.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_poet_neutral", + "kind": "sprite", + "character": "poet", + "expression": "neutral", + "prompt": "A young pale man, long dark wavy hair, open white shirt collar, dark slate-blue coat; holding a quill pen. Expression and pose: dreamy, melancholic, gazing into the distance.", + "source": "chatgpt-web", + "generation_id": null, + "reference": null, + "raw_file": null, + "file": "sprites/poet_neutral.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_poet_inspired", + "kind": "sprite", + "character": "poet", + "expression": "inspired", + "prompt": "Expression and pose: inspired, eyes shining, hand raised with the quill.", + "source": "chatgpt-web", + "generation_id": null, + "reference": "sprite_poet_neutral", + "raw_file": null, + "file": "sprites/poet_inspired.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_poet_indignant", + "kind": "sprite", + "character": "poet", + "expression": "indignant", + "prompt": "Expression and pose: indignant, frowning, hand on his heart in protest.", + "source": "chatgpt-web", + "generation_id": null, + "reference": "sprite_poet_neutral", + "raw_file": null, + "file": "sprites/poet_indignant.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_clown_neutral", + "kind": "sprite", + "character": "clown", + "expression": "neutral", + "prompt": "A jovial comedian, round ruddy face, in a motley costume of red, ochre and slate-blue diamonds with a white ruff collar. Expression and pose: cheerful neutral expression.", + "source": "chatgpt-web", + "generation_id": null, + "reference": null, + "raw_file": null, + "file": "sprites/clown_neutral.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_clown_laughing", + "kind": "sprite", + "character": "clown", + "expression": "laughing", + "prompt": "Expression and pose: laughing heartily, head tilted back, hand on his belly.", + "source": "chatgpt-web", + "generation_id": null, + "reference": "sprite_clown_neutral", + "raw_file": null, + "file": "sprites/clown_laughing.png", + "sha256": null, + "status": "planned" + }, + { + "id": "sprite_clown_mocking", + "kind": "sprite", + "character": "clown", + "expression": "mocking", + "prompt": "Expression and pose: mocking grin, winking, pointing.", + "source": "chatgpt-web", + "generation_id": null, + "reference": "sprite_clown_neutral", + "raw_file": null, + "file": "sprites/clown_mocking.png", + "sha256": null, + "status": "planned" + } + ] +} diff --git a/works/faust/assets/bg/study.png b/works/faust/assets/bg/study.png new file mode 100644 index 0000000..99ed98e Binary files /dev/null and b/works/faust/assets/bg/study.png differ diff --git a/works/faust/assets/raw/bg_study.png b/works/faust/assets/raw/bg_study.png new file mode 100644 index 0000000..5b69f69 Binary files /dev/null and b/works/faust/assets/raw/bg_study.png differ