feat: add swatch-grid example with smoke-gate coverage#15
Merged
Conversation
examples/swatch-grid/ is a runnable, dependency-light demo of the procedural-materials patterns (Principled metal+dielectric, emission, set_specular shim) that also proves the EEVEE engine-id mapping (BLENDER_EEVEE on 5.x, BLENDER_EEVEE_NEXT on 4.2-4.5) by asserting the version-correct id before rendering. It accepts --output, self-verifies the render (non-black AND distinct-region-count == material-count) and exits non-zero on failure. blender-smoke.yml now runs the SHIPPED file on both matrix builds (Cycles on the GPU-less runner; the EEVEE id is still asserted). examples/ is smoke-gated content, NOT added to validate-counts, so the README aggregate (12/6/2/17) is unchanged. ROADMAP version-theme table renumbered: v0.3.0 = Examples and demos (this), 5.2 LTS sweep moved to v0.4.0 (Current line untouched, release-owned). Verified headless on Blender 4.5.10 LTS and 5.1.1. Signed-off-by: fOuttaMyPaint <TMhospitalitystrategies@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stage 1 of 3 — promote the functional swatch-grid example, smoke-gated
Adds
examples/swatch-grid/(a runnable, dependency-light demo) and wires the shipped file into theblender-smokegate on both matrix builds.Decisions applied (defaults from the task; not contentious)
examples/is smoke-gated content but not added tovalidate-counts. The README aggregate (12 skills, 6 rules, 2 templates, 17 snippets) is unchanged.feat:cuts 0.3.0 under the gate. Renumbered the ROADMAP version-theme table (editable rows only, not the**Current:**line):v0.3.0 = Examples and demos (smoke-gated), and moved the 5.2 LTS sweep → v0.4.0. Candidate-pool heading renumbered to match.What it teaches / proves
set_specularshim (Specular→Specular IOR Level), via string socket lookups and 4-tuple colors.BLENDER_EEVEEon 5.x /BLENDER_EEVEE_NEXTon 4.2–4.5 before rendering.Smoke coverage (runs the real example file)
blender-smoke.ymladds a step that runsexamples/swatch-grid/swatch_grid.py --engine cycles --samples 8 --width 640on each build. The example self-verifies non-black AND distinct-region-count == material-count and exits non-zero on failure. Cycles (CPU) for pixels on the GPU-less runner; the EEVEE id is still asserted (frame-independent).Verified locally (Blender 4.5.10 LTS + 5.1.1)
set_specular=Specular IOR Level, 6 distinct regions, exit 0.BLENDER_EEVEE, 6 regions, exit 0.No screenshot here (Stage 3). No HDRI/network dependency (Stage 2 is the hero variant).
🤖 Generated with Claude Code