Maniphest T96499

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

Assigned To
None
Authored By
kursad k (kursadk)
Mar 15 2022, 6:01 PM
Tags
  • BF Blender
  • Geometry Nodes
Subscribers
Hans Goudey (HooglyBoogly)
kursad k (kursadk)
Paul Jacques Yves GUILBERT (pguilb)
Pratik Borhade (PratikPB2123)
Richard Antalik (ISS)

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

Related Objects

Mentioned Here
T93455: Set Material Node does not reuse existing empty slot
rBfc259d4c30cb: Fix gpu.types.GPUTexture not passing data buffer to 3D textures

Event Timeline

kursad k (kursadk) created this task.Mar 15 2022, 6:01 PM
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".
Hans Goudey (HooglyBoogly) added projects: Documentation, Modifiers.
Hans Goudey (HooglyBoogly) added a subscriber: Hans Goudey (HooglyBoogly).

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.

kursad k (kursadk) added a comment.Mar 15 2022, 6:26 PM

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".
Hans Goudey (HooglyBoogly) edited projects, added Geometry Nodes; removed Modifiers, Documentation.

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.

Richard Antalik (ISS) added a subscriber: Richard Antalik (ISS).Mar 15 2022, 11:46 PM

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
Pratik Borhade (PratikPB2123) added a subscriber: Pratik Borhade (PratikPB2123).

@Hans Goudey (HooglyBoogly) hi, isn't this issue same as the other report: T93455: Set Material Node does not reuse existing empty slot

Paul Jacques Yves GUILBERT (pguilb) added a subscriber: Paul Jacques Yves GUILBERT (pguilb).Mar 18 2022, 8:13 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.

Hans Goudey (HooglyBoogly) added a comment.Mar 21 2022, 3:51 PM

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.

Hans Goudey (HooglyBoogly) closed this task as a duplicate of T93455: Set Material Node does not reuse existing empty slot.Mar 21 2022, 3:51 PM