Commit Graph
201 Commits
Author SHA1 Message Date
chasse20 44079ecab5 Auto: Integrate main while preserving bake visualization
Merge main at cce9ada while retaining the saved bake repairs and layout. Resolve docking, module, and viewport overlaps with the new Assets shelf and tool-availability behavior.
2026-11-16 00:32:06 +00:00
chasse20 a0905d8b4a Auto: Preserve bake repairs and finish pending main merge
Finish integration of main at 7550205 with all saved bake review repairs and cleanup intact.
2026-11-16 00:19:03 +00:00
chasse20 a43dadbaa5 Auto: Integrate main and preserve tool and compositor fixes
Integrate shared translation catalogs, updated Craft libraries, generator adjustments and input overrides, mesh replacement, shared format readers, and layer-panel controls.

Preserve tool-availability guards, quick-mask path protection, brush-cursor behavior, compositor cache reuse and buffer cleanup, and reduced dirty-tile selection work. Include import and allocation bounds, atomic-save protection, material-link compatibility, regression tests, documentation, and upstream build and packaging updates.
2026-11-15 20:55:47 +00:00
chasse20 7a780244d9 Auto: Integrate main and guard unavailable tool actions
Preserve the shared-catalog integration and saved review repairs. Reject saved path commits during quick-mask editing, hide the unavailable 2D brush cursor, and reduce dirty-tile selection work. Keep the Selection test fixture in its own module.
2026-11-15 20:47:26 +00:00
chasse20 ce96c243a1 Auto: Integrate mesh replacement from latest main 2026-11-15 19:44:18 +00:00
chasse20 23ef7b15ab Auto: Integrate latest main with reviewed generator changes 2026-11-15 19:38:34 +00:00
Valentin Klein 0d18d7afb7 Add mesh replacement backend and reimport safeguards (#230)
Add file.changeMesh for trusted local callers while preserving layers, remembered mesh paths, imported images and bake resources. Retain unchanged-layout paint preservation, cache/cage invalidation and stale-bake cancellation safeguards.

The temporary Change mesh menu entry is removed. The Project Configuration 3D Mesh UI will follow separately.

Contributor: @vangel76.

Validated by fresh Ubuntu and Windows CI at the exact head-equivalent tree; QA confirmed the new dependency inputs and named backend/safety regressions.
2026-11-15 13:32:35 -06:00
chasse20 442edf310a Auto: Integrate main and preserve generator review repairs 2026-11-15 19:26:39 +00:00
Dylan M. Taylor b02a3ab44a Exercise linked material cooks under coverage 2026-11-15 12:56:36 +00:00
Dylan M. Taylor 0d90953467 Share portable materials and preserve SBS links 2026-11-15 11:44:04 +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 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
test-bit-sys 6270aeca05 fix(engine): reset paint target to content when undoing mask (#307) (#398)
* fix(engine): reset paint target to content when undoing mask (#307)

* fix(engine): resolve mask_owner in after_history and clear below cache in test (#307)
2026-11-12 17:56:41 +01:00
test-bit-sys a969983a52 fix(engine): resolve resource stem and list available names in layer.add.image (#337) (#391)
* fix(engine): resolve resource stem and list available names in layer.add.image (#337)

Accept an unambiguous file stem in layer.add.image alongside the full resource name with extension. When the requested resource is not found, list the available resources or guide the user to resource.import.

* fix(engine): filter image lookup stems and hints to decoded images (#337)
2026-11-12 17:56:34 +01:00
test-bit-sys e03e6fae6a fix(engine): reject unparseable colour parameters with an error (#369) (#390)
* fix(engine): reject unparseable colour parameters with an error (#369)

When a colour parameter cannot be parsed, fail with an error describing the expected color format instead of silently falling back to defaults.

Update color_param to return an explicit error and propagate across commands that accept color values.

* fix(engine): validate f32 overflow, pre-parse state mutations, and keep UV pairs strict (#369)
2026-11-12 17:56:19 +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
Rebornim 5214f3dbba Bake mode: list overlapping UVs and unpaired parts before baking
Above the bake bar, bake mode lists what would spoil the next bake of the included
texture sets: a UV layout overlapping by more than 1%, and under "By Mesh Name" the
low-poly parts no high-poly part matches and the high-poly parts that match no low-poly
part. The pairing comes from the bake's own name keys, now one helper the bake and the
list share.
2026-11-12 04:33:37 +00:00
Rebornim 4fd1e1448e Bake settings: high poly list, and Cage and Skew Correction greyed with the reason
High Poly Scene is a list with + and -, as in the reference. Without a high poly the
high-poly, Cage and Skew Correction controls show greyed instead of hidden, and a line
says why. Skew Correction applies only to a distance-based cage with Average Normals and
a separate high poly, in the panel and in the bake (a painted skew map no longer
changes other bakes).
2026-11-12 04:33:37 +00:00
Rebornim dafbdf3ec7 Bake mode: the Baking Visualization panel and neutral material, as in the reference
Every overlay gets the reference's colour swatch and eyedropper: the high poly, its
matching error, the cage's surface and wireframe (separate, each with an opacity), the
missing seams and the project mesh. The panel opens as the reference's does at first
launch; its eye hides the baking meshes and greys their rows. Show for selected texture
set only filters the cage and the high poly; a hidden high poly leaves the GPU.

The UV seam overlay now marks the hard edges the UV layout does not split, on the low
poly and the cage, in the 3D and 2D views.

The project mesh can show the neutral material, picked in the 3D view's view menu:
colour, roughness, metallic, baked AO, an optional baked bent normal, and Quality as
importance-sampled reflections per pixel.
2026-11-12 04:33:37 +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
Rebornim fc2f62656e No new paths in fill layers or the quick mask; quick mask Edit needs the mask on
A path committed on a fill layer (its content, an effect in it or an
instance of it) or while the quick mask is edited is refused; paths already
saved in a fill layer stay editable through their sublayer. Edit and Invert
quick mask are enabled only while the quick mask is on, and turning it off
stops editing it.
2026-11-11 06:35:41 +00:00
Rebornim 77d5edbce6 Tool availability: which tools can act on the selection
Session::tool_usable answers per tool: brushes and Path act on paint layer
content, paint sublayers, masks and the quick mask while it is edited; fill
content, filters, generators, folders, instances and an empty selection take
none of them. Smudge and Clone can't paint mask values yet. Path also edits a
selected path sublayer, wherever it is. The color picker always acts; the
geometry mask needs a layer.
2026-11-11 06:35:41 +00:00
chasse20 3295cec476 Merge main and preserve path cursor behavior 2026-11-10 22:47:15 -05:00
chasse20 76b9a30f63 Guard stored paths and fix History redo jumps 2026-11-10 22:23:51 -05:00
chasse20 f7be672c92 Extend rays for displaced fill copies 2026-11-10 21:12:29 -05:00
chasse20 f17e524776 Fix path undo repaint and restore Apply 2026-11-10 21:07:57 -05:00
chasse20 0886db98f8 Fix moved fill copies on curved surfaces 2026-11-10 20:49:34 -05:00
chasse20 2f2ba103be Fix non-Linux path benchmark imports 2026-11-10 20:39:32 -05:00
chasse20 6ec769feca Merge main and fix path preview issues 2026-11-10 20:31:49 -05:00
chasse20 ca08fb7c3d Merge main and fix symmetry review issues 2026-11-10 20:22:40 -05:00
chasse20 77a03ddcb3 Merge main and fix decal placement and input handling 2026-11-10 18:29:43 -05: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
FredApps 26ddc8c256 Merge main and keep nested thumbnail controls accessible 2026-11-10 20:10:52 +01:00
chasse20 7de078d8d9 Merge main and tidy mask-value shortcut tests 2026-11-10 07:15:02 -05: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
chasse20 a5f09109ea Merge main into PR 234 2026-11-10 05:33:20 -05:00
chasse20 3496930a87 Cancel active strokes when bake preview starts 2026-11-10 02:29:37 -05:00
chasse20 7e2b3c7e6a Move bake preview setup into the engine 2026-11-10 01:58:43 -05:00
chasse20 832a7f9e89 Fix live bake preview review findings 2026-11-10 01:34:02 -05:00
vangel76andClaude Opus 5.5 254ee16b04 Merge upstream/main into fix/217-generator-offset
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 23:26:53 +01:00
MistyMystery 424ab64ce8 Merge upstream main into layers-panel-redesign 2026-11-09 23:54:51 +04:00
MistyMystery 0c1f66d1f5 Live bake preview: update for the bake refactor, share streamed map buffers, narrow the cancel guarantee
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.
2026-11-09 19:49:07 +04:00
chasse20 c573250601 Merge latest main into baked map import
Preserve both module and translation additions. Register the baked map tests in the consolidated integration suites.
2026-11-08 21:42:24 -05:00
chasse20 12eb4a45da Merge main and resolve color selection UI conflict 2026-11-08 20:25:00 -05:00
chasse20 4ed0d49a1c Move bake preview classification into the engine
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.
2026-11-08 19:13:06 -05:00
FredAppsandFredApps 4be75a2b11 test: bound hostile-input bake fixture to project resolution (#356)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-08 12:55:22 +01:00