diff --git a/README.md b/README.md index 21e3af7..fa40e8f 100644 --- a/README.md +++ b/README.md @@ -14,15 +14,16 @@ enemy. See `docs/GAME_DESIGN.md`. ## Status -Pre-alpha vertical slice (M0–M2 plus the M5 art kickoff): move/dash + autoshoot, -4 Objects of Power (levels + Altered Forms, enable/disable), real-time skill -offers on level-up (no pause), 3 enemy archetypes, corruption clock, -death screen. Floors & rituals (M3), world objects (M4), debuffs/buffs system -(M4). The look is a brutalist 3D diorama -with **sculpted low-poly Blender actors** (no more 2D standees or box kits) and corruption-keyed post -FX. A single tileable 2K concrete PBR set (generated by -`tools/blender/build_materials.py`) is shared by floor, curbs and pillars via one -triplanar shader and one merged mesh. Art is tracked in `docs/ENV_ENHANCEMENT.md`. +Pre-alpha vertical slice (M0–M2 plus the M3–M5 art/systems kickoff): move/dash + +autoshoot, 4 Objects of Power (levels + Altered Forms, enable/disable), real-time +skill offers on level-up (no pause), 3 enemy archetypes, corruption clock, +death screen. OoP rituals, scene-wide buffs/debuffs and world objects are in and +wired into the HUD. The look is a brutalist 3D diorama with **sculpted low-poly +Blender actors** (no 2D standees or box kits), procedural walk/stagger rigs, +hit/kill sparks and corruption-keyed post FX with half-res bloom. A single +tileable 2K concrete PBR set (generated by `tools/blender/build_materials.py`) is +shared by floor, curbs and pillars via one triplanar shader and one merged mesh. +Art is tracked in `docs/ENV_ENHANCEMENT.md` (S0–S15). ## Build & run @@ -57,7 +58,7 @@ raylib 6.2 is fetched automatically by CMake (FetchContent). Needs a C++23 compi - `docs/TECHNICAL.md` — stack, architecture, module map - `docs/ROADMAP.md` — milestones M0–M6 and current status - `docs/concept/` — rendered Blender concept frames (visual target for M5) -- `docs/ENV_ENHANCEMENT.md` — enhancement slices S0–S6 for the environment/actors +- `docs/ENV_ENHANCEMENT.md` — enhancement slices S0–S15 for the environment/actors - `tools/blender/` — procedural diorama + actor builders (`actor_kit.py` loft/sweep/blob/crystal helpers) and render scripts - `assets/models/` — game-ready GLB actors (guard, 3 enemies, resonance shard) and `props/` OoP set dressing - `assets/textures/concrete/` — shared seamless albedo/normal/roughness maps diff --git a/docs/ART_DIRECTION.md b/docs/ART_DIRECTION.md index c8a73d4..b618925 100644 --- a/docs/ART_DIRECTION.md +++ b/docs/ART_DIRECTION.md @@ -18,7 +18,10 @@ units are little free-standing puppets rather than printed cards: when floating and are lit by the House's fluorescent key. - **Actors are authored in Blender** (`tools/blender/build_enemies.py`), exported as GLB to `assets/models/` and lit in-engine by `assets/shaders/actor.{vs,fs}`. - `UpdateModelAnimation` remains the upgrade path for animated bosses. + Walk/stagger/blob/crystal motion is done in the vertex shader from local + vertex position (one draw call per actor, no skeleton); `UpdateModelAnimation` + remains the upgrade path for animated bosses. Props live in + `assets/models/props/` and get restrained idle motion in the presenter. ## Palette @@ -32,8 +35,10 @@ units are little free-standing puppets rather than printed cards: ## Camera -Fixed tactical three-quarter view following the guard; long-ish lens (fovy ~45 -grey-box, ~30 target feel). Slight screen shake on hits (presentation-only RNG). +Fixed tactical three-quarter view following the guard: fovy 48, camera height 18 +and forward offset 14. Horde awareness beats close-up detail. Slight screen +shake on hits (presentation-only RNG); the camera target is clamped a few metres +inside the curb so the play area never shows the unlit floor beyond the wall. ## UI as bureaucracy @@ -51,14 +56,17 @@ real time: - Environment: fluorescent lights fail sector by sector, red geometry floats through walls, signage turns to chanting glyphs. - Audio: chanting/moan layers mix in with `c`; radio chatter gets desperate. -- Standee idle animations jitter harder; the guard's breathing becomes audible. +- Actor shader jitter grows on Hiss/Mold units; the guard's breathing becomes + audible; hit/kill sparks and tier-up bursts light the room. - **Tier-up events are theatrical:** red flash, radio static, a Board line in yellow. ## Post FX -Render to `RenderTexture`, full-screen shaders: VHS scanlines/noise, chromatic -aberration on damage, red resonance pulses. Cheap in raylib, huge style payoff. -(`assets/shaders/`) +Render to `RenderTexture`, then a half-res bright-pass + separable blur +(`bloom_bright.fs` / `bloom_blur.fs`), then a full-screen grade in `post_fx.fs`: +VHS scanlines/noise, restrained chromatic aberration (kept low so the HUD stays +legible), red resonance pulses, teal-shadow/warm-highlight split and vignette. +Cheap in raylib, huge style payoff. (`assets/shaders/`) ## Fonts (OFL-licensed only) diff --git a/docs/TECHNICAL.md b/docs/TECHNICAL.md index be93b00..79f36ef 100644 --- a/docs/TECHNICAL.md +++ b/docs/TECHNICAL.md @@ -8,7 +8,8 @@ 6.2 is the current release (Oct 2026) and fixed CMake-4.x build issues; builds GLFW from source (X11/GL dev headers required). raylib 6.x adds the Image/Draw API alignment (procedural textures) and skeletal model animation (`UpdateModelAnimation`, - GLTF/IQM/M3D) — the per-unit upgrade path from standees to animated bosses. + GLTF/IQM/M3D) — an upgrade path for animated bosses; current actors use + shader-side procedural rigs instead, which keep one draw call per actor. - No other third-party deps until they earn their place. Data lives in C++ tables (JSON only when content volume demands it). @@ -16,10 +17,14 @@ ``` CMakeLists.txt -assets/{sprites,env,fonts,audio,shaders} -docs/ # this is the design source of truth +assets/models/ # sculpted GLB actors + props/ OoP set dressing +assets/shaders/ # actor, concrete, aura, bloom_*, post_fx +assets/textures/ # concrete/ PBR set, actor/ lighting ramp LUT +assets/blender/ # source .blend scenes +tools/blender/ # actor_kit, build_enemies/props/materials/scene, build_lut +docs/ # this is the design source of truth src/ - main.cpp # CLI (--seed N), window, fixed-tick loop + main.cpp # CLI (--seed N), window, fixed-tick loop, bloom render targets core/ # NO raylib includes here. math, rng (PCG32), events game/ # NO raylib includes here. simulation input.hpp # InputState contract (filled by main from raylib) @@ -28,9 +33,14 @@ src/ enemies.* # archetypes, AI steering + separation, contact damage weapons.* # auto-fire, projectiles, targeting pickups.* # XP shards, magnet + buffs.* # scene-wide buffs/debuffs (ECS-like) + ritual.* # OoP ritual quest flow game.* # Game class: state machine, fixed-tick update, level-ups render/ # raylib lives here only (+ main.cpp) - presenter.* # 3D diorama camera, billboards, blob shadows, world bars + presenter.* # 3D diorama camera, actor draws, sparks, blob shadows, bars + models.* # GLB bank + gradient-ramp actor shader + limb rig uniforms + concrete.* # one merged triplanar PBR mesh for floor/curbs/pillars + aura.* # reusable SDF ground waves for tier-ups / bosses ui.* # HUD, Board Directive cards, death screen ``` @@ -55,16 +65,23 @@ src/ ## Rendering pipeline (hybrid) -- `Camera3D` three-quarter view following the player. -- Ground slab + `DrawGrid` + procedural box pillars/walls (brutalist kit). -- **Blob shadows** (flattened cylinders) — no shadow maps in raylib core; blob - shadows *reinforce* the standee look, not a compromise. -- **2D standees:** `DrawBillboard` with a procedurally generated soft-disc texture - (`GenImageGradientRadial`), tinted per entity; manual back-to-front sort by camera - distance (raylib billboards need explicit draw order). -- **UI anchoring:** `GetWorldToScreen` for health bars over entities. -- Post FX (M5): draw to `RenderTexture`, full-screen shaders (VHS, chromatic - aberration) with uniforms keyed to the corruption coefficient. +- `Camera3D` three-quarter view (fovy 48) following the player, target clamped + inside the arena curb so the unlit outer floor never dominates the frame. +- **One merged triplanar concrete mesh** (`concrete.*`) for floor, curbs, pillars + and door frame, sharing one tileable 2K PBR set from `build_materials.py`. +- **Sculpted GLB actors** (`models.*`, `assets/models/`) lit by a gradient-ramp + shader with faction rims and a procedural limb rig (`uRigMode` 1 humanoid, + 2 blob, 3 crystal) — no skeletons, no extra draw calls. Hiss actors also get a + cheap expanded-backface ink outline. +- **Blob shadows** (flattened cylinders) — no shadow maps in raylib core; they + ground the puppets without cost. +- **Sparks / glows / world objects** are camera-facing billboards using one + procedural glow sprite; damage numbers and health bars use `GetWorldToScreen`. +- Post FX: scene into a full-res `RenderTexture`, half-res bright pass + separable + blur for bloom, then `post_fx.fs` (VHS noise, mild aberration, red Hiss tint, + teal/warm grade, vignette) keyed to the corruption coefficient. HUD is drawn + into the same target so post FX applies to it too — aberration is kept low to + preserve legibility. ## Conventions @@ -84,4 +101,5 @@ src/ - `--bot` kiting autopilot: seeks shards, repels enemies, dashes, auto-picks the first Directive (implemented — validation tool and the seed of the M6 balance-bot). +- `--no-damage` stress mode for horde/pacing captures (implemented). - `--headless --bot-runs N` pacing telemetry (planned M6).