# Make Tileable 45° Rotated Stripes

I'm trying to get this pattern to repeat seamlessly so I can export it to a game engine. It's not too hard to get it working when the stripes are horizontal or vertical, but I'm struggling with the rotation. the stripes have to be slightly irregular, so they cannot be 100% parallel.
I'm just using a mapping node small x, large y scale and rotated around z 315°. Solutions outside of Blender are welcome, too.

EDIT: here is the node setup.

• Hi. Could you describe the way strips are randomized/irregular (as I think the solution should depend on that). Oct 16, 2020 at 11:09
• I added it via edit. Oct 16, 2020 at 11:22
• With Gimp, you can simply use the "Make Tileable" filter. Of course a Blender procedural solution would be better. Oct 16, 2020 at 12:07
• Gimp offsets the texture 50% in x and y and blurs/fades the seams. As you can see in my question this wouldn't suffice, because with such thin stripes the fade doesn't work well and also I need the stripes to be consistent, not blurred in the middle. Oct 16, 2020 at 16:00

For a 45° angle that can be done from generated texture coordinates with "X+Y distance" and the euclidian distance from the square center.

The node tree is in two parts:

• Top line calculates the main diagonals
• Bottom line adds random to it

top line

Add X + Y or 1 - X + Y to invert the direction.

Take the modulo in order to repeat regularly the diagonals.

Plug it back as X to the noise texture.

bottom line

This part is to add random variations along the diagonal.

As we want it to be symetrical, we take the distance from the center.

Then we divide the value so that it as less influence (compared to the main diagonal) for the noise texture.

And plug it as Y input of the noise texture.

noise texture

Use its scale to play on the thickness of the lines (adapt the Y influence scale in consequence).

• Absolutely awesome. Thank you for putting so much detail into your answer. Oct 16, 2020 at 15:57