Page MenuHome

Remesh modifier after a Geometry Nodes modifier destroys the material
Closed, DuplicatePublic

Description

System Information
Operating system: Win 10
Graphics card:

Blender Version
Broken: 3.2.0 fc259d4c30cb

Short description of error
Adding a Remesh modifier destorys the materials either coming from a geonodes material assigment or from the object's own material assignments, makes itt impossible to assign a material.

Load the attached .blend file
Enable and disable the remesh modifier to see what happens with the material

Event Timeline

Hans Goudey (HooglyBoogly) changed the task status from Needs Triage to Confirmed.Mar 15 2022, 6:10 PM
Hans Goudey (HooglyBoogly) changed the subtype of this task from "Report" to "Bug".

Thanks for the report. This is basically a performance tradeoff with the remesh modifier. It doesn't transfer attributes to its result.
However, this isn't noted at all in the documentation, so I'll call this a bug that can be fixed by adding that information to the manual page.

This seems to be an issue if the materials applied to at the data block rather than the object level.

Hans Goudey (HooglyBoogly) changed the task status from Confirmed to Needs Triage.Mar 15 2022, 10:09 PM
Hans Goudey (HooglyBoogly) changed the subtype of this task from "Bug" to "Report".

Hmm, yeah, I think I jumped to that conclusion a bit too fast. This would work if the remesh node transferred material indices, but there might be another reason it doesn't work too.

From what I can see, after geometry nodes, there is no material assigned to mesh. Set Material node does assign material to faces. Therefore remesh modifier does not have any material to transfer to new mesh.

So I think the original conclusion was correct.

Pratik Borhade (PratikPB2123) changed the task status from Needs Triage to Needs Information from Developers.Mar 18 2022, 12:03 PM

I don't know if it's helping, but on the "user" side of things a quick workaround seems to be adding a second geometry node after the remesh to set the material.

Oh yes, it is! The "Set Material" node adds the material and uses material_index=1. The remesh modifier doesn't transfer material_index, so the result uses the default value of 0.