switching textures with attributes

   2702   2   1
User Avatar
Member
121 posts
Joined: July 2008
Offline
Hey, I'm trying to switch some textures with an attribute.
But I cannot seem to get the shader to work.
Any tips somebody?

Attachments:
textureTest.zip (1.9 MB)

Available for new projects
User Avatar
Member
333 posts
Joined: Oct. 2012
Offline
hi,
hope i understand what you are trying to do correct.

below the attributeCreate you can add 2 groups for each leaf and:
group by expression: $PAIR == 0
group2 by expression: $PAIR == 1

then the material dont add it on the geometry but instead add a material sop below the 2 groups. there you can add your 2 materials to each group and on one you can overwrite the attribute to your “opimg/comp1/OUT_LEAF2”. you wont need a second baseColorMap attribute in the shader itself.

i have uploaded a file with the correction though i switched the paths in the img's so you might need to change them back in the composite.

Attachments:
attribTest_v001_1.hipnc (385.4 KB)

User Avatar
Member
121 posts
Joined: July 2008
Offline
Hey thx, that's perfect like you did it and I also know how to do it that way.
But I was hoping that someone could tell me what I'm doing wrong in the shader.

Cheers
Available for new projects
  • Quick Links