0
$\begingroup$

I have a mesh, (in this example 4 planes joined together), each plane got a different material:

reference image

Is there an automatic way of telling geometry nodes to apply the same material as it was before without manually selecting and telling which material is assigned? Something like how "From Instancer" on Texture Coordinate worked before on an Image Texture which automatically changes the particle colour?

reference image

$\endgroup$

2 Answers 2

0
$\begingroup$

This is how you can do this setup:

enter image description here

I used Transfer attribute to get material index and set it into set material index

Instances should be realized to have an ability to set different materials for each object.

Capture attribute sets index per instance instead of per face.

Also, if you have an instance prepared with the same materials as the plane, you can simplify set-up like this:

enter image description here

$\endgroup$
1
  • $\begingroup$ oh wow! so that's how the material index works, thanks so much! I learned a lot from this :D $\endgroup$
    – Sophia
    Commented Apr 28, 2022 at 8:52
0
$\begingroup$

Managing UVs and GeoNodes is notoriously kind of hard right now. Bu i know that the channel Deafult Cube had a workaround for this. But i cand find the video right now, so if you search for it for it, maybe youll find the answer.

$\endgroup$
1
  • $\begingroup$ I've been watching his vids along with other blender channels, so far haven't seen him tackle this. But it's all good, Crantisz got the answer I was looking for :D Thanks! $\endgroup$
    – Sophia
    Commented Apr 28, 2022 at 8:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .