How to Repeat One Region of a Blender Texture Atlas Without Sampling Adjacent Regions
To repeat one rectangular region of a Blender texture atlas, wrap your UV coordinates into a local 0–1 range before scaling and offsetting them into that region. Use this node order: UV → Multiply → Fraction → Multiply → Add → Image Texture. To prevent neighboring colors from bleeding into the result, also address texture filtering with suitable padding, an inset, or a separate tile image.
This workflow is for a Blender material that needs one atlas tile repeated across a surface—for example, a dotted ceramic pattern across a rectangular planter. The worked example uses an illustrative atlas and distinguishes a correct coordinate setup from a clean filtered result.
Why does Image Texture Repeat show neighboring atlas regions?
The Image Texture node’s Repeat setting repeats the entire image. It does not recognize rectangles inside an atlas as independent textures. Blender defines extension behavior at the image’s outer coordinate bounds, so increasing UV scale alone sends the lookup through other atlas regions. Changing extension to Extend or Clip also acts on the whole image. Blender Manual: Image Texture Node
There are two separate problems to solve. Coordinate selection determines where the lookup lands. Filtering determines which surrounding pixels contribute to its color. A coordinate can sit inside the chosen rectangle while a filter still includes pixels outside it. NVIDIA’s discussion of atlas filtering explains why tile borders need special handling. GPU Gems 2: Tile-Based Texture Mapping
First make the selected pattern repeat correctly. Then inspect its borders using the interpolation, render engine, and camera distance intended for the finished scene.
How do you find the selected region’s coordinates?
For this example, imagine a 1024 × 1024 atlas arranged as four columns and four rows. Each unpadded tile is 256 × 256 pixels. The planter’s dotted ceramic tile is in the second column from the left and the third row from the bottom.
Its normalized origin is (0.25, 0.50), and its normalized size is (0.25, 0.25). The origin identifies the lower-left corner; the size identifies the rectangle’s width and height. These are illustrative values to replace with your atlas measurements.
| Quantity | Example value | Meaning |
|---|---|---|
| Atlas dimensions | 1024 × 1024 |
Full image size in pixels |
| Tile origin | (256, 512) |
Lower-left pixel boundary |
| Tile dimensions | 256 × 256 |
Selected content rectangle |
| Normalized origin | (0.25, 0.50) |
Pixel origin divided by atlas dimensions |
| Normalized size | (0.25, 0.25) |
Tile dimensions divided by atlas dimensions |
| Repeat count | (4, 2) |
Four copies across, two vertically |
For an irregular atlas, calculate origin = (left / atlas_width, bottom / atlas_height) and size = (tile_width / atlas_width, tile_height / atlas_height). Measure the content rectangle separately from any surrounding padding. If your measurements start at the image’s top edge, convert the vertical position with bottom = atlas_height - top - tile_height.
Use an unrotated rectangular region for this setup. A tile packed with a 90-degree rotation needs an additional coordinate rotation or axis exchange before the region transform.
How do you build the repeating atlas node chain?
Start with a plane whose UV square spans 0–1 horizontally and vertically. This gives the repeat values a clear meaning. In the Shader Editor, add a Texture Coordinate node and use its UV output. That output uses the active render UV map; use a UV Map node when you need to select a particular map explicitly. Blender Manual: Texture Coordinate Node
Add four Vector Math nodes and connect their Vector outputs in this order. Put each constant in the unconnected vector input of the corresponding node:
- Multiply: Connect
UVto the first input and set the second vector to(4, 2, 1). This establishes the repeat count. - Fraction: Connect the first Multiply output. This wraps each component into its fractional range.
- Multiply: Connect Fraction and set the second vector to
(0.25, 0.25, 1). This scales the wrapped square to the atlas region’s size. - Add: Connect the second Multiply output and set the second vector to
(0.25, 0.50, 0). This moves the result to the region’s origin. - Connect Add to the Image Texture node’s
Vectorinput, select your atlas, and useFlatprojection. ConnectColorto Principled BSDFBase Color, with the BSDF connected to Material Output.
Vector Math’s Multiply, Fraction, and Add operations work component by component, which lets one chain handle both UV axes. The first Multiply controls repetition; the second controls region size. Blender Manual: Vector Math Node
For the initial check, choose Image Texture interpolation Closest. Blender documents this as nearest-neighbor sampling without interpolation. Set extension to Extend; the coordinate chain provides the internal repetition. Extend does not clamp sampling to your chosen atlas rectangle. Blender Manual: Image Texture Node
The expected visible result is four dotted tiles across the plane and two vertically. If adjacent atlas artwork appears throughout the surface, check node order and numeric values before adjusting filtering.
Why must Fraction come before the atlas scale and offset?
The coordinate relationship is atlas_uv = origin + fraction(uv × repeats) × size, where fraction(x) = x - floor(x). Repeat count creates a larger coordinate range, Fraction folds it into a repeating unit square, and the final scale and offset place every copy inside the same atlas rectangle.
With the example values, UV (0.125, 0.25) becomes (0.5, 0.5) after repeat scaling and wrapping. Scaling by tile size and adding the origin produces atlas coordinate (0.375, 0.625), the center of the selected tile.
UV (0.375, 0.25) reaches that same atlas coordinate because it lies one horizontal repeat farther along. These illustrative calculations were checked with a small deterministic Python calculation; they verify the coordinate arithmetic, not a Blender render.
Putting Fraction after the atlas offset wraps coordinates relative to the full image’s unit range. Omitting Fraction lets the coordinates travel into neighboring regions. Keep repetition in local tile space until the final two nodes.
If your input UVs already occupy the selected atlas rectangle, first normalize them: subtract the tile origin, then divide by the tile size. Feed that local result into the repeat chain. Otherwise, the repeat count operates on a smaller coordinate range and gives an unexpected number of copies.
How do you stop filtering from sampling adjacent regions?
Coordinate wrapping alone does not isolate a texture filter. At a tile boundary, filtered sampling may need pixels from across that boundary. Atlas padding provides room for those samples, while lower-resolution mipmaps require additional care. GPU Gems 2: Tile-Based Texture Mapping
Use a half-texel inset for a limited close-view fix
For an unpadded region, an inset can move lookups away from neighboring pixels. Map the repeating coordinates between the first and last pixel centers of the selected rectangle. For atlas dimensions (W, H), replace the final transform with inset_origin = origin + (0.5/W, 0.5/H) and inset_size = size - (1/W, 1/H).
For the 1024 × 1024 example, change the second Multiply vector to (0.2490234375, 0.2490234375, 1) and the Add vector to (0.25048828125, 0.50048828125, 0). These derived values move both limits inward by half an atlas texel.
This contracts the sampled pattern slightly and does not reproduce the filtering of a truly repeating standalone image. It is a useful close-view adjustment for base-level linear sampling, not a universal solution for wider filters or reduced-resolution textures.
Use padding that continues the repeating pattern
When you can edit the atlas, surround the content rectangle with padding. For a repeating tile, a useful construction is to copy its rightmost content into the left gutter and its leftmost content into the right gutter. Do the equivalent vertically and fill corners with the corresponding diagonally wrapped content. This supplies the continuation a periodic pattern needs.
Keep the shader’s origin and size aimed at the content rectangle. Including the gutter in the repeated area makes the padding itself part of the visible pattern. How much padding is sufficient depends on the sampling footprint and reduced-resolution levels; NVIDIA specifically warns that atlas borders must prevent neighboring images from contributing to smaller mipmaps. NVIDIA Docs: Textures
When should you extract the tile into a separate image?
Choose a separate image when you need smooth repetition across a wide range of camera distances and angles, especially when the atlas has no editable padding. NVIDIA recommends considering storage outside an atlas when a sub-image needs repeating wrap behavior. NVIDIA Docs: Textures
Crop the exact content rectangle into a new image using an image editor, keeping the original atlas intact. Load that image into Blender, set Image Texture extension to Repeat, and connect UV through only the repeat-count Multiply node. Remove the atlas Fraction, region-size, and origin operations. The selected tile now occupies the entire image, so whole-image repetition serves the intended task.
This also simplifies diagnosis: if a visible join remains in the extracted image, inspect whether the pattern’s opposite edges actually connect. Coordinate wrapping cannot make unrelated edge artwork seamless.
How do you check the result before finishing the material?
Use a simple test surface before applying the material to the planter. In an illustrative test atlas, give the chosen region pale dots on blue and neighboring regions conspicuous orange and green patterns. Their appearance will make incorrect selection easy to spot.
- Check repeat count: On the
0–1UV plane, confirm four copies across and two vertically. - Check selection: With
Closest, look for neighboring artwork inside any repeat. If present, inspect origin, size, input UV range, and node order. - Check borders: Switch to the intended interpolation and inspect joins closely. A thin neighboring color suggests filtering reaches outside the content.
- Check distance and angle: Render the surface close up, farther away, and at a shallow angle in the intended engine. A clean close view does not establish a clean distant result.
- Check the actual object: Confirm that the planter’s UV proportions produce the intended dot shape and spacing.
Treat the finished result as two checks: the material consistently selects the intended atlas region, and its joins remain acceptable in the final view. Keep the local wrap chain when the atlas must stay intact; use suitable padding or a separate repeating image when filtering requires more isolation.