Commit Graph
997 Commits
Author SHA1 Message Date
Dylan M. Taylor 56efb48efb packaging(linux): support co-installable nightly packages (#801)
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-24 19:05:51 -06:00
vangel76 e8473240fd Output templates: Import and Export reachable from the keyboard, two tooltip fixes
The Presets row gets a Template actions button (three dots) that opens a menu with Import and
Export of the selected template. It is focusable, opens with Import focused and closes after an
action, so no pointer is needed. The row's right-click menu keeps both entries.

An inverted empty swatch names the colour it writes after inversion, and the disabled
Separate R, G and B item says R, G and B must read the same map and be inverted alike.
2026-11-24 21:12:52 +01:00
vkleinmpandClaude Opus 5.5 41c6b3047a Merge main (021ff6fe) into feat/789-export-ui-parity
Conflicted files and their resolution:

- crates/ui-egui/src/export_window.rs: main (#794, 039b4548) made the
  Export window resizable, laid it out bottom-up and put the tab body in
  a clipped child so an overflow cannot widen the window each frame; it
  also wraps both settings pages in one scroll area, sizes the texture
  set list from the space left and retitles the window "Export Textures".
  All of that is kept. This branch's layout is kept on top of it: boxed
  tab buttons, the naming pattern on OUTPUT TEMPLATES, equal-width footer
  buttons, Reset all only on SETTINGS, no count/save/export on OUTPUT
  TEMPLATES, its tooltips and the bigger list rows. The window opens at
  this branch's reference size (capped by the screen) as its default
  size instead of a fixed size, so it stays resizable; egui counts a
  window's size with its frame and title bar, and main's layout now fits
  the content inside it, so the frame margins and title bar height are
  added to the reference content size (without that, the PR's
  the_window_has_the_reference_size test measured 672 instead of about
  740 points of content). set_list no
  longer takes a body height (main's available-height sizing replaces
  it); the PR-only "exp_global_scroll" area is replaced by main's
  "export_settings_page" one, which also covers a texture set's page.
- crates/ui-egui/src/export_templates.rs: this branch's reworked
  OUTPUT TEMPLATES tab (map lists, output rows, constants) is kept. Main's
  fix for cards growing wider one after another is carried over to the
  output rows: each row is laid out in the width the column had before
  the first row. Main's INPUTS_WIDTH/LIST_WIDTH/CARD_MARGIN constants
  belonged to the old card layout and are dropped; main's dialog-based
  question window merged cleanly.
- crates/ui-egui/src/mesh_export_options.rs: main's new
  windows::dialog(ctx, ...) signature with this branch's fixed width.

No test was changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 14:00:10 +01:00
vkleinmpandClaude Opus 5.5 0af0c0f461 Export UI: TextureCraft's own wording instead of the reference's texts
The export dock, Mesh Export Options and Export textures window keep the
reference's layout, but their texts are now our own. Where main had a
TextureCraft text for a control (footer tooltips, console lines, override
menu, reset button, dilation hint, naming pattern info), it is back. New
texts describe what TextureCraft does: the USD tooltip says the mesh is
always written, the Mesh Export Options info tooltips say the mesh is
always triangles and normals are not recomputed. The drop popup asks
"Which part of <map>?", empty swatches read "Empty (writes black)", new
rows are named after their layout (Gray, RGB, RGBA), and the map panes
use TextureCraft's channel, bake and converted map names with OpenPBR
parameter names for the inputs TextureCraft lacks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:53:55 +01: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
vkleinmpandClaude Opus 5.5 1abb7bda34 Output templates: new output maps get a per texture set file name
Create named new rows just "Grayscale", "RGB" or "RGB Alpha", so every
texture set of a multi-set export planned the same file and the export
was refused for the name clash. New rows now start with
"$mesh_$textureSet_" (as the old "$mesh_$textureSet_Output" default
did), followed by the reference's row name. The output_templates test
that pinned the bare "RGB" checks the suffix and the set token instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:41:17 +01:00
vkleinmpandClaude Opus 5.5 c68e8f9959 Export window: the Global settings page scrolls on short or narrow screens
On a short screen the settings pushed the footer (Cancel, Export) out of
the fixed-size window, and at an 800-point-wide screen the 728-point
window cut off the right end of the value lists. The page now sits in a
scroll area (both directions), as the texture set list already does.
The new test at 800x480 fails without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:41:15 +01:00
vkleinmpandClaude Opus 5.5 5f4a25e0b1 Export window: show keyboard focus on the tabs, list rows and console strip
The window's drawn tabs, the Global settings row and the console's
hide/resize strip take focus by Tab but drew nothing for it. They now
draw a 2-point outline in the strong text colour when focused, apart
from the accent of the selected tab or row and the hover fill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:41:12 +01:00
vkleinmpandClaude Opus 5.5 87a00221ec Export window: restore the #789 wording the main merge dropped
Merging main (c6894cc6) resolved three conflicts in export_window.rs with
main's text, undoing this PR's renames, so five ui-egui tests failed:
- the console step after rendering is "Preparing textures writing" again
  (main had brought back "Saving texture files");
- the greyed checkbox is "Export shaders parameters" with its tooltip
  again (main had "Export shader settings");
- the now working Export USD asset checkbox keeps this PR's tooltip. Note
  for review: TextureCraft always writes the mesh, so its "References the
  original mesh if possible" part never applies.

Tests from #788 that named strings this PR renames on purpose follow the
rename, as the PR already did for the MaterialX tests:
- export_usd_asset: "Restore the default export parameters" is now
  "Resets all settings to default values"; "Saved texture <name>" is now
  "Writing <name> texture on disk" (both the positive and the negative
  check, so neither turns vacuous);
- side_panels: "Export shader settings" is now "Export shaders parameters".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:41:08 +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
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 c6894cc65b Merge branch 'main' into feat/789-export-ui-parity 2026-11-24 01:34:55 -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
vangel76 5fe8fe7ae2 Output templates: rows keep one line, the Create buttons move below the title in a narrow column 2026-11-24 02:05:50 +01:00
vangel76 740616c354 Mesh Export Options: the reference's info icons; parity notes for the Output templates tab 2026-11-24 01:23:31 +01:00
vangel76 36c6cd597e Output templates: the reference's map lists, From popup, swatch texts and menus, row names and tooltips; narrow windows keep rows whole 2026-11-24 01:23:31 +01:00
vangel76 e4a377e502 Export textures: rows on the texture set page use the export's channel ids, the console strip drags and toggles, buttons 126 wide 2026-11-24 01:23:31 +01:00
vangel76 0642f1d29e Output templates: shorter lines and a type alias for the map groups 2026-11-23 23:46:33 +01:00
vangel76 2cea24fe71 Export textures: boxed tabs, full-width Global settings, reference label column, dilation arrow, console header band and bold set names, one name per output map row 2026-11-23 23:44:49 +01:00
vangel76 043de59f34 Output templates: reference map panes, channel swatches with the From <map> popup, reference output map rows and Presets row 2026-11-23 23:42:37 +01:00
vangel76 e83c3f88c8 Output templates tab: Naming pattern on the tab row, no Include all, Reset all or count, Save settings and Export greyed 2026-11-23 23:29:50 +01:00
vangel76 cfc4b8b3a7 Export textures and Mesh Export Options: plain Export buttons, fixed footer widths, reference dock buttons 2026-11-23 23:29:18 +01: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 81627ab8c7 Fit the export window to small screens and tighten its tests 2026-11-23 23:09:54 +01:00
vangel76 0924e1314d Merge main into feat/786-export-usd-asset 2026-11-23 23:03:53 +01:00
vangel76 7e129c3968 Put the MaterialX export option directly below the USD one 2026-11-23 23:00:35 +01:00
vangel76 0203f23ee0 Export UI parity: drop SEND TO from the Export dock, restore the reference texts, 1100x740 window
The Export dock shows EXPORT only. The export window, its console lines,
tooltips and the Output templates texts read as in the reference again, and
the window has the reference size.
2026-11-23 23:00:04 +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 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
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
vangel76 b53c931248 Add a MaterialX export option to the export window 2026-11-23 18:57:39 +01: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
chasse20 30d7ee51c4 Remove redundant tests and fix unused build warnings 2026-11-23 03:56:43 -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
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
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
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