Keep the fill layer and image conversion in TextureCraft while reading glTF material factors and embedded images from craft-mesh. This carries the engine feature from #296 and preserves its end-to-end test.
Co-authored-by: NetterSilver <133535268+Silvertree2010@users.noreply.github.com>
Applying a material filled the model in tile by tile, and each apply made the
next one slower. Now:
- a big recomposite first draws a coarse look of every tile (sampled texels
repeated across blocks), then refines to the exact result;
- layers hidden behind an opaque layer are skipped (not when anchors or height
masks are involved);
- compositing and upload budgets adapt: larger when idle, smaller while the
user is interacting, and uploads reserve time for conversion;
- no coarse pass during a live stroke or with neighbourhood filters;
- blending at full weight returns the blended value exactly.
Tests: coarse-then-exact, hidden-layer culling gives identical pixels, coarse
pass covers every tile, no coarse pass while a stroke is live.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Merge upstream main into the branch. The streamed bake now returns the same Arc buffers it handed to the preview, and the document stores those, so a preview never holds a second copy of a map. A cancel leaves the set being baked as it was; sets that finished earlier stay applied.
Share visualization settings between scene shading and GPU sync, and use then_some for the conditional low-poly pass. Cover per-set distances, selected-set filtering, missing inputs and ownership with engine tests.
Properties gets tolerance, a Colors list (swatch, R/G/B, re-pick, remove)
and a Pick color mode: the pointer becomes an eyedropper, both views show
the ID mesh map and the next click adds the ID color under it.
effect.set takes colors; effect.colorSelection.pick samples the texel the
mask evaluates and skips hidden texture sets.
Keep the curvature mode and detail sizes from upstream and route the
finished generator value through Generator::shape so the offset applies
to every generator kind. A non-finite offset now counts as 0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The brush stroke paints while points are placed and dragged (3D and 2D);
applying is one undo step, Esc removes the unfinished path
- Click the curve to insert a point, select a point and remove it with
Backspace or the Remove point button; undo steps through point changes
- The selected layer's other paths are drawn (lit under the pointer) and a
click opens one for editing; 3D lines follow where their paint lands
- A path repaint recomposites only the tiles it changed, not the whole set
- Pen pointer for the tool; new paths start open; Apply/Cancel removed
- Switching texture sets applies a path being placed first
Closes#333
- Symmetry gets an on/off toggle that keeps its settings, an offset of the
mirror planes and radial axis from the mesh center, and a radial angle
span; defaults paint exactly as before
- tool.brush takes and reports symmetryOn, symmetryOffset and
symmetryAngleSpan
- A symmetry copy runs the camera checks (hidden, facing away, angle fade)
at its source's point, so it paints the mirror of the stroke
- The eye-depth test allows for neighbouring pixels of the same surface
where it turns away from the camera: strokes reaching the silhouette broke
into dots there
Divide each blurred detail size by the share of the blur window inside its
UV tile block, so texels near a block or map edge keep their strength
instead of fading toward zero. Raw mode reads mid gray when there is no
curvature to sample. The size cache keeps one layout per curvature map.
Mask previews of hidden layers build their sizes once before the tiles run
in parallel. effect.set rejects a sizes array with a non-numeric entry.
layer.add.decal's spec says the other-set selection is for x/y only and
documents the maskEffect it returns; layer.decal.set's says image keeps
the decal's channel or mask and refuses an effect given with another
layer. The drop menu's channel list scrolls past 60% of the window. A
waiting drop lets go once its menu goes undrawn (the 3D view hidden),
and the click that closes the menu no longer moves a decal being placed.