I’m trying to setup something like this weaving pattern. The mask isn’t that hard, but I’m having issues getting useful coordinates out of it so that I can easily apply texturing effects based on these coordinates. Although I have managed, I think I’m overcomplicating things. Surely there must be smarter ways to achieve what I have here (big png’s no longer allowed?):
The spaghetti node code on the left is what creates the coordinates; basically a 4x4 grid with a “semi-unique” coordinate system (UV range 0-1 for each slot, although I’m also doing a mirror if applicable, so instead of 0-1 I’m actually coming out with 0-1-0), then adding them all together before merging the x and y.
But yeah, it looks ridonculous. I did find a renderman approach, but I’m not good at reading code, but the for loops kinda threw me away anyway from looking deeper into it.
So, is there a better way to achieve this pattern (coordinates), maybe a more unified approach to achieving any woven pattern?