Repository navigation
model-maker 0.3.2
model-maker 0.3.2: the bake colours every thin triangle, so the thin dark strokes on made objects are gone.
A patch with one fix. Nothing new to install: no new model, no new package and no new download. The same prompt with
the same seeds makes the same shape and the same painted views as with 0.3.1; only the texture differs, where thin
triangles showed black.
Fixed:
- Thin dark strokes and specks on the paint are gone: on 128 made models they went from 29 416 to 1 141 (down
96.1 %), and the models with 100 or more from 103 to 0. The texture is the surface laid out flat in small pieces,
and each pixel of it (a texel) took the colour of the triangle holding its centre. A triangle thinner than a texel
could hold none, so it showed the texture's black background as a short dark line. Now such a triangle colours the
texels it touches that no other triangle holds, with its own colour, and no texel is left black between the pieces.
What changes for you:
- Cleaner objects. No black specks on plain surfaces such as clay or stone. Two blind judges, each alone, picked
the fixed side as having fewer marks on all 10 models with strokes, and never the old one. - Objects made before can be mended.
./model-maker finish DIRbakes a made object again from its stored paint,
with the fix. For a.glbalone there is a new command,./model-maker repair-texture MODEL.glb --out NEW.glb,
which runs on the processor: each thin triangle's texels take its neighbours' colour, the rest of the file is kept as
it is, and the new texture carries content credentials like any other picture model-maker writes. - Nothing else moves. The texture's layout, the triangles, every texel a triangle holds (as the bake works it out)
and every measure the report gives (the paint's coverage, the overlap, the texels a metre) are the same as with
0.3.1. The bake takes about
5 % longer.
How we know: the bars were written, and the scripts that measure them sealed, before any texture of the fixed bake
existed; 105 made jobs were baked again from their own files with the old and the new bake, and 23 made models were
mended from their .glb. Five of the eight bars passed. Three failed as written and stay failed; in each, what was
found was a fault of the measure or an older fault the black had hidden, not new damage: the exact black some
triangles read afterwards is black paint on dark models (the bake's own record shows 0 texels left uncoloured on all
128); the 20 % more pale slivers are mostly slivers that showed black before (81 truly new, 96 gone); and the 275
texels the sealed script saw change are not held by any triangle in the bake's own layout (0 held texels changed on all
105). The released code gives the tested textures bit for bit on all 128. The whole table is in the pull request and
in docs/objects.md, "Thin dark strokes". The test suite passes (494 tests, 9 of them new for the bake).
Known:
- Thin pale lines remain, about 19 a model, as before this fix: very thin triangles that read a lighter colour than the
paint round them. They are the next fix. - 2 triangles in the 128 models have no texel of their own; they read a neighbour's colour, not black.
- Benches and long tables still come out small: their size is taken for the longest side.
--sizesets another size.
Pictures: a clay jug and a stone birdbath, each drawn twice the same way: before the fix on the left, baked again with
it on the right; the top row whole, the bottom row close up (docs/images/0.3.2/).