1
$\begingroup$

I tried researching for question How to apply material correctly to such kind of shape?.

So i made this:

enter image description here

which looks like this in material preview:

enter image description here

but in rendered view my textures are "gone"!? what can cause that?

enter image description here

blend file:

$\endgroup$
8
  • $\begingroup$ Hello, in Rendered mode it will reflect the image called je_gray_02_4k.exr but you haven't shared it $\endgroup$
    – moonboots
    Commented Sep 8, 2022 at 10:55
  • $\begingroup$ oh sorry, will correct that $\endgroup$
    – Chris
    Commented Sep 8, 2022 at 11:46
  • $\begingroup$ blend file updated $\endgroup$
    – Chris
    Commented Sep 8, 2022 at 11:53
  • $\begingroup$ Possibly a bug with GN? I added a new cylinder and modeled it directly then added your material to it and the textures appear fine. Also setting to Eevee the textures are fine with your models $\endgroup$
    – Psyonic
    Commented Sep 8, 2022 at 12:10
  • 2
    $\begingroup$ @Psyonic Not really a bug, I'm working on the answer. $\endgroup$ Commented Sep 8, 2022 at 12:11

1 Answer 1

1
$\begingroup$

The problem is the attribute name you are using. You have a Vector output in the Geometry Nodes modifier that's called "uv", and that's the name you are using in the Attribute node in the Shader Editor. I checked if there is some spelling error or anything but it's all correct.

attribute uv

You also have a Texture Coordinate node in the material. I checked all outputs and all of them showed the texture (incorrectly mapped, but visible) excluding one: the UV output. It actually looks like before with the attribute.

UV coordinate

So I got the idea that maybe the Cycles render engine uses the attribute uv internally for the UV map? The Material Preview works with Eevee, no problems there as it seems. I have no idea about the details inside Blender, but I just made a little test and decided to rename the attribute to "test" in both the modifier and the material and then it worked (in the object to the left I changed it before making screenshots):

renamed attribute

$\endgroup$
4
  • $\begingroup$ @Chris It looks like it might be best when using attributes (and you can't find a reason it doesn't work) to not give them meaningful names making sense, but totally crazy and absolutely unrelated names to ensure they are not colliding with some other attributes :D $\endgroup$ Commented Sep 8, 2022 at 12:29
  • $\begingroup$ wow, chapeau for finding that!!! $\endgroup$
    – Chris
    Commented Sep 8, 2022 at 13:09
  • $\begingroup$ @Chris ...but I'm really curious what the real reason is. Is Cycles actually grabbing the UV map when you use the attribute name? And if so, why doesn't Eevee mess it up? Why can Eevee distinct between them? $\endgroup$ Commented Sep 8, 2022 at 13:16
  • $\begingroup$ I have no clue…💁🏻‍♂️ $\endgroup$
    – Chris
    Commented Sep 8, 2022 at 13:26

You must log in to answer this question.

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