Baltor Get started

Gallery / Procedural textures

Tartan woven from a thread-count sett in 2/2 twill

In your harnessProcedural textureMIT

Generate tileable maps of tartan and plaid cloth from a sett: a reflected sequence of colours and thread counts used for warp and weft, woven in 2/2 twill so every crossing shows the warp or weft colour along diagonal lines. Use for kilts, scarves, blankets, flannel shirts and upholstery.

Render of Tartan woven from a thread-count sett in 2/2 twill
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Entry point
generate
Maps
albedo, normal, roughness, height, ao
Parameters
repeats, thread_scale, relief, fuzz, yarn_variation, hue_shift, saturation, brightness
Presets
default, grey_dress, autumn_plaid, buffalo_check, madras_bright
Tileable
yes
Command line
python tartan_sett.py --size 1024 --seed 7 --preset NAME --out DIR [--width W --height H] [--set NAME=VALUE] [--directx-normal] [--orm]
Godot material
material.tres
Blender builder
blender_material.build_material(folder)

Limits. The setts are invented and do not reproduce registered tartans. Thread counts are kept low so a thread spans several pixels at 256 x 256, which makes the cloth look coarser than real tartan; raise thread_scale and the output size for finer cloth. Threads are idealized round yarns on a regular grid without crimp variation or weaving faults, and a sett whose repeat is not a multiple of four gets its first pivot widened to keep the twill seamless. Fuzz is noise and a blur. Occlusion is a blurred-height estimate.

Details

Kind
Procedural texture
Engine
Python 3.10 or later
Files
12 files, 252.1 KB
Licence
MIT
Declared effects
runs commands, writes files
Checked with
Godot 4.7.2, gl_compatibility
Checks
command line generates declared maps, maps decode, maps have declared size and channels, maps tile without a seam, normal vectors unit length facing out, maps carry detail, godot imports the maps, godot material template loads every map, godot compatibility render, capture shows the textured surface, blender builds the material
Techniques
Symmetric sett reflected about its two pivots, 2/2 twill interlacing: warp on top where (i - j) mod 4 is below 2, Crossing colour from whichever thread lies on top, Round yarn cross-section with dips where a thread passes under, Per-thread hashed colour variation, Height to tangent-space normal by central differences
Tags
texture, pbr, tileable, tartan, plaid, fabric, twill, wool
Identity
library.supply.creative_originals.2570ae3601b2982960c3d6ee.1472f6d697148609
Version
1472f6d69714860912a9e374dd8cd3a51c3056e64601908300690bccb0f49a6a

The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.

Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.