Skip to content

fix: carry material through the GN SDF remesh with Set Material#20

Merged
TMHSDigital merged 1 commit into
mainfrom
fix/gn-sdf-material
Jun 20, 2026
Merged

fix: carry material through the GN SDF remesh with Set Material#20
TMHSDigital merged 1 commit into
mainfrom
fix/gn-sdf-material

Conversation

@TMHSDigital

Copy link
Copy Markdown
Owner

Phase 2 of 5 — fix the gn-sdf-remesh material drop

Geometry Nodes-generated geometry carries no material, so the input mesh's material was dropped on remesh and the result rendered default white — a real user gotcha, not just aesthetics.

Fix (GN-native, carries through): build_remesh_via_sdf now re-applies the input material inside the tree via a GeometryNodeSetMaterial node on the GridToMesh output. Verified it carries through on both builds (evaluated mesh materials=['Clay']). Added a material-present assertion (the source material must appear on the evaluated mesh) alongside the existing vertex-delta check, and a "Materials gotcha" note in the README.

Verified (check-only, both builds)

5.1.1:  link_valid=True base_vcount=576 eval_vcount=3256 materials=['Clay']  → OK
4.5.10: link_valid=True base_vcount=576 eval_vcount=3400 materials=['Clay']  → OK

The existing smoke step (gn-sdf-remesh check-only) now also exercises the material assertion — no workflow change needed.

fix: → cuts a patch (0.4.1). Roadmap decoupled in #19, so no renumber.

🤖 Generated with Claude Code

GN-generated geometry carries no material, so the input mesh's material was dropped on remesh and the result rendered default white -- a real user gotcha. build_remesh_via_sdf now re-applies the input material inside the tree via a GeometryNodeSetMaterial node on the GridToMesh output (the GN-native fix; verified to carry through on both builds: eval mesh materials=['Clay']). Added a material-present assertion (the source material must appear on the evaluated mesh) alongside the existing vertex-delta check, and a Materials gotcha note in the README. Verified headless on Blender 4.5.10 LTS and 5.1.1.

Signed-off-by: fOuttaMyPaint <TMhospitalitystrategies@gmail.com>
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jun 20, 2026
@TMHSDigital TMHSDigital merged commit 8b05113 into main Jun 20, 2026
8 checks passed
@TMHSDigital TMHSDigital deleted the fix/gn-sdf-material branch June 20, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant