art: erste Kreatur über fal und Größenklassen für Sprites (--canvas)

Die Ratte ist der Probelauf für den fal-Pfad auf dem MacBook Air (M4,
24 GB, keine lokale FLUX-GPU): FLUX.2 [klein] 9B über fal, 1024x1024,
Seed 271828, zwei Läufe zu je 0,0063 $. Die Handschrift passt zum lokal
erzeugten Wolf.

Zwei Entscheidungen aus dem Lauf:

- Der Schwanz war zu dick (5-7 px statt 4,7 im Rohbild). Ursache ist die
  Vorlage plus die Pflicht-Kontur, nicht pixelize: das Modell malt eine
  gleich dicke Röhre, und 1 px Kontur je Seite sind bei einer 4-px-Linie
  30-40 % der sichtbaren Dicke. Behoben über den Prompt ("thin ... tapering
  to a point"), eine Variable. --cutout 20/26 getestet und verworfen — die
  Flutfüllung frisst dann die Körpermitte.
- Die Ratte soll deutlich kleiner als der Wolf sein. Canvas bleibt für alle
  Kreaturen 96x96, die Zeichnung darin hat eine Klasse: klein 56, mittel 96,
  groß 128. Dafür neu in pixelize.py: --canvas (bei --size zeichnen, mittig
  auf größeren transparenten Grund setzen). Gemessen: Bbox 47x34 gegen
  74x46 beim Wolf, also 47 % der Fläche.

Dokumentiert in final/Creatures/README (Klassen, Messwerte, cutout-Grenze),
roadmap 0.1 (Entscheidung eingetragen), WORKFLOW §4 (Flag) und prompts §8
(Sprite-Template um "thin and tapering" ergänzt, Klassen statt "eher
64x64"). prep/rat-test/ hält beide Läufe, den Prompt und drei
Vergleichsblätter (Schwanz v1, Größenstufen, Wolf vs. Ratte).

Außerdem: .DS_Store in .gitignore (der Finder legte drei davon in art/),
falgen-Docstring auf das echte Key-Format korrigiert (fal_sk_...,
key_id:key_secret statt hf_...).
This commit is contained in:
torsten 2026-11-14 21:43:14 +01:00
parent 1c0cb6d595
commit 039064a7c4
14 changed files with 202 additions and 13 deletions

3
.gitignore vendored
View file

@ -16,6 +16,9 @@ data_*/
mono_crash.*.json
# macOS
.DS_Store
# Python (art/tools)
__pycache__/
*.py[cod]

View file

@ -157,7 +157,9 @@ Optionen, die zählen: `--size`, `--colors` (16/32), `--dither none|bayer4|bayer
`--median 3` (Notbremse gegen Einzelpixel-Speckle), `--pre-blur 0.4`
(Mikro-Detail glätten), `--dither smart` (Bayer nur in weichen Verläufen),
`--cutout 12` (Hintergrund freistellen → RGBA), `--outline auto` (1-px-Kontur
um die Figur), `--recenter` (Figur in die Canvas-Mitte), `--inset 4`
um die Figur), `--recenter` (Figur in die Canvas-Mitte), `--canvas 96x96`
(Zeichnung bei kleinerem `--size` auf einen größeren transparenten Sprite-Grund
setzen → Größenklassen, `--inset 4`
(Rand abschneiden), `--flatten 6` (Untergrund flachziehen),
`--seal-edge` (Kacheln nahtlos), `--stats`.

View file

@ -1,9 +1,10 @@
# Creatures
> **Arbeitsstand 12.11.2026:** Die Dateien hier sind mit 4× aus der alten
> 320×180-Basis erzeugt. Verbindlich ist inzwischen **640×360 Basis, 2×**
> ([`../../WORKFLOW.md`](../../WORKFLOW.md) §0). Der Nachlauf dieser Kategorie
> steht in [`../../../docs/roadmap.md`](../../../docs/roadmap.md) §0.0.
> **Arbeitsstand 14.11.2026:** Die Serie läuft bewusst noch mit 4× (jetzt
> 96er-Basis, Ausgabe 384×384), damit Wolf und Ratte zusammenpassen. Die
> beschlossene 2×-Ausgabe ([`../../WORKFLOW.md`](../../WORKFLOW.md) §0) ist ein
> gemeinsamer Nachlauf über alle Dateien
> ([`../../../docs/roadmap.md`](../../../docs/roadmap.md) §0.0).
Monster und Tiere als freigestelltes Sprite.
@ -24,16 +25,43 @@ python3 ../../tools/pixelize.py ../../raw/Creatures/<roh>.png \
## Inhalt
| Datei | Rohbild | Seed | Aufruf |
| Datei | Rohbild | Seed | Klasse | Aufruf |
|---|---|---|---|---|
| `monster_wolf_96px.png` | `raw/Creatures/monster_wolf_s271828.png` | 271828 | mittel | `--size 96x96 --colors 32 --cutout 12 --outline auto --recenter --upscale 4` |
| `monster_ratte_96px.png` | `raw/Creatures/monster_ratte_v2_fal_s271828.png` (fal) | 271828 | klein | `--size 56x56 --canvas 96x96 --colors 32 --cutout 12 --outline auto --recenter --upscale 4` |
## Größenklassen (entschieden 14.11.2026)
**Die Canvas ist für alle Kreaturen gleich (96×96), die Figur darin nicht.**
Der Wolf ist die Referenz „mittel" (gezeichnet bei 96); die Ratte ist „klein"
und wird bei **56** gezeichnet, dann mit `--canvas 96x96` mittig auf den
transparenten 96er-Grund gesetzt. So bleibt der Anker in der Engine für alle
Kreaturen derselbe, ohne dass die Ratte so groß wie der Wolf wirkt.
Gemessen (1×, Bounding-Box der sichtbaren Figur):
| Klasse | Zeichnung | Bbox 1× | Datei |
|---|---|---|---|
| `monster_wolf_96px.png` | `raw/Creatures/monster_wolf_s271828.png` | 271828 | `--size 96x96 --colors 32 --cutout 12 --outline auto --recenter --upscale 4` |
| klein (Ratte) | 56 | 47×34 | 384×384 |
| mittel (Wolf) | 96 | 74×46 | 384×384 |
| groß (Boss, noch offen) | 128 | — | 512×512 (eigene Canvas) |
Regel: **eine Variable pro Figur** — die Klasse steckt im `--size`, nicht im
Prompt („small rat" ist bei FLUX ohne Wirkung; das Rechteck entscheidet).
Vergleich der Stufen 64/56/48 unter
[`../../prep/rat-test/_groessen.png`](../../prep/rat-test/_groessen.png),
Wolf vs. Ratte unter
[`../../prep/rat-test/_vergleich.png`](../../prep/rat-test/_vergleich.png).
## Regeln
- Bei Sprites: `--cutout` ist Pflicht, `--outline auto` ebenfalls — sonst
verschwindet ein heller Bauch auf hellem Boden.
- `--recenter` hält die Figur in der Canvas-Mitte; die Engine ankert
unten-mittig.
- Neue Datei → Zeile in der Tabelle oben (Name, Seed, Rohdatei).
unten-mittig. Bei `--canvas` übernimmt das Platzieren die Canvas, `--recenter`
zentriert davor nur innerhalb der Zeichnung.
- **`--cutout` nicht über 12–14 % treiben.** Getestet an der Ratte: bei 20 %
flutet die Füllung die Körpermitte, bei 26 % bricht die Silhouette auf.
- Neue Datei → Zeile in der Tabelle oben (Name, Seed, Rohdatei, Klasse).
- Dunkle Sprites brauchen `--levels`: ohne Tonwertspreizung verschwinden sie
auf dunklem Grund. Hell-mittel bleibt ohne.

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View file

@ -29,3 +29,5 @@ datum,endpoint_id,request_id,prompt,seed,lizenz
2026-11-14,local/comfyui/flux-2-klein-base-9b-fp8,ce1b434d-05bf-41e7-aaa1-b266e697e7eb,"painterly fantasy RPG scene, dense detail held together by strong value structure, deep blue-black shadows against a single warm amber light source, cool desaturated blues and umbers, warm cream highlights, high contrast, chunky readable volumes, light falling off in visible soft steps, no fine linework, atmosphere over clarity, late-1980s role-playing game cover-painting sensibility, first-person view of a harbor tavern interior at dusk, eye level, wide establishing framing, timber beams and a shuttered window with cold light behind it, clear value separation between foreground, middle ground and sky, one dominant shape, two supporting shapes, everything else quiet",771102,"FLUX.2 [klein] base 9B fp8 (FLUX Non-Commercial License) - lokal, kostenlos; Test: Prompt identisch zum fal-Lauf (Modellvergleich)"
2026-11-14,local/comfyui/flux-2-klein-base-9b-fp8,a7864c07-10a3-4ee3-9fa5-91c0d229c161,"painterly fantasy RPG scene, dense detail held together by strong value structure, deep blue-black shadows against a single warm amber light source, cool desaturated blues and umbers, warm cream highlights, high contrast, chunky readable volumes, light falling off in visible soft steps, no fine linework, atmosphere over clarity, late-1980s role-playing game cover-painting sensibility, first-person view of a harbor tavern interior at dusk, eye level, wide establishing framing, timber beams and a shuttered window with cold light behind it, clear value separation between foreground, middle ground and sky, one dominant shape, two supporting shapes, everything else quiet, a cluttered interior full of small readable objects - hanging lanterns and iron pots, stacked barrels and crates, mugs and plates on the tables, worn floorboards with visible grain, layered depth from a foreground table to the far back wall",771102,"FLUX.2 [klein] base 9B fp8 (FLUX Non-Commercial License) - lokal, kostenlos; Test: Prompt + Detail-Zusatz (clutter)"
2026-11-14,fal-ai/flux-2/klein/9b,01a1dba3-558d-7423-a803-dd0f8a1df75c,"grey wolf sprite, test pattern, flat neutral background",1,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 256x256, 0.0655 MP, x-fal-billable-units 0.25 = 0.00 USD"
2026-11-14,fal-ai/flux-2/klein/9b,01a1dbc0-5ae0-7c90-81cd-dfa53122de48,"illustrated fantasy RPG art, late-1980s role-playing game cover-illustration sensibility, flat color shapes with hard edges, limited palette of six to eight hues - muted ochre, dusty slate blue, olive green, warm cream highlights, deep umber shadow, no gradients except two-step blends, strong silhouettes, readable at small size, painterly but economical detail, full body of a large grey rat in a low crouching stance, side-on three-quarter view, centered, isolated on a flat neutral mid-grey background, complete silhouette with all four legs, both ears and the long tail visible, no cast shadow, no ground plane",271828,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 1024x1024, 1.0486 MP, x-fal-billable-units 1.0 = 0.01 USD"
2026-11-14,fal-ai/flux-2/klein/9b,01a1dbc9-702b-74e1-99f5-e6e90249341e,"illustrated fantasy RPG art, late-1980s role-playing game cover-illustration sensibility, flat color shapes with hard edges, limited palette of six to eight hues - muted ochre, dusty slate blue, olive green, warm cream highlights, deep umber shadow, no gradients except two-step blends, strong silhouettes, readable at small size, painterly but economical detail, full body of a grey rat in a low crouching stance, side-on three-quarter view, centered, isolated on a flat neutral mid-grey background, complete silhouette with all four legs, both ears and the long thin tail visible, the tail tapering to a point, no cast shadow, no ground plane",271828,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 1024x1024, 1.0486 MP, x-fal-billable-units 1.0 = 0.01 USD"

1 datum endpoint_id request_id prompt seed lizenz
29 2026-11-14 local/comfyui/flux-2-klein-base-9b-fp8 ce1b434d-05bf-41e7-aaa1-b266e697e7eb painterly fantasy RPG scene, dense detail held together by strong value structure, deep blue-black shadows against a single warm amber light source, cool desaturated blues and umbers, warm cream highlights, high contrast, chunky readable volumes, light falling off in visible soft steps, no fine linework, atmosphere over clarity, late-1980s role-playing game cover-painting sensibility, first-person view of a harbor tavern interior at dusk, eye level, wide establishing framing, timber beams and a shuttered window with cold light behind it, clear value separation between foreground, middle ground and sky, one dominant shape, two supporting shapes, everything else quiet 771102 FLUX.2 [klein] base 9B fp8 (FLUX Non-Commercial License) - lokal, kostenlos; Test: Prompt identisch zum fal-Lauf (Modellvergleich)
30 2026-11-14 local/comfyui/flux-2-klein-base-9b-fp8 a7864c07-10a3-4ee3-9fa5-91c0d229c161 painterly fantasy RPG scene, dense detail held together by strong value structure, deep blue-black shadows against a single warm amber light source, cool desaturated blues and umbers, warm cream highlights, high contrast, chunky readable volumes, light falling off in visible soft steps, no fine linework, atmosphere over clarity, late-1980s role-playing game cover-painting sensibility, first-person view of a harbor tavern interior at dusk, eye level, wide establishing framing, timber beams and a shuttered window with cold light behind it, clear value separation between foreground, middle ground and sky, one dominant shape, two supporting shapes, everything else quiet, a cluttered interior full of small readable objects - hanging lanterns and iron pots, stacked barrels and crates, mugs and plates on the tables, worn floorboards with visible grain, layered depth from a foreground table to the far back wall 771102 FLUX.2 [klein] base 9B fp8 (FLUX Non-Commercial License) - lokal, kostenlos; Test: Prompt + Detail-Zusatz (clutter)
31 2026-11-14 fal-ai/flux-2/klein/9b 01a1dba3-558d-7423-a803-dd0f8a1df75c grey wolf sprite, test pattern, flat neutral background 1 FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 256x256, 0.0655 MP, x-fal-billable-units 0.25 = 0.00 USD
32 2026-11-14 fal-ai/flux-2/klein/9b 01a1dbc0-5ae0-7c90-81cd-dfa53122de48 illustrated fantasy RPG art, late-1980s role-playing game cover-illustration sensibility, flat color shapes with hard edges, limited palette of six to eight hues - muted ochre, dusty slate blue, olive green, warm cream highlights, deep umber shadow, no gradients except two-step blends, strong silhouettes, readable at small size, painterly but economical detail, full body of a large grey rat in a low crouching stance, side-on three-quarter view, centered, isolated on a flat neutral mid-grey background, complete silhouette with all four legs, both ears and the long tail visible, no cast shadow, no ground plane 271828 FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 1024x1024, 1.0486 MP, x-fal-billable-units 1.0 = 0.01 USD
33 2026-11-14 fal-ai/flux-2/klein/9b 01a1dbc9-702b-74e1-99f5-e6e90249341e illustrated fantasy RPG art, late-1980s role-playing game cover-illustration sensibility, flat color shapes with hard edges, limited palette of six to eight hues - muted ochre, dusty slate blue, olive green, warm cream highlights, deep umber shadow, no gradients except two-step blends, strong silhouettes, readable at small size, painterly but economical detail, full body of a grey rat in a low crouching stance, side-on three-quarter view, centered, isolated on a flat neutral mid-grey background, complete silhouette with all four legs, both ears and the long thin tail visible, the tail tapering to a point, no cast shadow, no ground plane 271828 FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 1024x1024, 1.0486 MP, x-fal-billable-units 1.0 = 0.01 USD

123
art/prep/rat-test/README.md Normal file
View file

@ -0,0 +1,123 @@
# Ratten-Test — fal auf dem MacBook Air, zwei Läufe
Stand: 14.11.2026 · M4, 24 GB, keine lokale FLUX-GPU.
Zwei Läufe, gleicher Seed (**271828**), je 0,0063 $ — zusammen **0,0126 $**.
**Frage:** Liefert fal (`klein/9b`, 0,6 Cent/Bild) auf diesem Rechner ein
Sprite mit derselben Handschrift wie der lokal erzeugte Wolf?
**Vorgehen:** Style-Block A und Motiv-Schema aus `WORKFLOW.md` §4.4, nur das
Motiv getauscht. Der einzige Unterschied zwischen den Läufen ist jeweils **eine**
Variable. Prompt wörtlich in [`prompt.txt`](prompt.txt) (Stand Lauf 2; der
Prompt von Lauf 1 steht vollständig im Lizenzlog).
```bash
python3 art/tools/falgen.py --endpoint fal-ai/flux-2/klein/9b \
--prompt-file art/prep/rat-test/prompt.txt --size 1024x1024 --seed 271828 \
--kategorie Creatures --name monster_ratte_v2_fal_s271828
```
## Lauf 1 — Grundfassung
Ergebnis: Handschrift passt (flache Formen, harte Kanten, dieselbe Palette,
`--cutout`/`--outline` greifen), aber die Ratte ist eine Stufe flauer als der
Wolf — Motiv/Seed, nicht das Backend. **Der Schwanz war zu dick.**
### Befund: Schwanzdicke (gemessen)
Kein Eindruck, sondern nachzählbar — und **nicht** vom Werkzeug verursacht:
| | Wert |
|---|---|
| Rohbild (1024) | ~50 px Querschnitt, über die ganze Länge **konstant**, kaum Verjüngung |
| umgerechnet auf 96 | 4,7 px Kern |
| Enddatei (96er Basis) | **5–7 px** inkl. Kontur |
| Anteil der Kontur | 2 von 5–7 px = **30–40 %** der sichtbaren Dicke |
Drei Ursachen, alle additiv:
1. Das Modell hat den Schwanz breit und ohne Verjüngung gemalt („long tail
visible" im Prompt, kein `thin`).
2. `--outline auto` ist Pflicht und legt 1 px je Seite dazu. Bei einer 4-px-
Linie ist das prozentual viel mehr als bei einer 20-px-Fläche.
3. Ein Antialias-Saum des Rohbilds überlebt `--cutout 12` (1 px je Seite,
opak); die dunkle Schwanzunterseite verschmilzt mit der Kontur zu einem
durchgehenden Band.
[`_detail_schwanz_v1.png`](_detail_schwanz_v1.png) zeigt beide Seiten bei 1×:
Rohbild (nur downscaled) oben, Enddatei unten.
**Nicht über die Toleranz lösen:** `--cutout 20` und `26` getestet — bei 20 %
flutet die Füllung die Körpermitte (nur Kontur und Flecken bleiben), bei 26 %
bricht die Silhouette zusätzlich auf. 12 % ist bei diesem Motiv die Obergrenze.
## Lauf 2 — dünner Schwanz, spitz zulaufend
Eine Variable geändert: `the long thin tail visible, the tail tapering to a
point` statt `the long tail visible`. Gleicher Seed, gleiches Backend.
Ergebnis: Querschnitt bei 1× (volle 96er-Zeichnung) **2–5 px** statt 5–7,
sichtbare Verjüngung zur Spitze, 22 statt 27 Farben. Der Schwanz liest sich
jetzt als Rattenschwanz, nicht als Schlauch. Rohbild:
`raw/Creatures/monster_ratte_v2_fal_s271828.png`.
## Größenklasse — Ratte deutlich kleiner als der Wolf (entschieden 14.11.2026)
Die Canvas bleibt für alle Kreaturen **96×96**, die Zeichnung darin nicht.
Der Wolf ist „mittel" (bei 96 gezeichnet), die Ratte „klein" (bei **56**,
danach mit `--canvas 96x96` mittig auf den transparenten Grund). Dafür ist
`pixelize.py --canvas` neu — ohne das Flag wäre die Ratte auf 96 genauso groß
wie der Wolf (Bbox 80×56).
Gemessen (1×, Bounding-Box):
| Variante | Bbox 1× | Anteil Wolf (Fläche) |
|---|---|---|
| Wolf (mittel, 96) | 74×46 | 100 % |
| Ratte 64 | 53×39 | 61 % |
| **Ratte 56 (gewählt)** | **47×34** | **47 %** |
| Ratte 48 | 40×30 | 35 % |
Stufenvergleich: [`_groessen.png`](_groessen.png). 56 ist der Punkt, an dem
die Ratte deutlich kleiner wirkt, aber Gesicht und Beine noch Detail tragen;
bei 48 beginnt die Silhouette zu verklumpen.
## Endfassung
```bash
~/.venvs/art/bin/python art/tools/pixelize.py \
~/Dokumente/workbench_taloria/assets/raw/Creatures/monster_ratte_v2_fal_s271828.png \
-o art/final/Creatures/monster_ratte_96px.png \
--size 56x56 --canvas 96x96 --colors 32 --cutout 12 --outline auto \
--recenter --upscale 4
```
| | |
|---|---|
| Engine-Datei | `art/final/Creatures/monster_ratte_96px.png` — 384×384 (96er-Canvas, 4×) |
| Zeichnung | 56×56, Bbox 47×34 bei 1× |
| Farben | 23 sichtbar von 32 in der Palette (Wolf: 33) |
| Freisteller | Ecken-Alpha 0, deckend 10,0 % der 96er-Fläche, Kontur vorhanden |
Vergleichsblatt: [`_vergleich.png`](_vergleich.png) — Wolf und Ratte beide
384 px breit, **1:1**, gleiche Canvas.
## Abnahme nach `WORKFLOW.md` §7
- [x] Silhouette geschlossen, alle vier Beine, beide Ohren, Schwanz sichtbar
- [x] kein Schattenkeil, kein grauer Rest am Rand (Ecken-Alpha 0)
- [x] bei 1× als Ratte lesbar, nicht als Fellknäuel
- [x] Palette und Kontur passen zum Wolf (Ocker/Slate, 1-px-Kontur)
- [x] Schwanz dünn und spitz zulaufend (Lauf 2)
- [x] kleinere Größenklasse als der Wolf (56er-Zeichnung auf 96er-Canvas)
- [ ] **Schnurrhaare** zerfallen bei 1× zu freien Einzelpixeln am Maul —
legitimes Detail, liest sich aber wie Speckle
## Offen
- Schnurrhaare: im Prompt abschwächen (`no whiskers`) oder als Detail behalten
— eine Variable, sonst ist der nächste Lauf nicht auswertbar.
- Ausgabe bewusst **4×** (384 px), damit die Serie neben dem Wolf einheitlich
bleibt. Der in `docs/roadmap.md` §0.0 beschlossene Nachlauf auf 2× betrifft
alle Kreaturen gemeinsam — ein `pixelize`-Lauf, kein Neubau.
- Weitere Seeds (314159, 880417) erst, wenn die Ratte als Motiv bleiben soll.

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -0,0 +1 @@
illustrated fantasy RPG art, late-1980s role-playing game cover-illustration sensibility, flat color shapes with hard edges, limited palette of six to eight hues - muted ochre, dusty slate blue, olive green, warm cream highlights, deep umber shadow, no gradients except two-step blends, strong silhouettes, readable at small size, painterly but economical detail, full body of a grey rat in a low crouching stance, side-on three-quarter view, centered, isolated on a flat neutral mid-grey background, complete silhouette with all four legs, both ears and the long thin tail visible, the tail tapering to a point, no cast shadow, no ground plane

View file

@ -163,7 +163,8 @@ Für Kreaturen und Figuren, die im Spiel auf einem Hintergrund stehen:
```
<Style-Block A>, full body of <KREATUR>, <HALTUNG>, side-on view, centered,
isolated on a flat neutral mid-grey background, complete silhouette with all
four legs and the tail visible, no cast shadow, no ground plane
four legs and the tail visible, the tail thin and tapering to a point,
no cast shadow, no ground plane
```
Dann `--cutout 12`. Drei Dinge, die sich bewährt haben:
@ -176,8 +177,16 @@ Dann `--cutout 12`. Drei Dinge, die sich bewährt haben:
grey fur, no dark limbs" hat bei FLUX nichts geändert; ein anderer Seed hat
die Pose komplett ersetzt. 3–4 Seeds pro Motiv, dann auswählen.
Basisgröße für Kreaturen: **96×96** (Ausgabe 384×384). Für Gegner-Gruppen im
Kampfbild eher 64×64, für Bosse 128×128 — jeweils 4× Ausgabe.
Basisgröße für Kreaturen: **96×96** (Ausgabe 384×384). Die *Zeichnung* darin
hat eine Größenklasse, die Canvas nicht: klein = 56, mittel = 96 (Wolf),
groß = 128 auf eigener Canvas. Umgesetzt mit `--size 56x56 --canvas 96x96` —
nie über den Prompt („small rat" ändert bei FLUX nur die Pose, nicht den
Maßstab). Messwerte und Regel:
[`../final/Creatures/README.md`](../final/Creatures/README.md).
Zwei Prompt-Zusätze, die sich am Schwanz bewährt haben: `thin` und
`tapering to a point`. Ohne sie malt das Modell eine gleich dicke Röhre, und
die Pflicht-Kontur macht daraus bei 96 px ein breites Band.
## 9. Detail-Zusatz für B-Szenen (optional)

View file

@ -13,7 +13,7 @@ verdrahtet:
(`datum,endpoint_id,request_id,prompt,seed,lizenz`), mit `request_id` aus dem
Antwort-Header.
export FAL_KEY=hf_... # nie ins Repo
export FAL_KEY=fal_sk_... # Format key_id:key_secret, nie ins Repo
python3 art/tools/falgen.py \\
--prompt-file prompts/wolf.txt --endpoint fal-ai/flux-2/klein/9b \\
--size 1024x1024 --seed 271828 --kategorie Creatures --name monster_wolf_s271828

View file

@ -395,6 +395,10 @@ def main(argv: list[str] | None = None) -> int:
ap.add_argument("--outline-width", type=int, default=1, choices=[1, 2])
ap.add_argument("--recenter", action="store_true",
help="Inhalt mittig in dieselbe Canvas-Groesse setzen")
ap.add_argument("--canvas", type=parse_size, default=None, metavar="BREITExHOEHE",
help="Sprite-Canvas groesser als --size: der Inhalt wird bei "
"--size bearbeitet und mittig auf transparentem Grund "
"platziert (Groessenklassen, z. B. --size 64x64 --canvas 96x96)")
ap.add_argument("--flatten", type=float, default=0.0, metavar="TOL",
help="alles innerhalb TOL Prozent Abstand zur Grundfarbe auf "
"die Grundfarbe ziehen — macht den Untergrund einer "
@ -517,6 +521,18 @@ def main(argv: list[str] | None = None) -> int:
im = recenter(im)
step += "+recenter"
if args.canvas:
if im.mode != "RGBA":
raise SystemExit("--canvas braucht --cutout (Alpha-Kanal)")
cw, ch = args.canvas
if cw < im.size[0] or ch < im.size[1]:
ap.error("--canvas muss mindestens so gross wie --size sein")
canvas = Image.new("RGBA", (cw, ch), (0, 0, 0, 0))
canvas.alpha_composite(im, ((cw - im.size[0]) // 2,
(ch - im.size[1]) // 2))
im = canvas
step += f"+canvas{cw}x{ch}"
if args.flatten > 0:
rgb = im.convert("RGB")
w, h = rgb.size

View file

@ -88,6 +88,11 @@ Die Richtungsfrage ist entschieden (Hybrid, siehe
pro Bild, oder 64 px → 10×5,6 mit mehr Detail; Sprite 96 px halten oder
auf 192 verdoppeln. Eine Variable pro Probe, an einer echten Karte
entschieden — nicht am Schreibtisch.
- [x] **Kreaturen-Größen zueinander** (14.11.2026): Canvas bleibt für alle
Kreaturen 96×96, die *Zeichnung* darin hat eine Klasse — klein 56
(Ratte), mittel 96 (Wolf), groß 128 (Boss, eigene Canvas). Umgesetzt mit
`pixelize.py --canvas 96x96`; Regel und Messwerte in
[`art/final/Creatures/README.md`](../art/final/Creatures/README.md).
- [ ] **Referenzblatt** aus je 2–3 freigegebenen Assets pro Kategorie —
das ist ab dann der Maßstab, nicht der Geschmack des Tages.
- [ ] **Weltpalette** als Datei (`art/final/Terrain/_palette_tiles.png`