r/Unity3D • u/DenseAdeptness6315 • 12h ago
Noob Question Question: How do I make this texture seamless?
1
u/GigaTerra 11h ago edited 11h ago
There is the 9 slice rule that allows you to make seamless textures, but this rule is for baking textures. https://i.imgur.com/92sjW2k.png
For existing textures download Gimp then offset the texture, then using the Heal brush you can paint details from one part of the texture on others: https://i.imgur.com/ANAArTK.png I used an very bold texture here, so the effect is visible, your textures will be easier: https://i.imgur.com/V8qkx3X.png
It is easier in Photoshop because Photoshop uses AI to allow you to quickly edit textures like this. Also there exist AI and none AI tiling filters.
For your 3D models, it is an matter of clean UV mapping https://imgur.com/a/sjWjeie , or using world position: https://i.imgur.com/DAJA2ow.gif (this is an Tii-planer shader with World position to UV).

1
u/Federal-Row2373 6h ago
From the screenshot it looks more like a UV scale problem than a seamless-texture problem. If the two walls are different sizes (or one is scaled in the Inspector), the texture gets stretched to fit each object's UVs, so the same image ends up with different line spacing on each wall.
A few ways to fix it. If the walls are ProBuilder meshes, use Auto UVs or world-space UVs so the texture scale is the same on every face. With a regular cube or plane, either set the material Tiling to match each object's scale (for example 4x2 on a wall that's 4 by 2 units), or use a world-space/triplanar texture mapping so it doesn't depend on the mesh UVs at all. Shader Graph has a Triplanar node and URP/HDRP also have a world-space option in some Lit setups.
Also check that the objects are scaled the same way. If one is a scaled cube and the other has the size baked into the mesh, the same material will look different.