0
$\begingroup$

enter image description here

I'm looking for a similar effect found here:

GN: How to pass an instancer's localized texture color to its instances?

Instead of an image texture, I'd like to use a procedural texture that can be edited.

$\endgroup$
3
  • $\begingroup$ There is a setup in the answer where an image texture is used for the color... why don't you just place the procedural texture instead of the image texture? There is nothing in this setup that explicitly requires an image. $\endgroup$ Commented Mar 16, 2023 at 17:50
  • $\begingroup$ How do you place a procedural texture into geometry nodes? $\endgroup$
    – Luke
    Commented Mar 16, 2023 at 18:29
  • $\begingroup$ Like in the Shader Editor... press Shift + A > Add > Texture > Noise Texture. If you don't know how to add nodes in GN, how did you actually planned to do something like that? Since you stated "Using geometry nodes" in the question's title and it didn't seem as if you were wondering how the image texture got in the other solution's nodetree... $\endgroup$ Commented Mar 16, 2023 at 19:15

1 Answer 1

1
$\begingroup$

Possible solution (but there's probably a more elegant one):

As long as you're fine with not using the same material for the plane and the instances, you don't really need to change anything in your geometry nodes.

For your plane, set the material like it is in your screenshot. For the instances, simply copy that material, but add an Object Info node to sample the noise texture at the position of the instance: enter image description here

You can also encapsulate the Noise Texture, Color Ramp and BSDF into a node group that can be used by your plane and the instances, so they always use the same texture.

$\endgroup$
1
  • 1
    $\begingroup$ Thanks! This works! I can't believe I didn't think of it. I was too fixated on the other solution to see it. $\endgroup$
    – Luke
    Commented Mar 16, 2023 at 20:11

You must log in to answer this question.

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