Commit Graph
109 Commits
Author SHA1 Message Date
chasse20 d0b1c7e3ac Auto: Integrate main and fix warp placement, resets and stale drags
Preserve main’s perspective ring fit and use the displayed radius when deciding whether a ring can be grabbed. Keep surface placement on the edited fill’s texture set and end captured drags when the loaded mesh or projection changes.

Preserve toolbar settings across layout changes, honor Ctrl snapping, and expose the manipulator settings as keyboard-adjustable sliders. Reset stored projector rotation and scale when keeping corners, and reject invalid reset arguments before editing.

Skip hidden handle geometry, reuse projected axes, and remove temporary selection and hit-test vectors.
2026-11-26 04:13:53 +00:00
chasse20 21b86d98f6 Auto: Validate rebuilt UV layouts and trim save and reload allocations
Integrate main's dialog and bake-state changes. Reject inconsistent saved layouts at archive and session boundaries, and preserve vertex splits between independently packed materials.

Stream UV coordinates in bounded batches, transfer stored mesh bytes on successful reopen or reimport, and skip import reports that those callers discard. Set the archive version on the owned save snapshot to avoid copying the layer graph twice.

Cover material boundaries, malformed snapshots, locked coordinates and keyboard activation. Update the format and command documentation.
2026-11-26 01:03:44 +00:00
chasse20 05ffb1cc30 Auto: Integrate main and preserve existing sample projects
Stage bundled samples and install them without replacing a file that
appears during the copy. Record the Material Ball’s provenance and
clarify the desktop picker fallback and browser behavior.

Validated with Linux UI tests, focused release tests, formatting,
Clippy, layer checks, and WebAssembly compilation.
2026-11-25 22:50:07 +00:00
chasse20 54ae40b14a Auto: Integrate main and fix bake selection and preview lifetimes
Validate every selected texture set before starting a real or quick bake. Apply linked settings atomically, reject invalid copy selectors, and preserve only the maps needed by a display preview.

Reuse fitted geometry across streamed maps, bound cage projection scratch, and stop discarded work. Release stale scene and thumbnail resources on project replacement. Keep pending imports safe across updates and restore keyboard focus after bake menus and dialogs close.

Add regressions for selection, cancellation, project replacement, and keyboard navigation. Retain main's packaging, dependency, and export changes.
2026-11-25 19:55:33 +00:00
vangel76 cbc6669f48 Ship the sample project as assets/samples and copy it into the Samples folder 2026-11-25 16:44:16 +01:00
vangel76 7b37306c47 Say the Samples folder is desktop-only in the docs 2026-11-25 13:39:48 +01:00
vangel76 9c2393655e Open Sample Project starts in a Samples folder that holds the built-in sample 2026-11-25 11:21:23 +01:00
vangel76 d88bb3ea4b Correct the UV persistence note in the control protocol docs 2026-11-25 10:41:37 +01:00
vangel76 8f60ded96f Save the rebuilt UV layout in the project file
A project with rebuilt mesh UVs now stores the UV of every triangle
corner in uv_layout.bin. Reopening and reimporting the project's own
mesh apply that layout instead of running the unwrapper again, so a
later unwrapper change cannot move saved paint. A format 4 project
with rebuilt UVs but no valid layout is refused.
2026-11-25 00:42:46 +01:00
Rebornim 3f72b65487 Bake mode pass 2: settings sync between texture sets, undoable high polys loaded on a worker, automatic cage, panels in the reference's layout 2026-11-24 14:32:46 +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 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
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
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 c43d620cfa Merge upstream main into feat/uv-unwrap-on-import 2026-11-23 20:49:33 +01: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 fa47c2c183 Force an OpenGL normal and keep the bit depth for the MaterialX maps 2026-11-23 19:40:01 +01: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
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
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
Rebornim b4d810ddcf Filters: engine evaluation, commands, docs and the remaining tests 2026-11-22 05:30:04 +00:00
Rebornim f49ff387f1 Effects, masks and folders: engine evaluation and the remaining tests 2026-11-22 05:30:04 +00:00
Rebornim b5b99d6fd3 Fills: Material and colour commands, panels and tests 2026-11-22 05:30:03 +00:00
vangel76 fa23ac2a27 Allow rebuilding mesh UVs when creating a project 2026-11-21 20:30:49 +01:00
chasse20 255977e304 Align menus and default UI with the context-menu plan
Match menu labels, defaults, checkmarks, toolbar visibility and Help links. Add recent-project limits, per-mode layouts and session log actions. Make dialogs movable and resizable with consistent titles and scrollbar clearance.

Validation: release app build succeeded and preview opened. Full tests and screenshots were not rerun at the user's request.
2026-11-20 04:12:39 -05:00
chasse20 311bf89885 Auto: Integrate texture export and preserve browser log sources
Keep per-set export settings and case-insensitive filename deduplication. Route browser warnings and completion counts through MapExporter, and retain both the 2D view and texture export parity sections.
2026-11-20 01:19:32 +00:00
chasse20 050ec8c1a8 Auto: Fix save destinations and refresh viewer resources
Honor template and layout destinations, preserve the active layout mode, and update the template library after a successful write. Keep Log copy and selection, rotated fill feedback, and image-view restoration consistent with the visible session.

Refresh lighting when an imported environment changes or disappears. Share image resampling by resolution, skip unused headless uploads, bound tile conversion batches, and avoid cloning trace scenes per row slice. Keep the new display and shortcut types in dedicated files.
2026-11-19 23:38:04 +00:00
chasse20 8d44bbc278 Auto: Preserve export plans and reduce texture export memory
Keep desktop previews and UDIM sizing aligned with writes. Preserve map overrides across template edits, prevent cross-set MaterialX references, validate map options and forward them through MCP. Use the shared PGM and PSD writers and enforce the PSD dimension limit.

Reuse diffusion storage, borrow float TIFF samples, skip padding for empty plans and release ZIP inputs as they are packed. Release browser download URLs and callback references on success and failure. Give export messages original wording and organize new types by file.

Validated with release tests, Clippy, layering, WebAssembly, offscreen UI checks and paired allocation probes.
2026-11-19 23:14:14 +00:00
vangel76 de75137759 Export: one same-name rule for every export path, frozen template, stale draft moves, progress count
- Session::export_files leaves out a later set's file named like an earlier one's (with a
  warning on the kept file), so file.exportTextures, the automation textures.export and the
  browser zip share it; the left-out file's own warnings go with it.
- An empty file type override removes the global file type from the set's parameters.
- A running export keeps the template content it started with.
- Moves of an unfinished draft are forgotten when the template is saved elsewhere.
- Texture sets that leave a running export leave its count.
2026-11-19 10:21:10 +01:00
vangel76 729aa837df Export window: freeze settings at Export, refuse same-name overwrites, keep overrides with their maps and sets
- Export takes each texture set's parameters and the output folder when it is clicked; later
  edits do not reach the running export. Export is greyed with no texture set ticked.
- Two texture sets that would write the same file name stop the export before it starts (UI);
  file.exportTextures skips a file named like one an earlier set of the same call exports, with
  a warning, instead of replacing it.
- Closing the window stops the export before it writes another set; opening another project
  stops it, and a set that moves takes its pending export along.
- Per-map overrides follow their map when the template's maps are moved or removed.
- Cancel after texture sets moved, Reset all, and settings saved before they had an owner keep
  the ticks and overrides.
- A set's file type override starts from the template's type when its maps share one.
- PGM luminance is taken before the colour space conversion.
- The Output templates footer counts the maps the current set exports.
2026-11-19 10:11:41 +01:00
vangel76 d595d52770 Fix batch-3 CI test and review findings
- Use a 128 px sample session in the unlit-switch test (main requires 128 or more)
- Drop a deferred Other... view whose image was removed during a bake
- Keep the neutral material of lit Metallic/Roughness views when spec/gloss is on
- Resend the shown Image view after texture sets are recreated
- Drop the default search query only at a word boundary
- Restart the render when the display background changes
- Document when viewport.frame resets the 2D view
2026-11-19 10:00:47 +01:00
vangel76 3cbe724030 UI batch 3: view mode picker, display settings, shortcuts, 2D view, log, templates and Window menu
Combines issues #675, #676, #677, #678, #679, #682, #683, #680, #681 and #684.

- View mode combo with section titles, reference names, Other... image picker and an unlit switch
- Display Settings: environment picker grid and drop slot, reference slider ranges, background color, environment alignment, shadow computation mode and opacity
- Settings > Shortcuts with sections, Reset all to default, Delete to clear and conflict warnings; reference action names and default keys
- 2D view: rotate, snap rotate, drag zoom, F reset, wider zoom limits, UV tile grid, numbers, hover label and one mesh wireframe switch
- Log panel with sources, level colours, selection, copy and clear; the exported log keeps each entry's time, level and source
- Save as template, reference template names and a remembered template
- Window menu with Toolbars, per-mode layouts, Hide UI check mark and views per mode
2026-11-19 08:15:57 +01:00
vangel76 222343ae8f Export textures window: per-set and per-map overrides, more file types, progress console, output templates layout
Adds the reference's export settings page (lists, menus, tooltips, Cancel undoes),
per texture set overrides for template, file type, size and padding, per output map
file type and bit depth, JNG/PGM/PSD/32-bit float TIFF writers with bit depth per
file type, dithering and diffusion padding, a progress bar with Cancel Export, a
console and a tree in the list of exports, and the Output templates tab layout with
its right-click menu.
2026-11-19 08:07:39 +01:00
chasse20 ee90c394e4 Auto: Fix bake patches, camera state, and dialog interactions
Preserve accepted bake preset values during unrelated patches. Restore free-camera roll and recognize equivalent yaw after a full turn.

Refresh open Settings preferences after control updates and reschedule changed autosave intervals. Preserve FOV edits through glides, commit camera renames before row indices shift, and keep the export footer visible while scrolling texture sets.
2026-11-19 02:39:41 +00:00
chasse20 4ff9cab867 Auto: Integrate main and fix UI state, bake reporting, and export plans
Preserve main's procedural patterns and linked-material changes. Keep camera navigation, pending dialogs, Settings drafts, shortcut capture, and shelf contents consistent across project and UI state changes.

Mark persisted panel edits as modified. Accept existing bake settings in presets, count newly baked maps, and open failed bakes on the General log channel. Record log times and severity when each event occurs.

Reuse selected export plans, move completed JSON results into place, and avoid copying cached shelf paths or building unused preset catalogs. Add regression coverage and update the control protocol examples.
2026-11-19 01:47:14 +00:00
Chris Hassebrook 68b579f0c8 Cook MCMAT v3 linked materials at the texture set resolution (#644)
* Cook MCMAT v3 linked fills through MaterialCraft

* Install bounded material bakes at the original drop target
2026-11-18 18:57:44 -05:00
vangel76 ff647b38c3 UI parity batch: settings window, side panels, camera, bake presets, F4 view swap, Help menu
Fixes #637, #642, #649, #651, #655, #664.

- Edit > Settings with General, Shortcuts and Libraries pages, OK and Cancel (#637)
- Right-bar panels pop out with Undock; Export panel, Log tabs, Display and Shader Settings pages (#642)
- Free camera rotation, snap rotate and next/previous camera commands, Normal+height+mesh view (#649)
- Named bake presets, apply bake settings to all texture sets, bake summary toast (#651)
- Swap 3D/2D views with F4 (#655)
- Help > Release notes... and Export log...; tests for Join the community (Discord)... (#664)

Combination: one shared unavailable::NOT_AVAILABLE hint, snapped orbit uses the Settings
rotation speed and levels a free camera, Swap 3D/2D in the Viewport reference order,
symmetry test harness widened for the longer top bar, docs/parity.md regenerated.
2026-11-18 21:40:53 +01:00
FredApps a9fcd33da9 Docs: note that a colour selection's effect.set colors are linear arrays only
The general colour-param paragraph could be read as allowing hex or a grey
number in effect.set's colors list, which that command rejects.
2026-11-18 16:20:11 +07:00
FredApps 5d90d019d9 Merge remote-tracking branch 'origin/main' into docs/colour-param-space
# Conflicts:
#	crates/engine/src/layer_cmds.rs
#	crates/engine/src/tool_cmds.rs
#	docs/control-protocol.md
2026-11-18 16:16:30 +07:00
chasse20 3939886c4b Merge main into the empty-project startup changes
Preserve closed-session guards and project cleanup alongside the new layer, camera and layout controls. Update the menu-order regression for the merged catalog.
2026-11-18 07:03:03 +00:00
chasse20 0ff72b0d46 Auto: Revert export additions and evaluate brush pickup by tile
Remove DDS encoding, its dependency, export options, tests and documentation. Revert the MaterialX export-dialog option and preview additions while retaining engine export support.

Evaluate material-brush and mask Clone/Smudge pickup on demand. Give mask preview and commit an explicit value image. Sample the document in solo mode and avoid redundant export cache invalidation.

Validate saved decal axes, stencil settings and smudge strength. Bound smart-mask reads, write masks atomically and reject external anchor references. Clear stale clone sources on cross-set selection. Reject moves into another set’s folder and use layer positions to detect no-op moves without cloning the project again.

Load saved materials on shelf click and route pinch gestures to viewport zoom. Add regression tests for the affected behaviors.
2026-11-18 05:20:25 +00:00
JonRC 78e15eae08 Merge remote-tracking branch 'upstream/main' into docs/colour-param-space
# Conflicts:
#	crates/engine/src/mask_cmds.rs
2026-11-18 00:14:41 -03:00