Skip to content

Packs / game-assets-and-ai-public

seamless-texture

Make a texture tile seamlessly (offset + cross-blend of the seams) and prove the edges match, for generated or photographed materials

Install

logicpacks pack use game-assets-and-ai-public/seamless-texture
get_pack game-assets-and-ai-public/seamless-texture

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: mfluxlocal-pillowcodex-image
  • Checks: 2 in outcome/checks.yaml
  • Code: make_fixture.pymake_tileable.pytile_check.py
  • Tools: python3, Pillow

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

A square, power-of-two texture whose left/right and top/bottom edges continue into each other, ready for repeat wrapping.

Steps

  1. Generate a material image on the free route: ~/gen-image.sh "seamless stone floor texture, top-down, even lighting" raw.png.
  2. Make it tile: python3 code/make_tileable.py raw.png tile.png --size 1024 --blend 0.25.
  3. Verify: python3 code/tile_check.py tile.png (edge difference must be close to the image's own pixel-to-pixel difference).
  4. Normal/roughness maps: derive from the tiled colour (e.g. Materialize / Blender bake) AFTER tiling.

Edge cases

  • Strong directional light in the source can't be fixed by blending: prompt for 'even lighting'.
  • Large features repeat visibly: use a bigger tile or detail textures.

Don'ts

  • Don't tile after resizing to non-power-of-two (mipmaps suffer).
  • Don't use photos of copyrighted artwork.