This command line tool takes .png images and outputs seamless tiling textures while trying to preserve features based on height.
Input directory:
in_image_d.png
in_image_hrm.png
in_image_n.png
Command line:
.\pbrtyler.exe -i [path to]in_image -o out_image
Note: Suffixes like _d.png will be added automatically.
Output directory:
out_image_d.png
out_image_hrm.png
out_image_n.png
-i <input_path>
- Input filename without extension.
-o <output_path>
- Output filename without extension.
-noblur
- Skips blurring of blend maps.
-sharpness 0.125
- How "sharp" the transitions look.
-noise 0.8
- How much the noise influences blending.
-epsilon 0.03
- The delta of heights below which pixels will blend.
Required maps:
- diffuse map (rgb)
- hrm map (height, roughness, metalness)
- normal map (xyz)
These are obtain from a Blender render using shader AOV and compositing.
Output image is 2x smaller than the input so if you want a 2k seamless texture you need to provide a 4k render.
This tool will work best with random textures like grass, earth, pebbles etc. Your mileage with more ordered features like bricks may vary.
There is still a visible blend between features. Noise influence is added to break the pattern. Using parameters you can maximize the blend region, you will find that the features inside get denser.