fix: carry material through the GN SDF remesh with Set Material#20
Merged
Conversation
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>
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.
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_sdfnow re-applies the input material inside the tree via aGeometryNodeSetMaterialnode on theGridToMeshoutput. Verified it carries through on both builds (evaluated meshmaterials=['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)
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