Files

3.1 KiB

Furniture materials (2026-11-07)

Textures for the furniture boxes of src/props.rs (Mat, mc): every box of a material gets the texture on all sides, tinted by the box's own colour, so the furniture keeps its colours and gains detail (book spines with titles, a spellbook page with script, straw dummies, wood grain, ...).

fal-ai/flux-2-pro, image_size: square_hd, seed: 4400; the material's sentence followed by:

Square texture seen straight on, flat even lighting, no shadows, no vignette, no border, no text unless asked. Hand-painted pixel art style for a dark-fantasy dungeon strategy game: chunky clear shapes, crisp edges, readable at small size. Fills the whole image.

wood

Light weathered wooden planks running vertically with clear wood grain, knots and a few nail heads, in light neutral beige tones.

stone

A rough block of light grey stone with chisel marks, small pits and a few fine cracks, in light neutral grey tones.

iron

Light grey forged iron with hammer dents, scratches and a few rivets near the edges, in light neutral grey tones.

cloth

Woven fabric with a visible coarse weave, soft folds and a simple embroidered border near the edges, in light neutral off-white tones.

straw

Bundled straw and sackcloth: coarse burlap with straw sticking out, stitched seams, in light neutral beige tones.

fur

Thick shaggy animal fur with tufts and strands, in light neutral beige-grey tones.

book

The spine of one old leather-bound book standing upright, filling the whole image: two raised bands near the top and the bottom, a gilded frame and a short line of golden title letters in the middle, worn leather, in light neutral tones.

paper

An open page of an old spellbook filling the whole image: yellowed parchment with many lines of dark handwritten script, a small drawn magic circle and a red initial letter, in light neutral tones.

crystal

A cut gemstone surface seen close: many sharp triangular and kite-shaped facets with bright edges and darker faces, a few internal glints, in light neutral grey tones.

The soul core's heart (its lobes) and the buildings use the materials too: props::auto_cube picks one for every box of the buildings by its colour and shape.

Processing

tools/make_material.py crops (stone and the book lay on white), turns the picture into grey detail with a mean brightness of 0.8 (the page keeps its colours) and scales to 64x64 (high-res) and 16x16 (pixel art):

T=tools/make_material.py
python3 $T wood-raw.png wood
python3 $T stone-raw.png stone --crop 0.15,0.15,0.75,0.6
python3 $T iron-raw.png iron --crop 0.1,0.1,0.9,0.9
python3 $T cloth-raw.png cloth --crop 0.12,0.12,0.88,0.88 --mean 0.85
python3 $T straw-raw.png straw --crop 0.05,0.05,0.95,0.95
python3 $T fur-raw.png fur
python3 $T book-raw.png book --trim --mean 0.75
python3 $T paper-raw.png paper --color --crop 0.04,0.04,0.96,0.96 --mean 0.8
python3 $T crystal-raw.png crystal --crop 0.1,0.1,0.9,0.9 --mean 0.75

Copied to assets/textures/mat/.