Nodes/was-node-suite-comfyui/Image Seamless Texture
ComfyUI Node Runs on cloud

Image Seamless Texture

Make an image tile without visible seams

By WASasquatch·Created 3 years ago·Updated about a year ago· 1,812
Image Seamless Texture

      Generate a nice texture - brick, foliage, fabric, noise, whatever - and try to tile it, and you'll see the problem instantly: a hard seam where the right edge meets the left and the top meets the bottom. Image Seamless Texture fixes that. The README describes it as "create a seamless texture out of an image with optional tiling," and that's the pitch - take any image and make it repeat cleanly, edge to edge, with no join.

      Why you'd want it

      This is a game-dev and 3D-art staple. If a texture is going onto a surface that repeats - a wall, a floor, terrain, a material in a shader - it has to tile, or the seam shows up as an ugly grid across the whole surface. It's also handy for backgrounds and patterns in 2D work: a repeating motif, a wallpaper, a fabric print. Diffusion models are great at generating a single interesting tile and terrible at making it loop; this node bridges that gap. Generate the texture in ComfyUI, run it through here, and you've got an asset you can drop straight into a game engine or a 3D tool.

      How it works

      The classic technique - and what this node does - is to offset the image by half its width and height so the seams move into the middle, then blend across those newly-central seams so they disappear. Once the seams are hidden in the interior and the edges are made to match, the image tiles cleanly. There's an optional tiling control so you can preview or output the repeated result. Feed it an image, get back a seamless version.

      Where it works and where it doesn't

      Be realistic about the input. This works beautifully on stochastic, non-directional textures - noise, gravel, grass, plaster, static-y patterns - because there's no obvious structure for the eye to catch. It struggles with strong directional or large-scale features: a texture with a big diagonal line, obvious lighting from one side, or a distinct object in the middle will still betray the repeat, because no amount of edge-blending hides a feature that clearly points somewhere. If your source has a dominant highlight or a directional pattern, flatten the lighting first (an even, ambient-lit texture tiles far better) and keep the features small relative to the tile.

      Installing it

      Part of WAS Node Suite. Install the pack via ComfyUI Manager (search was-node-suite-comfyui, install, restart) or clone it:

      cd ComfyUI/custom_nodes
      git clone https://github.com/WASasquatch/was-node-suite-comfyui
      

      install requirements.txt, restart. No model files needed.

      Troubleshooting

      The node is self-contained; the pack is the usual weak point. WAS Node Suite has been unmaintained since December 2023, and the recurring issue is the whole suite failing to import ("Import Failed") after a ComfyUI update - a dependency clash, opencv most often, since WAS pins an older release. Reinstall requirements.txt into the correct venv (activate it, or run install.bat) to fix it. If a tiled result still shows a seam, that's not a bug - it's the source texture having features too strong to hide, so simplify the input.

      Categoryx

      Inputs (0)

      No inputs

      Outputs (0)

      No outputs