Commit Graph
237 Commits
Author SHA1 Message Date
chasse20 009bb0c4d1 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-17 16:22:03 +00:00
Chris Hassebrook 1bdca09fc0 Merge pull request #263 from Aalzard/pbr-folder-import
Import a folder, files or zip of PBR textures as one fill layer
2026-11-17 11:19:04 -05:00
chasse20 fb13129647 Auto: Resolve dock test conflict for PBR import integration 2026-11-17 15:23:02 +00:00
chasse20 7918b51321 Auto: Integrate main and reconcile anchor-picker UI tests 2026-11-17 15:19:26 +00:00
Dylan M. Taylor 9c1b9cbc7b Merge pull request #542 from vangel76/fix/bent-normal-tangent-538
Bent normal maps bake in tangent space, so materials and imported maps read them correctly
2026-11-17 07:19:04 -05:00
chasse20 7ef4e3fa15 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-17 09:26:03 +00:00
chasse20 c5e1098ad4 Auto: Integrate main while preserving saved mask image repairs
Merge main at 6e4e08117b without conflicts. Retain the saved review repairs and the maintainer-requested anchor test deletion.
2026-11-17 08:23:53 +00:00
chasse20 55120d3ae4 Merge latest main into CPR 13 preserving reviewed repairs 2026-11-17 08:19:56 +00:00
chasse20 05dc233d20 Auto: Preserve mask image repairs and remove failing anchor test
Preserve the saved image-menu, project-switch cache, and test repairs before integrating main. Remove the disabled-mask anchor UI test at the maintainer request.
2026-11-17 08:14:04 +00:00
chasse20 5879adc8fd Auto: Integrate main and remove failing anchor UI test 2026-11-17 08:10:31 +00:00
chasse20 5acfa15f78 Auto: Integrate current main with shared tile snapshots
Preserve the reviewed tile sharing alongside incoming recomposition and pen pressure changes. No manual conflict repair was needed.
2026-11-17 07:52:53 +00:00
chasse20 b8e7782830 Auto: Fix PBR import names, map detection, and stale dialogs
Use the documented RAM fallback for zero readings. Preserve dotted folder names, recognize split normal aliases, honor later map names, and clear import dialogs after project replacement. Count same-map drop candidates and clean test fixtures on unwind.
2026-11-17 07:42:09 +00:00
chasse20 bd236caa40 Auto: Integrate main and clarify shared tile snapshots
Preserve the benchmark at its target-branch location. Improve scoped names, spacing and comments, clarify same_tiles semantics, and add regression coverage proving image clones do not duplicate tile handles.
2026-11-17 07:38:20 +00:00
chasse20 8e31ddf7ff Auto: Reconcile PBR import with updated roadmap 2026-11-17 06:46:10 +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 f764ac4e5f Auto: Integrate main and bound PBR import work and memory
Preserve main UI and translation changes. Bound archive indexing, directory scans and native reads; fix resolution-token overflow, unique-name replies and dialog behavior.

Avoid generated-map re-decoding and input-buffer clones, release packed sources after their final use, and borrow dialog candidates. Keep generated pixels identical to PNG reloads. Organize new types and preserve the public classifier module.

Validated with 973 release tests, focused UI and allocation probes, panic hunt, clippy, layering, wasm, formatting and diff checks.
2026-11-17 06:29:22 +00:00
Morion 15208ce5ed Merge origin/main into fix/mask-fill-image-source
Adds a snapshot test of the merged effect panel choosing an image for a Mask Fill and showing its projection controls.
2026-11-17 01:29:15 -05: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 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
vangel76 343b33ee60 Bake bent normal maps in tangent space like the normal map
The bent normal map packed the world-space direction while the normal map
uses the low poly's tangent frame (OpenGL green). Encode the bent normal in
the same frame on the shared CPU/GPU packing path, read imported bent
normal images in the project's normal format, and decode it with the vertex
tangent frame in the neutral material view.

Projects saved before format version 3 held world-space bent normal maps:
loading drops them, keeps the bake settings and asks for a re-bake.

Part of #538
2026-11-16 19:50:20 +01:00
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
Morion f1504d4539 Mask Fill: let the Uniform value choice replace an image source
After picking an image, the Source menu's Uniform value sent effect.set with
value, but the guard only let a uniform or anchor source be replaced, so the
command succeeded without changing anything and the image stayed.
2026-11-12 01:14:34 -05: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
Morion d1f95d71d4 Merge origin/main into fix/mask-fill-image-source 2026-11-11 22:13:05 -05: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