feat: add high-to-low tangent normal bake skill, snippets, and example - #140
Open
TMHSDigital wants to merge 1 commit into
Open
feat: add high-to-low tangent normal bake skill, snippets, and example#140TMHSDigital wants to merge 1 commit into
TMHSDigital wants to merge 1 commit into
Conversation
Cycles cage-bake is stochastic and CI is CPU-only, so the witness uses tolerance gates and a --flat-source falsifier rather than byte-identity. Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.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.
Summary
bake-high-to-low, three snippets, and smoke-gated examplebake-normal-high-to-low(closes the baking sub-track; UV/atlas and template integration stay unpinned).DECIMATE COLLAPSELOD is measurably not flat; the same bake from an undisplaced source is.--flat-sourceis the falsifier.RNA (live-run-proven)
bpy.ops.object.bake.get_rna_type()dumped on all three local binaries: 22 properties, identical identifiers and enums. No shim. Pass type istype='NORMAL', notbake_type.cage_objectis a string name.Verified docs:
Bundled MCP RST for
bpy.ops.object.bakematches the dump (type,use_selected_to_active,cage_extrusion,use_cage,cage_object,normal_space='TANGENT',margin,margin_type). Inspection of the RST plus live dump.Tolerances (live-run-proven)
Euclidean distance from flat tangent
(0.5, 0.5, 1.0); a pixel is deviant if distance> 0.04.>= 0.400.72110.00>= 0.050.09356<= 0.050.0000<= 0.030.00277>= 0.300.7211--flat-sourcewould have no power--flat-sourcemeasuredfrac=0.0000 mad=0.00277and cannot passfrac >= 0.40. Discriminating power is not a tuning accident.--flat-sourcefalsifier (live-run-proven)Same check path, undisplaced high, still asserts the detail gates. All three binaries:
4.5.11, 5.1.2, 5.2.1 all exit 5.
Added smoke wall-clock (live-run-proven)
Check-only (what CI runs). Stopwatch around
blender.exe --background --python …(includes Blender startup):.scratch/blender-4.5.11-windows-x64/blender.exe4db51e9d1e1e.scratch/blender-5.1.2-windows-x64/blender.exeec6e62d40fa9.scratch/blender-5.2.1-windows-x64/blender.exe9e2066aef7efNone of the three grows a smoke job by ~90 s. None approaches three minutes. Bake is 256×256, 1 sample, CPU, no denoiser.
--outputframing (not CI): fillx=0.809/y=0.667on 4.5.11, 5.1.2, and 5.2.1; exit 0.Local binaries
E:\Blender-Developer-Tools\.scratch\blender-4.5.11-windows-x64\blender.exe→ 4.5.11 LTS (4db51e9d1e1e)E:\Blender-Developer-Tools\.scratch\blender-5.1.2-windows-x64\blender.exe→ 5.1.2 (ec6e62d40fa9)E:\Blender-Developer-Tools\.scratch\blender-5.2.1-windows-x64\blender.exe→ 5.2.1 LTS (9e2066aef7ef)Snippets
Three files, not a fold:
save_baked_image.pyexists becauseImage.save()on aGENERATEDbake drops the buffer (image-pixels-testcard). That trap is its own contract.Contact sheet (live-run-proven pixels, inspection verdict)
Committed:
docs/gallery/contact-sheets/bake-normal-high-to-low-contact-sheet.webpvs pinnedarmature-bend,damped-track-aim,bmesh-gear.x=0.809in band(128,128,255)is the flat color). Stage around it stays dark.Not an asset-kit example; no asset-sheet.
Evidence labels
--flat-sourceexit 5gallery_framingon--outputall threedocs/gallery/index.htmlanddocs/gallery/bake-normal-high-to-low/index.htmlafterbuild_gallery.pyneeds-5.1is applied (this PR). Local 5.1.2 is supporting, not a substitute.Out of scope
UV transfer / atlas (Phase 7).
templates/ai-asset-pipeline-template/(Phase 8). Agent bridge.#131,#138,LICENSE,VERSION,CHANGELOG.md,release.yml, smoke matrix/cron/push, existing 55 examples, any exit-code renumber.Test plan
needs-5.1applied via REST; auto-label does not add it)--output)