Stone & wood pixel-art surfaces for panel/frame backgrounds #161

Open
opened 2026-06-27 10:27:31 -07:00 by nelsong6 · 0 comments
nelsong6 commented 2026-06-27 10:27:31 -07:00 (Migrated from github.com)

Goal

Replace the flat blue/navy panel fills (.settings-frame, .app-titlebar.settings-header-frame, and the other framed surfaces) with stone and wood pixel-art surfaces. Wood & stone are core to the app's material language (lore / background-art-contract), the shell is meant to read as "muted steel/slate," and chrome must be low-fi pixel art (ADR-0014). New ADR-0025 (world-scene/anti-story lore) may also bear on direction.

Key technical finding (the hard part)

You can't just drop a texture behind the existing kit 9-slice frames. panel.png is authored as a complete navy panel — gold only at the corners, navy baked into the edge and center slices. Dropping the fill keyword removes only the center navy; the edge slices still paint a navy ring over the texture.

Solution: split it into two layers — a transparent-interior frame (gold ornament only) as the border-image, and the texture as a separate background behind it (border-box origin so it fills to the edge). Both flex in width and height; one frame works for every material. Added frames/panel-corners.png and frames/panel-line.png (corners-only vs corners+thin gold line).

Approaches explored

Approach Status
Procedural (Voronoi cracks + curated palette + Bayer dither) dropped per review
B — Hybrid (codex organic structure → authored palette + dither) in contention
C — Pixel-model (gpt-image pixel-prompt + pixelize, 300px/24c) in contention; the ideal is Retro Diffusion / SDXL pixel-LoRA (needs an external API key)
D — PixelLab varied-tile field rejected (square grid reads loud on a uniform surface)
Baseline — codex render + palette quantize rejected (too smooth / "not pixellated enough")

Open decisions / TODO

  • Pick B vs C (or obtain a Retro Diffusion key for the best-quality C)
  • Pick edge treatment: corners-only vs corners + thin gold line
  • Title-bar scale bug: review textures are 960px wide but the full-width title bar renders ~1440px, so background-size: cover upscales them ~1.5× (looks "zoomed"). Fix by generating/sizing textures to the target width.
  • Generate all 4 materials (stone-blue, stone-grey, wood-oak, wood-walnut) at the chosen approach + final sizes
  • Wire into the real frames — settings first, then the other surfaces; decide whether rows/rail get textured or stay distinct chrome
  • DRY: forge method-gate logic is duplicated (main's inline kit-forge/forge-atom vs the shared codex-imagegen.mjs helper)

Review harness

/surface-review.html (worktree dev server) loads the real /settings page and toggles approach / material / zoom / frame live.

## Goal Replace the flat blue/navy panel fills (`.settings-frame`, `.app-titlebar.settings-header-frame`, and the other framed surfaces) with **stone and wood pixel-art surfaces**. Wood & stone are core to the app's material language (lore / background-art-contract), the shell is meant to read as "muted steel/slate," and chrome must be low-fi pixel art (ADR-0014). New ADR-0025 (world-scene/anti-story lore) may also bear on direction. ## Key technical finding (the hard part) You can't just drop a texture behind the existing kit 9-slice frames. `panel.png` is authored as a **complete navy panel** — gold only at the corners, navy baked into the edge *and* center slices. Dropping the `fill` keyword removes only the center navy; the edge slices still paint a navy ring over the texture. **Solution:** split it into two layers — a **transparent-interior frame** (gold ornament only) as the `border-image`, and the **texture as a separate `background`** behind it (border-box origin so it fills to the edge). Both flex in width and height; one frame works for every material. Added `frames/panel-corners.png` and `frames/panel-line.png` (corners-only vs corners+thin gold line). ## Approaches explored | Approach | Status | |---|---| | Procedural (Voronoi cracks + curated palette + Bayer dither) | **dropped** per review | | **B — Hybrid** (codex organic structure → authored palette + dither) | in contention | | **C — Pixel-model** (gpt-image pixel-prompt + pixelize, 300px/24c) | in contention; the *ideal* is Retro Diffusion / SDXL pixel-LoRA (needs an external API key) | | D — PixelLab varied-tile field | rejected (square grid reads loud on a uniform surface) | | Baseline — codex render + palette quantize | rejected (too smooth / "not pixellated enough") | ## Open decisions / TODO - [ ] Pick **B vs C** (or obtain a Retro Diffusion key for the best-quality C) - [ ] Pick edge treatment: **corners-only** vs **corners + thin gold line** - [ ] **Title-bar scale bug:** review textures are 960px wide but the full-width title bar renders ~1440px, so `background-size: cover` upscales them ~1.5× (looks "zoomed"). Fix by generating/sizing textures to the target width. - [ ] Generate all 4 materials (stone-blue, stone-grey, wood-oak, wood-walnut) at the chosen approach + final sizes - [ ] Wire into the real frames — settings first, then the other surfaces; decide whether rows/rail get textured or stay distinct chrome - [ ] DRY: forge method-gate logic is duplicated (main's inline `kit-forge`/`forge-atom` vs the shared `codex-imagegen.mjs` helper) ## Review harness `/surface-review.html` (worktree dev server) loads the **real `/settings` page** and toggles approach / material / zoom / frame live.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/chess-tactics#161
No description provided.