Assign material to vertex group in geometry nodes?

Hi folks,

Please check the video linked below at around 3:00

In the vid you see him apply a material to a vertex group.

I guess something changed with geometry nodes, because this is no longer how it works.

Any ideas how to achieve this in the present carnation of geo-nodes?

Thanks!

Ok, to semi answer my question, check the the film linked below at 3:27

Problem is, it appears to apply the material to all faces that share a vertex (which is in the vertex group).

But imagine i want to apply a material to just one face, how would you do that? Maybe face groups? But these don’t show up in the selection box shown in the vid at 4:34

Any ideas?

Hi there!
Sort of like this?

UPD. Actually, this being vertex groups, they would still have some quirks: if you try to assign two “green” faces with a third “red” face in the middle - it would still count that face as “green” as well

1 Like

Sorry, forgot to say “thanks for this!” :pray:

Hi @stray
I tried with this solution in v3.3. It does not work …
I have vertex group “bulb”

I mute the material node to shows “projection” material apply to body well.

When unmute material node, the whole body mesh all goes “emission white” (bulb material) instead of expecting it to apply only to the vertex group “Bulb” with “emission white”.

I see an exclaimation mark on material that says “point cloud only support a single material” … I tried on v3.4 same error. Is this a bug or feature for now?

Hi there! (sorry, if the reply has become irrelevant - I was offline all this time).

Judging from the error message, it’s not a bug but a limitation of Point Cloud object :person_shrugging: I suspect Blender Doc might have more information on the subject.

I don’t know anything about point clouds, but maybe you can use Vertex Group as a mask to use inside the single Material - to control color/emission at particular areas.