A tileable cobblestone texture had a seam because each repeated stone redrew its own random color
Key points
- A tiled cobblestone texture showed a visible seam at the wrap edge on the 512px version: the stones that straddle the right/left boundary had a color step of 4.0, 15.0, 14.0, and 0.0 across the four affected stones (Source: our own measurement, 2026-11-14).
- The same stones' internal, non-seam neighboring columns measured ~0.0 by comparison, confirming the step was specific to the wrap edge, not general texture noise (Source: our own measurement, 2026-11-14).
- The cause was in the generator: each stone was drawn at 9 tiled-copy offsets, and the color was redrawn with a fresh random call at every offset instead of once per stone (Source: our own measurement, 2026-11-14).
- The new 1024px version measures 0.0–0.1 across the same four seam positions, with internal neighboring-column differences of 0.1–0.2 — the seam step and the normal internal variation are now in the same range (Source: our own measurement, 2026-11-14).
The symptom
We ship a set of tileable ground textures (asphalt, cobblestone, dirt, grass, lava, metal plate, rock, sand, wood planks) as part of a Payhip asset pack. Laid out side by side, cobblestone showed a thin but visible seam where one tile's right edge met the next tile's left edge — a stone that straddles that boundary had noticeably different color on its two halves.
Source: our own measurement, 2026-11-14.
Measuring it
We wrote a small script to measure this directly rather than eyeball it. The texture is an 8×8 grid of stones; in the odd rows (1, 3, 5, 7), the last column's stone straddles the tile's right and left edges when the texture repeats. For each of those four stones, we compared the mean RGB difference between the rightmost and leftmost pixel columns (the seam) against the mean RGB difference between the two columns just inside the edge (the internal baseline).
On the old 512px texture, the seam differences were 4.0, 15.0, 14.0, and 0.0 for the four stones, against an internal baseline of about 0.0 for all four. The seam was 4 to 15 times larger than the texture's own internal pixel-to-pixel variation.
Source: our own measurement, 2026-11-14.
Finding the cause
The generator draws each stone's base color with a random call, then stamps that stone at 9 tiled-copy positions (offsets of -512, 0, and +512 in x and y) so the pattern repeats seamlessly when the texture is tiled. The bug: the random color draw happened inside the offset loop, so the same stone got a new random color at each of its 9 copies instead of being colored once and stamped 9 times.
We reproduced the generator's draws with the same random seed it used in production and extracted the colors it assigned to the two offsets that meet at the tile edge, for the four affected stones. The differences were 4, 15, 14, and 0 — matching the measured seam steps exactly.
Source: our own measurement, 2026-11-14.
One of the four stones measured a seam step of 0.0. Re-running the generator's draws for that stone's two edge offsets showed it had drawn the same value, 124, for both — a coincidence of the random sequence, not evidence that the bug wasn't present there too.
Source: our own measurement, 2026-11-14.
The fix
We moved the random color draw outside the offset loop, so a stone is colored once and that single color is stamped at all 9 tiled-copy positions. The new 1024px texture measures 0.0–0.1 across the same four seam positions, against an internal baseline of 0.1–0.2 for the same stones — the seam is no longer distinguishable from the texture's own normal pixel variation.
Source: our own measurement, 2026-11-14.
What we didn't check
We measured the seam in the texture file itself, before and after the fix. We did not measure how visible the old seam was in an actual tiled render, in a game viewport, at different camera distances, or under different lighting — we have no data on in-game appearance and aren't claiming anything about it here.
Source: our own measurement, 2026-11-14.