Material Tiling Issue - I want it to NOT tile, but it's tiling
3145 6 2- reelinspirations
- Member
- 177 posts
- Joined: Nov. 2015
- Offline
Hi,
OK, so I've created a grid with a few rows and columns and I also created a 2-sided material using isfrontface and a switch in a Material Shader Builder.
My problem is that it ends up tiling my image depending on how many rows/columns I have, and that's not what I want.
I need the extra geo in the rows/columns so I can bend this smoothly.
I'm at a loss as to how to fix this. I've tried all kinds of UV Projection, UV Edit, etc. nodes, but nothing seems to help.
Any ideas?
Thanks,
Jim
OK, so I've created a grid with a few rows and columns and I also created a 2-sided material using isfrontface and a switch in a Material Shader Builder.
My problem is that it ends up tiling my image depending on how many rows/columns I have, and that's not what I want.
I need the extra geo in the rows/columns so I can bend this smoothly.
I'm at a loss as to how to fix this. I've tried all kinds of UV Projection, UV Edit, etc. nodes, but nothing seems to help.
Any ideas?
Thanks,
Jim
Edited by reelinspirations - Feb. 10, 2017 15:54:46
- Enivob
- Member
- 2537 posts
- Joined: June 2008
- Offline
Try adding UVs to your grid.
Then inside your shader use a Bind to fetch that attribute into the shader network. It should come in as a vector. Route the X and Y from the VectorToFloat node to the S and T inputs of the textures.
Then inside your shader use a Bind to fetch that attribute into the shader network. It should come in as a vector. Route the X and Y from the VectorToFloat node to the S and T inputs of the textures.
Edited by Enivob - Feb. 10, 2017 16:30:57
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
- reelinspirations
- Member
- 177 posts
- Joined: Nov. 2015
- Offline
Thanks!
So, I haven't used bind at all yet, but I think what's happening is that you are accessing the uv attribute that the uvtexture SOP created, then creating a float out of it, but you only need the first 2 as it's not 3D information.
Not sure what the S and T inputs stand for, but it works and I am very thankful to you for that!
Jim
So, I haven't used bind at all yet, but I think what's happening is that you are accessing the uv attribute that the uvtexture SOP created, then creating a float out of it, but you only need the first 2 as it's not 3D information.
Not sure what the S and T inputs stand for, but it works and I am very thankful to you for that!
Jim
- reelinspirations
- Member
- 177 posts
- Joined: Nov. 2015
- Offline
- reelinspirations
- Member
- 177 posts
- Joined: Nov. 2015
- Offline
- Doudini
- Member
- 333 posts
- Joined: Oct. 2012
- Offline
- AnimGraphLab
- Member
- 51 posts
- Joined: May 2019
- Offline
A note for Googlers if you're using MTLX.
If you DON'T want imported texture (MTLX Image node) to tile:
- change "Address Mode" U and V parameters to constant. By default, it's set to periodic which means - tiling.
If you want to scale, offset, or rotate, here's my approach (MTLX Geometry Property value node fetches
If you DON'T want imported texture (MTLX Image node) to tile:
- change "Address Mode" U and V parameters to constant. By default, it's set to periodic which means - tiling.
If you want to scale, offset, or rotate, here's my approach (MTLX Geometry Property value node fetches
st
(UVs in USD) value from geomprop param): Edited by AnimGraphLab - April 15, 2024 03:21:03
3D Generalist. Transforming 2D images to 3D animations.
Socials: https://linktr.ee/AnimGraphLab [linktr.ee]
Socials: https://linktr.ee/AnimGraphLab [linktr.ee]
-
- Quick Links