Nodes/ComfyUI-Pixaroma/Seamless Material Pixaroma
ComfyUI Node

Seamless Material Pixaroma

One texture in, a full Blender material out

By pixaroma·Created 8 months ago·Updated 2 days ago· 502
Seamless Material Pixaroma
  • image
  • color
  • roughness
  • normal
  • height
  • ao
◄strength1.00►
◄roughness_min0.55►
◄roughness_max0.90►
◄invert_heightfalse►
◄normal_formatOpenGL (Blender)►
◄save_filestrue►
◄save_tomaterials/stone►

The gap between "an AI texture" and "a material"

You generated a nice seamless stone tile, dropped it on a cube in Blender, and got a photo of stone printed on a cube - flat, plastic, wrong under any light you move. Because a colour map isn't a material. A material needs roughness so highlights scatter, a normal map so the mortar has a lip you can see edge-on, height if you want displacement, and AO so crevices stay dark when the light is dead-on.

You can build those by hand in Blender's bake pipeline, or bounce through Materialize - or, if the tile came out of ComfyUI in the first place, get all five maps from the node next door. Seamless Material Pixaroma is deterministic image maths, not a model: no download, no sampler, no VRAM, instant.

And critically for anything that repeats across a wall or floor: every map is seamless too, because every blur and slope in it wraps around the edges. That's not a nice-to-have. A normal map with a hard line where the tile meets itself is more visible than the colour seam ever was.

How it works

The relief comes from brightness, and the node is upfront about it - dark means deep. The height map is the tile's brightness, smoothed slightly to take the pixel noise out, then stretched so the full 0–1 range is actually used (0.5% of pixels clamp at black, 0.5% at white). The normal map is the slope of that height as a tangent-space normal, so dark grout lines become recessed grout, plank gaps become recesses, brick joints sink. Roughness is brightness squeezed into a range you pick, brighter equals slightly smoother. AO is blurred-height-minus-height, at two blur radii, so you get fine crevices and broader occlusion.

Every neighbourhood operation uses circular padding - pixels past the right edge are the pixels from the left edge. The maps of a shifted tile are exactly the maps shifted, by construction, so the whole PBR set repeats with no edge.

The inputs you'll actually touch

image is the seamless tile, typically VAE Decode after Seamless Tile Pixaroma with tile set to Both. Garbage in, garbage out: feed it a tile with a seam and every map carries that seam, more visibly.

strength (default 1, up to 10) is how deep the relief reads in the normal map, and only the normal map changes. 1 suits most stone and wood. Past 2, stains and small dark spots start to look like someone drilled pits into your surface - the usual over-correction.

roughness_min and roughness_max (0.55 and 0.9 out of the box) bound the range: brightest parts get the first, darkest the second. Set both the same for one flat roughness.

invert_height saves the node from its own assumption. Off means dark is deep, right for dark mortar between light tiles. On means light is deep - the fix for light mortar between darker bricks, or any surface where the light values are the recesses.

normal_format picks OpenGL (what Blender reads) or DirectX, which flips the green channel. Pick wrong and the lighting inverts - dents where bumps should be.

Then the saving. save_files is on by default, and save_to (default materials/stone) names the folder: a run writes output/materials/stone_001/stone_color.png, _roughness, _normal, _height, _ao. Each changed run gets the next number, so the highest is newest; a run with nothing changed saves nothing new.

Five outputs - color, roughness, normal, height, ao - exactly what lands on disk. The node is an output node, so it runs and writes even with nothing downstream.

Getting it into Blender

The naming is deliberate. Select your Principled BSDF and hit Ctrl+Shift+T (Node Wrangler's Add Principled Texture Setup), point it at the folder, and it wires all five files in one step because the file tags are the ones it looks for. height goes to Bump or Displacement depending on how much geometry you have; ao is optional in Blender since Cycles and EEVEE compute their own shadowing, but it's there for engines and glTF-ish export pipelines that want it baked.

It's the same errand the AI-3D crowd runs in reverse: PBR output is what decides whether a generated asset survives contact with real lighting. Here you get the material half of that for free, from a tile you already made.

Install and the honest limit

cd ComfyUI/custom_nodes
git clone https://github.com/pixaroma/ComfyUI-Pixaroma

Restart, then Ctrl+Shift+R in the browser. In ComfyUI Manager search Pixaroma - but it only serves 1.4.144 because the registry flagged newer versions without a reason; switch the pack to nightly or use git. No model download for this node, and the pack's only pip requirement is imageio-ffmpeg for the video nodes.

The limit is baked into the design: height is inferred from brightness, so the node is right wherever dark means deep and wrong wherever a dark colour isn't a depression. A dark red flower on a pale print becomes a hole. Nothing here sees depth; it reads a picture. For stone, brick, planks, tiles and woven fabric it's genuinely good, and pictures under 16 px on a side are refused because a material needs more than a few pixels.

Category👑 Pixaroma/🖼️ Image

Inputs (8)

NameTypeDefaultDescription
imageIMAGEThe seamless tile, for example from Seamless Tile Pixaroma and VAE Decode. A tile with an edge gives maps with the same edge.
strengthFLOAT1.000–10How deep the relief looks in the normal map. 1 suits most stone and wood. Above 2, stains and small dark spots start to look like pits. Only the normal map changes.
roughness_minFLOAT0.550–1Roughness of the brightest parts. 0 = mirror, 1 = fully matte.
roughness_maxFLOAT0.900–1Roughness of the darkest parts. Set both the same for one even roughness.
invert_heightBOOLEANfalseOff: dark = deep (gaps between stones and planks). On: light = deep (light mortar between darker bricks).
normal_formatCOMBOOpenGL (Blender)OpenGL is what Blender reads. DirectX flips the green channel, for programs that read DirectX normal maps.
save_filesBOOLEANtrueOn: new maps are saved as five PNG files in a new numbered folder inside ComfyUI's output folder. A Run with nothing changed saves nothing new. Off: nothing is saved.
save_toSTRINGmaterials/stoneFolder and name inside ComfyUI's output folder. materials/stone saves output/materials/stone_001/stone_color.png, stone_roughness.png, stone_normal.png, stone_height.png and stone_ao.png. New maps go to the next number: the highest number is the newest.

Outputs (5)

NameTypeDescription
colorIMAGEThe tile itself (Base Color in Blender).
roughnessIMAGEGrey roughness map: white = matte, black = shiny.
normalIMAGENormal map (blue-purple), the small relief for the light. OpenGL or DirectX as chosen.
heightIMAGEGrey height map: white = high, black = deep. Blender's Displacement or Bump node.
aoIMAGEAmbient occlusion: dark in the crevices. Blender renders its own shadows, so it is optional there.