setup und demo version

This commit is contained in:
2026-11-25 10:14:33 +01:00
parent ca9bde64f7
commit 685bf4cd00
29 changed files with 383 additions and 3 deletions

Binary file not shown.

Binary file not shown.

11
sprite-generator/audio.py Normal file
View File

@@ -0,0 +1,11 @@
"""Musik und Effekte für generate_audio.py (Stable Audio). Mindestlänge 1 s.
CLIPS = [(name, prompt, sekunden, negative)]
"""
NEG_MUSIC = "vocals, singing, speech, harsh noise, distortion, abrupt ending, low quality"
NEG_SFX = "music, melody, vocals, speech, reverb tail, background ambience, low quality"
CLIPS = [
("sfx_click", "short soft UI button click", 1, NEG_SFX),
("music_menu", "calm looping menu music, light synth pads", 30, NEG_MUSIC),
]

View File

@@ -0,0 +1,38 @@
"""Projekt-Konfiguration für die ComfyGen-Werkzeuge. Diesen Ordner (template/) in das neue
Projekt kopieren, z. B. als <Projekt>\\sprite-generator\\, und die Pfade unten anpassen."""
import os
HERE = os.path.dirname(os.path.abspath(__file__))
# ComfyUI-Server (lokal).
HOST = "http://127.0.0.1:8188"
# Workflow aus ComfyGen\workflows\ – Flux.2 Klein ist der empfohlene Standard.
WORKFLOW_FILE = "Text to Image - Flux Klein.json"
UNET_NAME = "flux-2-klein-4b-fp8.safetensors"
CLIP_NAME = "qwen_3_4b.safetensors"
CLIP_TYPE = "flux2"
VAE_NAME = "flux2-vae.safetensors"
CHECKPOINT = "" # nur für workflows/default.json (SDXL o. ä.)
# Roh-Ergebnisse (nicht in git).
OUTPUT_DIR = os.path.join(HERE, "output")
# Wird genutzt, wenn ein Prompt keinen eigenen Negativ-Prompt hat.
NEGATIVE_PROMPT = "text, watermark, signature, blurry, low quality, extra limbs"
# Ziel für adopt*.py (schreibt nach ASSETS_DIR\Sprites, \Audio, \Video).
PROJECT_ROOT = os.path.join(HERE, "..")
ASSETS_DIR = os.path.join(PROJECT_ROOT, "Assets")
# Listen-Module in diesem Ordner.
PROMPTS_MODULE = "prompts"
AUDIO_MODULE = "audio"
# Optional, nur wenn gebraucht:
# AUDIO_SUBDIR = "audio"
# VIDEO_MODULE = "video"
# PORTRAITS_MODULE = "portraits"
# VINTAGE_MODULE = "vintage"
# VOICE_MODULE = "voice"
# LANG_DIR = os.path.join(PROJECT_ROOT, "Languages")
# CARDS_FILE = os.path.join(PROJECT_ROOT, "cards.json")

31
sprite-generator/gen.cmd Normal file
View File

@@ -0,0 +1,31 @@
@echo off
rem Starts a tool from D:\Oculusquest\Projekt\_Tools\ComfyGen for this project.
rem gen list the tools
rem gen generate <name> image from prompts.py
rem gen adopt <name> cut out + copy into ASSETS_DIR\Sprites
rem gen generate_audio <name> music / sfx from the audio list
set TOOLS=D:\Oculusquest\Projekt\_Tools\ComfyGen
rem shift below also moves %0, so remember this folder first
set HERE=%~dp0
set SCRIPT=%~1
if "%SCRIPT%"=="" (
echo Tools:& dir /b "%TOOLS%\*.py" | findstr /v /b "_"
exit /b 0
)
shift
set PY=py -3.12
if /i "%SCRIPT%"=="generate_voice" set PY="%TOOLS%\.venv-tts\Scripts\python.exe"
if /i "%SCRIPT%"=="make_voice_refs" set PY="%TOOLS%\.venv-tts\Scripts\python.exe"
set PYTHONIOENCODING=utf-8
pushd "%HERE%"
set ARGS=
:collect
if "%~1"=="" goto run
set ARGS=%ARGS% %1
shift
goto collect
:run
%PY% "%TOOLS%\%SCRIPT%.py"%ARGS%
set RC=%ERRORLEVEL%
popd
exit /b %RC%

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@@ -0,0 +1,27 @@
"""Was generate.py erzeugt.
PROMPTS = [(name, positive)] oder [(name, positive, negative)]
SIZES = {name: (breite, hoehe)} optional, sonst Groesse des Workflows (1024x1024)
"""
_SCENE = (
"clean modern minimal tech illustration, isometric, deep dark navy background, "
"glowing indigo #6366f1 and violet accents, soft volumetric studio light, "
"highly detailed, no text, no letters, no words, no logo, no watermark"
)
_NEG = "text, letters, words, logo, watermark, ui mockup, signature, blurry, lowres"
PROMPTS = [
("itch_keyart",
"wide isometric illustration of a tidy developer workspace, floating glass "
"dashboard panels with kanban cards, project folder icons, charts and a git "
"branch graph, calm empty space in the upper left, " + _SCENE, _NEG),
("itch_cover",
"isometric stack of glowing project folders and floating kanban cards above a "
"dark desk, central dashboard panel with charts and a git icon, calm space in "
"the top third, " + _SCENE, _NEG),
]
SIZES = {
"itch_keyart": (1920, 1088),
"itch_cover": (1264, 1008),
}