2
$\begingroup$

Hi could someone please show me a simple solution to fix this in blender 4.0?

enter image description here

enter image description here

enter image description here

Hi. As you can see when I set the material in geometry nodes its perfectly centered. But when I rotate it, it stays at the same horizontal direction. It seems gradient texture node in shading editor creates a bounding box around the object and doesn't matter if you rotate it or not it will create that bounding box and scale it down or up to keep the texture at the center of object.

Solution :

Thanks to Chris I Fixed it . I used "Store named attribute" and linked it to "separate XYZ" and "Scale" Node and finally to "UV Map" socket. In the shading editor I deleted "Mapping" and "Texture Coordinate" Nodes and added the "Attribute" node. The Problem is I don't understand the concept. Why is this working?

enter image description here enter image description here

I have two questions

1) Is this the only way to do it?

2) Why Shading editor and Geometry nodes need attributes to talk to each other?

I am really sorry for bombarding this forum with my rookie questions.

$\endgroup$
4
  • $\begingroup$ Hi. As you can see when I set the material in geometry nodes its perfectly centered. But when I rotate it, it stays at the same horizontal direction. It seems gradient texture node in shading editor creates a bounding box around the object and doesn't matter if you rotate it or not it will create that bounding box and scale it down or up to keep the texture at the center of object. $\endgroup$ Commented Jan 21 at 21:20
  • 1
    $\begingroup$ I suggest you copy that comment into your question rather than just adding it as a comment! You can edit your question with the Edit link below it, add your text, and the question will be resubmitted automatically. $\endgroup$
    – John Eason
    Commented Jan 22 at 0:00
  • $\begingroup$ next time please add blend file so we don't have to rebuild everything manually, thx. $\endgroup$
    – Chris
    Commented Jan 22 at 6:19
  • $\begingroup$ Thanks @JohnEason I did it. $\endgroup$ Commented Jan 22 at 7:19

1 Answer 1

2
$\begingroup$

just use uv coordinates instead of generated.

enter image description here

UV Sphere works e.g. with object coordinates like this:

enter image description here

$\endgroup$
2
  • $\begingroup$ Thanks Chris 👍 I tried it but it didn't work. I've deleted the group input and replaced it with a UV sphere. Is it why its not working? $\endgroup$ Commented Jan 22 at 7:03
  • 1
    $\begingroup$ i updated my answer $\endgroup$
    – Chris
    Commented Jan 28 at 14:02

You must log in to answer this question.

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