# Can you repeat a portion of a texture across a face?

I'm currently trying to texture a series of walls, all different lengths, but wish to use the same portion of a texture to cover them all. I know that I can split up the walls into roughly equal panels, or spread out the wall UVs to various sizes until they repeat as necessary, but my goal is to keep the polycount low, as well as keep the texture usage to a minimum. My goal is to dedicate a strip of my main texture (say 128x1024 of a 1024^2 texture) to a repeating wall panel, and then tile that across my walls using different materials. Other portions of the texture will cover windows, floor tiles (which similarly need to repeat, though in two directions), posters, and fake room renders I'll be scribbling in myself.

tl;dr:

Is it possible to repeat just a portion of a texture map across a large face?

You can use some math nodes and keep simple proportions for you texture parts (for instance working with 1/2 or 1/4... easy to multiply or divide).

Here is an example :

Each face is assigned to a material composed of nodes like these ones (this material is for the red triangles) :

1. Amount of repeats
2. Shift U as the triangle starts at U = 0.5
3. Don't shift V as the triangle starts at V = 0
4. Modulos : here the texture is divided in 2 (so modulo = 1/2)
5. Shift back U to 0.5
6. Shift back V (but V starts at 0)

For the blue square, you may invert the roles for U and V.

For the green circle, just don't shift anything.

To reach the upper right quadrant, shift both U and V 0.5.

• Great, this helps immensely. It's going to take some twiddling with numbers to get things exactly like I need it on every wall, but I can already confirm it's tiling properly across two of them. Aug 7, 2016 at 19:20
• Just learning the node system at the moment. Cycles too, apparently, since I couldn't find the nodes you were using right off. I managed to group everything up so it makes more sense to me. I also apparently fail at basic stackexchange inline image linking. Aug 8, 2016 at 2:24
• @Feynt, most of the nodes to do that are "math" nodes. It self is found in "converters". Aug 8, 2016 at 7:04
• Something I've noticed sadly is that when I repeat the texture I get odd lines to either side of my repeats. I've done the math and my normal settings are exactly where the portion of the texture should begin and end, but even if I fudge it and go inside of those boundaries (so using a space narrower than the 1/2 I'm using now) I still get the seams. Nodes modification for grouping Seam issue Aug 8, 2016 at 17:08
• @Feynt, can you upload the corresponding file (at least a mesh, the material and a texture) ? Aug 8, 2016 at 17:12