Commit Graph
1204 Commits
Author SHA1 Message Date
Rebornim 05a0ff5118 Generators: Position, World Space Normals and Curvature/AO sections on the reference's controls
Curvature, Ambient Occlusion, Position and the new World Space Normals take the reference
app's section controls under the global ones: invert, blur (occlusion and normals), balance
(a power curve on position and normals, linear on occlusion), contrast and brightness, and for
position and normals three axes, each inverted, blended over the others with its own mode and
weighted. Position reads the baked position map, else the mesh's bounds; World Space Normals
the baked world space normal, else the mesh's normal; both can read an image input instead.
Generators saved before keep their level, softness and noise and render as before; a section
control moves one onto the new controls, and level, softness, noise or direction move it back.
The curvature section names its detail sizes Sharp to Huge and its modes Dual and Unprocessed;
the global invert is a False/True button.
2026-11-24 12:09:40 +00:00
Rebornim d7d9f7bc43 Generators: global blur reaches 72 texels at 2K
The widest global blur matches the reference's: 16 steps of 4.5 texels at 2K, up from 64.
Global blur is new in this pass, so no saved project changes.
2026-11-24 12:09:40 +00:00
Rebornim 2539643ad9 Curvature sizes: comment without a trailing period 2026-11-24 12:09:40 +00:00
Rebornim 4d00158fdb Wear generators: no dead controls
Edges smoothness reached the widest blurred curvature level at about 7 of 16, so the rest of
the slider changed nothing: two wider levels cover the whole range. Ambient occlusion masking
below 0.14 masked nothing on Metal Edge Wear. Mode and sizes on a new Metal Edge Wear and global
blur, balance or contrast on the wear controls were accepted and ignored; they now keep the
earlier model or are refused, as are wear controls a kind doesn't have. Only the blurred levels
a generator reads are built. The labels before the reference's names parse again.
2026-11-24 12:09:40 +00:00
Rebornim fdd2d72b7c Fiber Glass Edge Wear: its seed breaks the woven grunge up differently
The weave the fibreglass grunge uses has no seed, so changing the seed changed nothing.
A seeded grunge now varies the weave's strength, and a test checks every wear kind's
grunge changes with the seed.
2026-11-24 12:09:40 +00:00
Rebornim 606fa32106 Generators: Metal Edge Wear, Dirt and Fiber Glass Edge Wear on the reference's wear controls
The wear kinds take the reference app's controls (wear level and contrast, grunge amount and
scale, triplanar, edges smoothness, ambient occlusion masking, curvature weight, edges masking),
computed from curvature, its blurred levels, ambient occlusion and a grunge pattern of our own
per kind. Fiber Glass Edge Wear is a new kind. Generators saved before keep their level, softness
and noise and render as before; editing a wear control moves one onto the new controls, and
level, softness or noise keep an added one on the earlier model.
2026-11-24 12:09:40 +00:00
Rebornim 471b21cb7d Generator picker: the reference's names on orb thumbnails, swapping the kind in place
Generators carry the reference app's names (Metal Edge Wear, Ambient Occlusion, Light, Position).
The generator slot opens the shared resource picker with each kind rendered as a mask on the
smart masks' preview orb, a die on seeded kinds, larger thumbnails and no current-item outline.
Thin areas stays loadable but is no longer offered. effect.set {generator} swaps a generator's
kind in place, keeping its position, blending and opacity.
2026-11-24 12:09:40 +00:00
FredApps 021ff6fe8b Merge pull request #794 from storytold/context-menu-parity
Align top menus, default workspace, and dialogs
2026-11-24 12:00:16 +01:00
FredAppsandClaude Opus 5.5 039b454867 Keep the resizable Export window from widening itself every frame
The Output templates and List of exports tabs size their columns from the
window's width, and some of their rows are a little wider than the column.
In the fixed-size window that overflow was clipped; in the resizable one it
widened the window, the next frame's columns took the new width, and the
window grew each frame until it ran off the screen, so clicks and hovers
missed their controls (nine export tests failed).

- The tab body lays out in a child area fixed to the body's rect, so an
  overflow is clipped as before and cannot widen the window.
- Each output map card takes the column's width; it took the width the
  card before it left, so every card was 9 points wider than the last.
- The input maps column is 210 points, wide enough for its naming-pattern
  row; at 170 its info icon was outside the window.
- The Save template and Load UI Layout pickers keep the reference titles
  the tests check ("Save template", "Select a UI layout file.").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:03:23 +01:00
FredAppsandClaude Opus 5.5 b57657438c Drop CodeRabbit's marker comments from the protocol doc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:05:50 +01:00
coderabbitai[bot] b6b761da86 Fix session log persistence and defer the sample project save prompt until selection
<!-- coderabbit-ai-generated:v1 -->
2026-11-24 08:01:32 +00:00
FredAppsandClaude Opus 5.5 e604486216 Bound the session log folders and import MaterialX from Import Resources
Each desktop run made a new logs/session-* folder that was never removed,
so the logs folder grew with every start. Starting a run now removes all
but the newest earlier runs' folders, keeping ten in all.

Removing File > Import MaterialX material... left no way to import a
.mtlx from the GUI. Import Resources now lists .mtlx files and imports
them as file.importMaterialX does, as a fill layer. The protocol doc no
longer points at the removed Import PBR texture folder item.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:48:18 +01:00
chasse20 6bc4f3cafc Fix sample project picker and menu review findings 2026-11-24 02:23:29 -05:00
Chris Hassebrook 998e68da74 Merge pull request #788 from vangel76/feat/786-export-usd-asset
Export textures can write the model as a USD file that uses the exported textures
2026-11-24 00:40:47 -05:00
Dylan M. Taylor 9f955aabb6 Write TextureCraft browser downloads through craft-zip (#792) 2026-11-23 23:52:57 -05:00
chasse20 86af6a3e1c Merge latest main into context-menu-parity
Integrate origin/main at 2037b6b8 while preserving the menu and dialog changes. Resolve the color-selection rewrite, toolbar imports, app state, and upstream test cleanup conflicts.

Validation: cargo +1.100.0 check -p texturecraft -p texturecraft-ui-egui --all-targets --locked passed. Tests and screenshots were not run.
2026-11-23 17:24:49 -05:00
vangel76 e1577e3686 Bind only the textures the export kept in the USD asset
Each usdAsset entry now carries the reservedNames its command ran with, and the
asset applies the same reservation rule as the texture export (reserved file
names and UDIM patterns, then earlier files of the job), so it never binds a
file the export skipped.
2026-11-23 23:13:32 +01:00
vangel76 0924e1314d Merge main into feat/786-export-usd-asset 2026-11-23 23:03:53 +01:00
Chris Hassebrook 2037b6b823 Merge pull request #784 from vangel76/feat/760-materialx-export-ui
Export OpenPBR MaterialX from the export window
2026-11-23 16:55:24 -05:00
chasse20 7ff8f65f77 Auto: Keep MaterialX references safe across texture sets
Reuse compatible template maps and write dedicated OpenPBR maps for the remaining supported inputs. Reserve earlier filenames and UDIM patterns before rendering, and omit inputs whose textures would belong to another set.

Report when an export writes no files. Cover map compatibility, collision handling, and empty exports with regressions and document the resulting behavior.

Integrate main without target-side content changes. Validated by the retained Linux cargo xtask ci run.
2026-11-23 21:15:39 +00:00
vangel76 8f7c956335 Document unbound UDIM maps and the implicit default material in the USD asset 2026-11-23 21:59:01 +01:00
vangel76 4be73547bf Fix USD asset review findings: UDIM name clashes, material-less meshes, normal convention, sent params, docs 2026-11-23 21:56:35 +01:00
vangel76 c0523d2f68 Write the model as a USD file that uses the exported textures from the export window 2026-11-23 21:27:42 +01:00
vangel76 94daa7370c Name the file in the MaterialX map warning and check reservedNames before creating the folder 2026-11-23 20:47:12 +01:00
Dylan M. Taylor ff79e861f8 revert: restore scheduled release.yml dry-run on main (#787) 2026-11-23 14:45:41 -05:00
vangel76 c9640bae07 Keep the files of earlier texture sets of an export when writing the MaterialX maps 2026-11-23 20:23:09 +01:00
vangel76 927fedf313 Show the export's warnings in the export console 2026-11-23 20:18:21 +01:00
vangel76 fa47c2c183 Force an OpenGL normal and keep the bit depth for the MaterialX maps 2026-11-23 19:40:01 +01:00
vangel76 b84f7b56e4 Write the OpenPBR maps for the MaterialX whatever template is selected 2026-11-23 19:23:50 +01:00
Dylan M. Taylor f6979544dd ci(release): publish scheduled nightly prereleases (#785) 2026-11-23 13:17:38 -05:00
vangel76 b53c931248 Add a MaterialX export option to the export window 2026-11-23 18:57:39 +01:00
Chris Hassebrook b592efefa5 Merge pull request #780 from storytold/779-test-and-unused-cleanup
Remove redundant tests and fix unused build warnings
2026-11-23 11:07:05 -05:00
chasse20 175e92dde6 Check translation lookup behavior without timing
Account for 1c2f9175 by removing its standalone benchmark. Replace the lookup_is_fast wall-clock check (F2) with language-switch and missing-translation assertions in saved_language_codes_and_spanish_lookup, following PhotoCraft’s translation tests.

Verified all seven i18n tests with coverage instrumentation and pinned catalogs, formatting, layering, and strict UI Clippy.
2026-11-23 10:03:38 -05:00
chasse20 1c2f91759b Measure translation lookup speed in a standalone benchmark
Move i18n::tests::lookup_is_fast to the translation_lookup benchmark (F2). Keep the 1,000 ns budget for warm lookups over the embedded Japanese catalog. Verify borrowed translations and the English fallback deterministically in the language-switch unit test.
2026-11-23 09:38:12 -05:00
Dylan M. Taylor 097017211d ci(release): forward ARTCRAFT_SERVICES_DISPATCH_TOKEN secret (#781) 2026-11-23 09:34:20 -05:00
chasse20 30b1f3b938 Validate control-server test replies as bounded bytes 2026-11-23 04:25:29 -05:00
chasse20 30d7ee51c4 Remove redundant tests and fix unused build warnings 2026-11-23 03:56:43 -05:00
Chris Hassebrook 2e8337ed62 Merge pull request #765 from Rebornim/split/698-5-filters
Properties (5/5, stacked on #764): filters
2026-11-23 03:02:45 -05:00
chasse20 71a5637701 Auto: Integrate main and streamline Warp and Blur Slope evaluation
Align the picker, catalog, replacement, defaults, and protocol on warp and blurSlope. Retire the old selectors, preserve stored filter settings, and apply Source Tiling to sampled inputs inside each UV tile.

Prepare Warp directions once per region and reuse the source for independent directions. Keep Chain sampling at each successive position.

Preserve main's draw identities and placed-fill picker. Repair sparse Compare and anchor evaluation, lighting, gradient boundaries, and seed restoration. Reduce redundant Color Match work, blur scratch, and cold environment reductions.

Validated with Linux cargo xtask ci, release compositor tests, CLI examples, and filter snapshots.
2026-11-23 07:21:19 +00:00
Chris Hassebrook f46ee813e1 Merge pull request #764 from Rebornim/split/698-4-effects
Properties (4/5, stacked on #763): effects, masks, folders and instances
2026-11-22 20:29:29 -05:00
chasse20 64d1108b14 Auto: Fix Compare evaluation, folder resets and mask editing
Integrate main's projector, resource-picker and UI changes. Keep Compare inputs tied to the correct folder draw, propagate filter margins through sparse masks, and preserve the real backdrop in folder thumbnails.

Retarget saved seed resets when folders are copied. Preserve grayscale tool choices, reject missing mask images before mutation, and release the previous anchor's draft and undo state when selection changes.

Borrow material data during planning and write filtered samples directly into output rows. Cover the repaired behavior in the compositor, engine and Properties tests.
2026-11-23 01:00:29 +00:00
Chris Hassebrook 7748b4414c Merge pull request #763 from Rebornim/split/698-3-material
Properties (3/5, stacked on #762): Material tab, colour picker, swatches and eyedropper
2026-11-22 18:29:19 -05:00
chasse20 8b2821e163 Auto: Integrate main and fix material preview and picker state
Preserve linked fills and imported alpha images, bind cached composites to their mesh, and keep delayed orb results from evicting newer previews. Avoid rendering hidden picker tiles, redundant queue scans and an extra HDR image buffer.

Correct picker cancellation, native pointer ownership, channel selection and single-parameter pattern edits. Update the Material controls guide, retain the approved Studio Small 09 attribution, and exercise the mask projection through its accessible control.
2026-11-22 22:19:46 +00:00
Chris Hassebrook 019fe97395 Merge pull request #762 from Rebornim/split/698-2-fill
Properties (2/5, stacked on #761): shared controls, Fill and Symmetry tabs
2026-11-22 15:24:38 -05:00
chasse20 763737a508 Auto: Integrate main and fix projection sampling and Properties edits
Preserve per-selection scrolling when integrating the Fill and Symmetry panels. Keep batched edits and final drag motion in the correct undo step, expire hidden editors and preview textures, and show keyboard focus on Properties controls.

Correct per-copy depth culling, UV footprints, linear-light mip filtering and memory accounting. Preserve cropped-fill coverage through placement and reload. Reject malformed decal dimensions before mutation and reuse mesh bounds within each operation.

Bound preview ray scratch with reusable row batches and clip hidden outlines before generating dashes.
2026-11-22 19:58:41 +00:00
Chris Hassebrook fc21815f50 Merge pull request #761 from Rebornim/split/698-1-controls
Properties (1/5, base of the stack): panel shell - header bar, popups, minimum width, scroll place
2026-11-22 06:44:54 -05:00
chasse20 a90313c888 Clear texture updates in the headless Properties scroll test 2026-11-22 06:06:10 -05:00
chasse20 c55be1940d Auto: Fix dock focus, popup dismissal, and Properties scroll state
Reuse the dock renderer’s tab geometry and keep keyboard focus visible across themes. Track outside drags through release in the main and floating viewports.

Keep Properties offsets only for live selections in the current project, including inherited masks and effects. Avoid copying layers in read-only Properties branches and release independent test apps between scenarios.

Integrate main’s shared PNG inspection for GLB and USD export.
2026-11-22 10:42:26 +00:00
Rebornim a9928aacf3 Instanced folders: a filter's lit layer and height read the instance's space too
The filter stack's own plans (the lit base colour below a filter and the heights it reads) take the traversal's folder offset, as the neighbourhood fields do since part 4.
2026-11-22 05:30:04 +00:00
Rebornim 8c521dbf56 Instanced folders: a neighbourhood filter under an offset folder reads its content in the instance's space
Reported by skylartaylor on #698: a Blur on a layer inside an instanced folder under a scaled or rotated folder read its content in the source's un-offset space. Neighbourhood fields are built and looked up per layer and folder offset, for content and mask fields and on the cached-layer path.
2026-11-22 05:30:04 +00:00