0
$\begingroup$

I have a geometry nodes sphere with several objects instanced on its surface in a spiral. I want to shade a circle on the surface of the sphere at the location of each instance. How can I get the positions of the instances into the shader and use them to shade the sphere?

Blend file download

geometry nodes shader

$\endgroup$
2
  • $\begingroup$ It looks like the geometry node setup Ico Sphere is missing a Set Material-node. $\endgroup$ Commented Feb 25 at 22:16
  • $\begingroup$ I'm not interested in shading the ico spheres, I want to shade the large UV sphere based on the position of the ico spheres. I did go ahead and add the Set Material node. $\endgroup$
    – stonks3141
    Commented Feb 25 at 22:29

1 Answer 1

3
$\begingroup$

You need to realize instances and use a geometry proximity node to get the distance from the sphere of each icoshphere. And don't forget to set the material too

enter image description here

Since the attributes are geometry based, you'll need to subdivide the sphere a couple of times to get higher res circles. Using a rounded cube can help topology wise

enter image description here

$\endgroup$
2
  • $\begingroup$ Thanks, this was what I needed. I actually have an irregularly shaped instanced object (the icosphere in the example), so I had to take the "Points" input to the "Instance on Points" node and use that as the target geometry for "Geometry Proximity" in order to have a circular shaded area for a non-circular object. $\endgroup$
    – stonks3141
    Commented Feb 26 at 0:57
  • $\begingroup$ On second thought, that method removes the need to realize instances as well. $\endgroup$
    – stonks3141
    Commented Feb 26 at 1:03

You must log in to answer this question.

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