Commit Graph
79 Commits
Author SHA1 Message Date
chasse20 009bb0c4d1 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-17 16:22:03 +00:00
chasse20 f8a202c77a Auto: Expand painting and baking workflows and integrate main
Add configurable mesh-map baking, cage previews, polygon fill, path editing, symmetry controls, generator settings, and material previews. Update shelf, docking, project configuration, localization, and UI persistence.

Update mesh import, project loading and recovery, rendering, compositing, and painting. Expand regression tests and benchmarks, refresh dependencies and documentation, and incorporate CI, updater, and packaging changes.
2026-11-17 08:40:45 +00:00
chasse20 55120d3ae4 Merge latest main into CPR 13 preserving reviewed repairs 2026-11-17 08:19:56 +00:00
chasse20 c5f7f17380 Auto: Preserve HDR fills and adapt benchmarks to main
Integrate main and adapt the performance suite to current bake settings,
map selection and undo APIs.

Preserve full triplanar image weighting for floating-point resources and
add a regression for lost HDR contributions. Use hardware floor when
SSE4.1 is enabled, retaining the portable fallback.

Split Report and Row into their own files and complete scoped naming,
spacing and comment cleanup.

Validated with 132 release tests, workspace Clippy, wasm and layering
checks, formatting, and retained targeted noise and performance probes.
2026-11-17 07:57:09 +00:00
Chris Hassebrook b2c7806961 Merge pull request #437 from subtilicus/fix/viewport-normal-precision
Keep baked normals above 8 bits in the viewport
2026-11-17 02:46:08 -05:00
chasse20 071d410d8a Auto: Integrate main and harden half-float normal display
Preserve signed RGBA16F normal uploads while integrating current main.
Reject invalid baked samples before blending, skip sampling absent baked
normal maps, and cover two-set normal shading with a headless test.

Complete scoped spacing, comment and shader constant cleanup while
preserving shader values.
2026-11-17 06:42:03 +00:00
chasse20 22742ce173 Auto: Integrate latest main with tile-aware recomposition 2026-11-17 06:39:06 +00:00
chasse20 ff4c285b1d Auto: Integrate main and preserve tile-aware invalidation 2026-11-17 06:32:23 +00:00
chasse20 379288e8c3 Merge current main into PR #226 2026-11-17 06:20:17 +00:00
chasse20 efaff5e13e Merge main into PR #226 and preserve reviewed fixes 2026-11-17 06:10:52 +00:00
chasse20 f10d92b997 Auto: Respect curvature modes and filter inherited anchor choices
Combine micro height with edge and cavity responses before mode selection. Build inherited-effect Fill and micro-detail anchor choices from the effect owner. Add focused regressions for both behaviors.
2026-11-17 03:56:18 +00:00
chasse20 fd4b06c3e5 Auto: Integrate main and preserve filtered mask anchor values
Retain intermediate filter stages needed by mask anchors, with measured
buffer capacity and release checks. Preserve main's generator and layer
controls while fixing instance-owner validation, micro defaults, inactive
anchor labels, and clipboard dependency reporting. Move MicroDetail into
its own module and complete scoped cleanup.

Validated affected release suites, Clippy, wasm, layering, formatting,
panic_hunt, and the final diff.
2026-11-17 02:55:37 +00:00
chasse20 442edf310a Auto: Integrate main and preserve generator review repairs 2026-11-15 19:26:39 +00:00
chasse20 6825aac7e4 Auto: Integrate main and reduce compositor buffer lifetimes
Preserve filter lookahead alongside main image-cache invalidation and input
bounds. Move HeldFields into its own module and finish scoped cleanup.
Charge repeated USD path names before allocating retained strings.
Reuse the blur transpose-back buffer and release scattered texels before
allocating filter temporaries.

Validated compose/engine release tests, Clippy, layering, wasm and formatting.
2026-11-15 07:14:57 +00:00
chasse20 7bfcf3fc27 Auto: Integrate main and reuse decoded material maps
Preserve main's decoder, atomic-save, material-payload, and USDC limits.
Bound material reads by the remaining payload budget and trim retained
buffers. Replace quadratic image-name searches with map lookups, and
cache validated linked-material maps before synchronization so they
are not decoded twice.

Add import/undo/redo and payload-boundary regressions, extract
ImageIdentity, remove the unchecked scratch example, and complete
scoped cleanup. Correct the integrated style guide's product name.

Validated 546 release tests, Clippy, layering, wasm, formatting, and
focused allocation and lifetime probes.
2026-11-15 04:16:43 +00:00
Morion 74d213272d Release kept filter fields when a stroke begins during a sliced pass (#475)
Fields kept for the coming composites stayed allocated for as long as a
stroke lasted while tiles still followed, because the end-of-pass cleanup only
runs when none do. A stroke already kept them from being used; now it also
drops them. The test keeps fields first, then starts the stroke.
2026-11-13 14:20:27 -05:00
Morion 1a742d3fa4 Frame-sliced recomposites filter a run of tiles once (#475)
A stack with a neighbourhood filter (blur, high pass, bevel, glow...) made a
recomposite spread over frames many times slower than the same recomposite in
one call: every chunk filtered its own surroundings again, and on a machine
with many threads the filter's per-texel parallel steps cost more to hand out
than to run on a region of a few tiles.

- Neighbourhood filters split their per-texel work into tasks of at least
  16384 texels. Each texel is computed on its own, so results do not change.
- Session::update_for tells the compositor which dirty tiles follow the chunk
  in its block (up to 64). The compositor filters the chunk and those tiles at
  once and keeps the fields for the composites that follow, compared by
  everything the stack reads, and drops them at the end of the pass, after an
  edit, and under a live stroke.

Results are identical to the one-call composite: tests cover cold, warm and
partly evicted hot-layer caches, an edit mid-pass and a live stroke.
perf::bench_sliced_filters_4k times both paths.
2026-11-13 12:38:58 -05:00
Morion d5675e090b Keep cached layer composites across unrelated image imports 2026-11-13 09:38:39 -05:00
Morion Tutoriales b982d66008 fix(compose): retain curvature cache layout variants (#459) 2026-11-13 08:28:43 +01:00
Subtilicus f32e4ea7f0 Keep baked normals above 8 bits in the viewport
The viewport's Normal display texture was RGBA8, so baked normals (stored
as f32) were quantised to 8 bits per axis before shading. On smooth,
mirror-like materials this showed as banding. The texture is now RGBA16F
holding the signed normal (flat is exactly +z), as Height already does;
the raster and GPU path-tracing shaders read it directly.
2026-11-12 10:23:09 +01:00
Rebornim 7bd6c0ef2b Generators: global adjustments, output resolution and image inputs
- Global blur, balance and contrast on every generator (GeneratorGlobal).
  The blur blurs only the generator's own value, up to a 64-texel radius
  at 2K, weighted by mesh coverage; balance picks the input range that is
  stretched to 0..1 and contrast narrows it; invert stays last.
- Output resolution (OutputResolution, ResolutionMode): Auto or UV tile,
  Texture set or a custom size, times a factor from 1/8 to x8, never
  coarser than one value per 64 texels. Below the UV tile's resolution
  the generator is averaged over cells and read back bilinearly.
- Image inputs: each mesh map a generator reads can read an image, a
  uniform value or an anchor point instead. Generator inputs count as
  anchor and image readers (compositing order, paste, remove unused).
- Blur and resolution run as a neighbourhood stage of the mask, listed
  the same way by every caller and only in masks.
- Commands: blur, balance, contrast, resolution, customResolution,
  resolutionFactor on effect.add.generator / effect.set, and input with
  inputImage / inputValue / inputAnchor / inputBaked on effect.set.

New fields are skipped when they hold their defaults and neutral settings
return the value untouched, so saved projects load, save and render as
before.
2026-11-12 04:39:32 +00:00
BFlat b1806e4010 Merge pull request #231 from vangel76/fix/217-generator-offset
Add an offset slider to mesh-map generators
2026-11-12 08:52:04 +07:00
chasse20 77a03ddcb3 Merge main and fix decal placement and input handling 2026-11-10 18:29:43 -05:00
Rafael Mendes 10aaae2f51 Merge main: rename editor in the redesigned effect rows 2026-11-10 18:32:29 -03:00
Chris Hassebrook d664dc239c Revert "Show a whole material at once: coarse first look, then the exact result" 2026-11-10 16:08:27 -05:00
Chris Hassebrook 783cbdcb27 Merge pull request #381 from SteamSmith/perf/material-loading
Show a whole material at once: coarse first look, then the exact result
2026-11-10 16:07:09 -05:00
Rafael Mendes 732f6bae28 Anchor points in masks, generator micro detail, effect rename
Anchor point effects can now sit in a mask, where they record the mask
value at their place for fills and generators above. Generators take an
anchor's height as micro detail (microAnchor, microAmount). Effects can
be renamed from the Layers panel, and the anchor picker lists anchors
under their own heading.

Closes #389
2026-11-10 17:52:26 -03:00
FredApps 26ddc8c256 Merge main and keep nested thumbnail controls accessible 2026-11-10 20:10:52 +01:00
SteamSmithandClaude Sonnet 5.5 208c645d0c Show a whole material at once: coarse first look, then the exact result
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>
2026-11-10 06:40:11 -05:00
chasse20 2d0b8e6a48 Fix thumbnail previews and cache retention 2026-11-10 06:37:12 -05:00
chasse20 368731f7a4 Fix Clippy checks and clean up affected functions 2026-11-10 05:33:20 -05:00
MistyMystery 424ab64ce8 Merge upstream main into layers-panel-redesign 2026-11-09 23:54:51 +04:00
Simon Hull 2a01a9670d Base color is converted only for sets with base color or opacity 2026-11-08 21:17:04 -06:00
vangel76andClaude Opus 5.5 df86375a16 Merge upstream/main into fix/clippy-chunks-exact-to-as-chunks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:18:59 +01:00
vangel76andClaude Opus 5.5 07e94e1c86 Merge upstream/main into fix/217-generator-offset
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>
2026-11-08 09:18:34 +01:00
Chris Hassebrook e8145421c3 Fix curvature detail handling and merge main 2026-11-08 07:31:13 +00:00
vangel76andClaude Opus 5.5 6c3e2f9625 Merge upstream/main into fix/217-generator-offset
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 08:17:31 +01:00
Rebornim cbe3c86acb Curvature detail: full-strength block borders, neutral raw curvature, stricter sizes
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.
2026-11-08 01:38:20 +00:00
vangel76 d8ecfb7d42 Merge upstream/main into fix/clippy-chunks-exact-to-as-chunks 2026-11-08 02:27:35 +01:00
Rebornim 508c4bb2aa Keep the click that dismisses the image drop menu from painting
The views don't paint while a dropped image waits for its menu pick, so a click
on the mesh outside the menu only closes it. Also document Texel::source and
DecalDrop::menu_id.
2026-11-08 00:11:02 +00:00
Rebornim 1a0fc5fec8 Curvature detail: build only the sizes in use, map coverage on all cores 2026-11-08 00:10:40 +00:00
Rebornim 906dcf324e Curvature detail: name the tuned weights, clean up the effect plans and blur 2026-11-08 00:10:40 +00:00
Rebornim a1d010ccb2 Curvature generators: mode and detail sizes
Curvature and edge wear generators read the baked curvature map one
texel at a time, so they only marked the sharpest edges. They now take a
mode (edges, cavities, both, raw) and seven detail size weights: the map
itself and the map blurred at 1 to 32 texels at 2K, padded past the UV
islands and built once per map and layout. Each size's edges and
cavities combine like a screen blend.

New curvature and edge wear generators use detail sizes. Generators saved
without them, and smart masks, read the map exactly as before.
2026-11-08 00:10:40 +00:00
Rebornim c827d1b910 Drop a shelf image on the texture set under the cursor, as a channel or a mask
An image dragged over the 3D view highlights the texture set under the
cursor, as materials do. A drop opens a menu at the drop point: Mask, then
that set's channels. A pick selects the set and places the decal there
with the image in the picked channel, or as the gray mask of a new fill
layer. A click elsewhere places nothing; the background opens no menu.

layer.add.decal takes channel (a channel id, default baseColor, or
"mask") and adds the decal to the set under the point, selecting it, as
one undo step. layer.decal.set takes effect to edit a mask decal, so the
view's frame and handles work on it too, and a new image stays in the
channel the decal was placed in. One-value channels and masks read an
image's gray instead of its red.
2026-11-08 00:10:09 +00:00
Chris Hassebrook 30414caa6b Merge pull request #298 from Rebornim/feat/mask-filter-chain
Masks and content stacks run every neighbourhood filter
2026-11-06 10:40:45 -05:00
RebornimandClaude Opus 5.5 f6b2010109 Run every neighbourhood filter of a mask or content stack
Only the last neighbourhood filter of a stack ran; any below it was
skipped silently, so Blur then Warp gave the same result as Warp alone.
field() now runs each one in turn, continuing from the previous field,
over a region widened by what the filters above it read. Stacks with a
single neighbourhood filter are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 06:46:26 +00:00
chasse20 747068dbdf Fix bake settings and UV tile controls 2026-11-05 22:39:42 -05:00
chasse20 476d5ecc8b Guard preview inputs and optimize sparse mask reads 2026-11-05 18:54:07 -05:00
RebornimandClaude Opus 5.5 adcc43b077 Smart mask previews that show the mask
Shelf thumbnails now show each smart mask applied with mask.smart.apply to a
baked preview shape (geom::primitives::preview_orb) and read back from the
compositor (compose::mask_at, a sparse read sharing mask_image's per-tile
code), shaded flat white over a softly lit near-black surface. The shape bakes
once on a worker; preview::smart_mask's world-noise approximation is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 20:44:48 +00:00
MistyMystery 11d889dbf5 Redesign the Layers panel rows with live thumbnails
Layer rows are 48 points tall with alternating shades, hover, an accent edge on the selected
row and a divider under each layer. Each row shows its content thumbnail (the layer's own result
in the displayed channel) and its mask thumbnail, each selectable on its own; a subtitle names
the layer type and effect count; blend mode and opacity stack on the right. Effects hang under
their layer on tree lines in "Content effects" and "Mask effects" groups that fold without
touching the document, each with a thumbnail of the stack up to and including it (a hidden
effect shows what it bypasses, struck through). Folder contents indent with lines.

Paint and fill thumbnails show their own coverage over a checkerboard; folders composite their
children. Every size derives from layer_panel::layer_preview_size, so a preview size setting
plugs in there. New strings are translated in every shipped language.
2026-11-05 06:53:21 +04:00