Claude Game Studio

Seamless texture generator

This seamless texture generator makes an uploaded image or a generated pattern tile without visible seams, using offset and blend or mirror, shows it tiled 3 by 3 and on a lit Three.js plane, and exports a PNG from 256 to 2048 pixels.

Before: tiled 3 × 3
After: tiled 3 × 3

Seam visibility: 3.65× before, 0.70× after. A join as visible as any other line in the picture is 1×.

Or start from a pattern

A generated stone pattern is loaded. Drop your own image or pick another pattern.

On a lit plane in Three.js

Your texture repeats 4 × 4 on a floor under a moving light. Drag across the plane to move the light and look along the joins.

How the join is removed

Offset and blend

A copy of your image is shifted by half its width and height, so the old center becomes the join and the edges wrap cleanly. The tool keeps the shifted copy near the edges and your original in the middle, and fades between them. Blend width is a percentage of half the picture: 30% on the 512 pixel preview fades over 77 pixels. Wider hides more and ghosts more.

Mirror

The picture is flipped into four quadrants, so every edge meets its own reflection and the output is twice the working size. Grain, cracks and fabric survive. A recognizable object, such as one marked stone, repeats as a symmetrical flower.

Reading the seam number

It compares the average color on both sides of the wrap-around edge with the same measure at three ordinary lines inside the picture. Near 1 means the join is no more visible than any other line, and higher means a bigger jump across it. The raw patterns below score 0.71× to 3.16×.

Getting the cleanest result

Crop to an even patch of surface first. When the picture has one large feature near its center, such as a manhole cover or a face, choose mirror.

What it does to the five starting patterns

The generated patterns at seed 7 and 256 pixels, measured by the code the tool runs. Before is the pattern as drawn, which does not tile.

Seam visibility before and after, by pattern
PatternBeforeBlend 30%Mirror
Cracked stone2.15×0.74×0.00×
Grass2.78×1.11×0.00×
Wood planks0.71×0.65×0.00×
Sand2.44×1.02×0.00×
Lava3.16×1.04×0.00×

Memory for the export sizes, uncompressed RGBA: 256 pixels is 0.25 MB, 512 is 1 MB, 1024 is 4 MB and 2048 is 16 MB. Mipmaps add about a third on top.

Use it in a Three.js game

Load the PNG, switch the texture to repeat wrapping, and set how many times it repeats. This is the code the lit plane above runs:

const texture = new THREE.TextureLoader().load("seamless-stone-1024.png"); texture.colorSpace = THREE.SRGBColorSpace; texture.wrapS = texture.wrapT = THREE.RepeatWrapping; texture.repeat.set(4, 4); // four repeats across and down floor.material = new THREE.MeshStandardMaterial({ map: texture, roughness: 0.85 });

To have Claude Code apply it inside a starter, paste a prompt like this one in a session that has the starters installed. Lighting a flat texture also gets better with a normal map made from the same PNG.

Use seamless-stone-1024.png as the floor texture in the fps-three starter. Repeat it so one tile covers about 2 metres, set the color space to sRGB, keep the starter's lighting, then play it and check that no tile edge shows when you walk along the floor.

Other ways to get a tileable texture

Ziva's seamless texture tool makes an uploaded image tileable in the browser with the same two methods, a blend width and a 3 by 3 preview, and asks you to sign in for its AI generation. This page adds a generated starting pattern with no account, a lit plane, a measured seam number and exports up to 2048 pixels.

3D AI Studio's Seamless Texture AI builds tileable material sets from a text description or an image, charging 10 credits for text and 7 for an image, and it makes roughness, metalness and height maps as well as color. This page works on a texture you already have.

Questions

How do I make a texture seamless?

Drop your image on the tool or pick a generated pattern, choose Offset and blend edges, and look at the After picture tiled 3 by 3. If a join still shows, raise the blend width in steps of 5 percent. Download PNG saves the result at 256, 512, 1024 or 2048 pixels square.

What is the difference between offset and blend and mirror?

Offset and blend keeps the look of your image: it shifts a copy by half the width and height so the old middle becomes the join, then fades the original over it. Mirror flips the picture into four quadrants, which can never show a seam but always looks symmetrical and doubles the size of the output.

What size should a seamless game texture be?

Use the smallest size that still looks sharp where the player sees it: 256 pixels for small props and pixel art tiles, 512 or 1024 for most floors and walls, 2048 for a surface that fills the screen. An uncompressed 1024 pixel texture takes 4 MB of video memory and a 2048 one takes 16 MB.

How do I tile a texture in Three.js?

Set texture.wrapS and texture.wrapT to THREE.RepeatWrapping and call texture.repeat.set(4, 4) for four repeats each way. The lit plane on this page does exactly that, and the snippet below copies it. A texture that is not seamless will show its edge on every repeat.

Are my images uploaded anywhere?

No. The image is decoded, cropped to its centre square and processed in your browser tab, and the PNG is made there too. The tool accepts PNG, JPEG and WebP up to 12 MB. Close the tab and it is gone, so download what you want to keep.

Put your assets into a playable game. Try the ten game templates or get the kit.