1
$\begingroup$

I have a basic geo-nodes setup so that I can instance a mesh on particular verts. However, I would like the material of the mesh that I am instancing to use its position to determine what each bulb's color should be, in accordance with the color ramp (and noted by the arrow in the below image):

My attempt at a material

I already know that I can realize instances and join everything to do this. But I'm trying to accomplish this in either the material or the geo-nodes array, if possible, so that I can quickly develop stuff without needing to realize-join-etc.

Thanks in advance for any help you can offer.

$\endgroup$
2
  • $\begingroup$ You can't assign different materials to different instances of the same object, you need to realize the instances. You can do that automatically, non-destructively as in the link you provided, but you have to do it. Is where a way to pass data to material without realizing instances? $\endgroup$ Commented Jun 3, 2022 at 11:44
  • $\begingroup$ And if you want to just use coordinates to differentiate color, but you want each instance to have a solid color, then you want to use snapping like here: Stadium Seating Letters $\endgroup$ Commented Jun 3, 2022 at 11:47

1 Answer 1

1
$\begingroup$

did you try this setup?

enter image description here

i just stretched the values by the map range node.

$\endgroup$
1
  • $\begingroup$ I have replicated this node array (for the individual sphere that is being instanced). However, my results are not the same. $\endgroup$ Commented Jun 3, 2022 at 17:10

You must log in to answer this question.

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