Commit Graph
310 Commits
Author SHA1 Message Date
Rebornim f304cea242 Export: describe the browser PSD limits as estimates of PSD buffers and output, not a total memory bound 2026-11-26 02:34:00 +00:00
Rebornim 7a41c2c03c Export: say PSD names can be sanitized or disambiguated and point clients to export.plan 2026-11-26 02:33:55 +00:00
Rebornim 00238575c8 Export: document PSD file names, layer names and limits
A PSD export writes one <mesh>_<texture set>.psd per UV tile, and the template's file names become its layer names instead of file names (review on #827). docs/control-protocol.md says so, with the size limits and the browser-only memory budgets.
2026-11-26 00:52:42 +00:00
Rebornim f67270d6ae Export: JPEG 2000 back to greyed; its writer moves to craft-libs
The j2k/jp2 writer is a codec, so it goes to craft-image-codecs first (review on #827); the export wires it in again once craft-libs ships it.
2026-11-25 23:10:25 +00:00
chasse20 a53bba9af6 Auto: Integrate main’s shared Nightly launcher
Bring in the shared Linux Nightly tarball launcher, its contract tests, and the packaging documentation. Preserve the approved PSD batch export and template settings repairs.
2026-11-25 22:40:05 +00:00
skylar taylor-barrick dcf91a4f05 Use the shared nightly launcher template (#835)
Renders the plain nightly tar's launcher from craft-common-actions' shared template.

Independent check: dylanmtaylor compared all 14 app launcher PRs byte for byte with the template rendered from the registry (https://github.com/storytold/craft-common-actions/pull/367#issuecomment-7172085284); this head was re-checked against craft-common-actions main 88148a5.
2026-11-25 16:17:41 -06:00
chasse20 47c6ea8f21 Auto: Fix headless export options and reduce export memory use
Integrate main and honor per-map sizes and shader sidecars through MCP. Preserve texture writes when an optional sidecar fails, and cover both outcomes through the tool transport.

Bound layered PSD working memory, preserve set and UDIM names, and report effective dithering. Match previews to stored channels and identify linear grayscale JP2 samples correctly.

Reuse sample buffers, cache unchanged template plans, and share identical grayscale preview textures. Remove the obsolete direct XML dependency. Apply the maintainer’s preset attribution decision and retain the ICC credit and codec notices.
2026-11-25 21:48:17 +00:00
Chris Hassebrook 2d86cc04ba Merge pull request #799 from Rebornim/feat/bake-pass-2
Bake mode pass 2: settings layout, bakers list, sync, automatic cage and map preview
2026-11-25 15:34:55 -05:00
chasse20 2a765088c6 Auto: Fix export bounds, preview allocations, and dialog controls
Preserve native PSD layer sizes and UDIM suffixes, validate the canvas before allocation, and keep MaterialX and USD references compatible with the exported files. Record linear JP2 data correctly and protect browser shader sidecars from path collisions.

Borrow preview coverage, reuse built-in presets, group PSD plans by tile, and avoid redundant codec and diffusion buffers. Release preview textures on dismissal and keep map controls reachable, distinguishable, and readable across themes.

Integrate main's layer menus and Cargo debug configuration. Update dependency notices, preset attribution, and export documentation.
2026-11-25 19:55:35 +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
chasse20 fc04f96857 Auto: Integrate main and fix generator masks, caches and previews
Resolve Micro Height against the requested draw and current atlas layout. Invalidate whole-map fields after geometry edits, reuse admitted fields across tiles, and stop rust runoff at gaps between UV islands.

Render configured preview inputs, cancel evicted image requests, and clear stale previews and point picks when the project changes. Reduce temporary curvature fields and repeated occlusion sampling work.

Preserve generator IDs and saved values while updating picker wording. Consolidate generator regression tests and credit the Nightly icon set inherited from main.
2026-11-25 19:25:49 +00:00
Rebornim 3b56a8e6b3 Export: Sketchfab Metalness (separate maps) template, one map per Sketchfab metalness channel with DirectX normals, Sketchfab's default
Based on #258 by Aalzard.
Spec: https://help.sketchfab.com/en/articles/16152630-pbr-maps, https://help.sketchfab.com/en/articles/16152634-materials-pbr and https://help.sketchfab.com/en/articles/16152621-normal-map-bump-map
The base color has no alpha: Sketchfab's docs don't say its opacity reads it.
2026-11-25 05:49:03 +00:00
Rebornim ba6dcf5240 Export: Roblox SurfaceAppearance (separate maps) template, colour with opacity in alpha, OpenGL normal, metalness and roughness, named with the suffixes Roblox's reimport assigns
Based on #258 by Aalzard.
Spec: https://create.roblox.com/docs/art/modeling/surface-appearance, https://create.roblox.com/docs/art/modeling/texture-specifications and https://create.roblox.com/docs/art/modeling/reimport
Roblox's MaterialVariant gets no template of its own: its docs don't say whether it reads the colour map's alpha, the only difference the old one made.
2026-11-25 05:49:03 +00:00
Rebornim 498394a11d Export: Redshift Standard Material (separate maps) template, one map per Standard Material input the texture set has, normals in OpenGL as Redshift expects
Spec: https://help.maxon.net/r3d/maya/en-us/Content/html/Standard_Material.html and https://help.maxon.net/r3d/maya/en-us/Content/html/Bump+Map.html
2026-11-25 05:49:03 +00:00
Rebornim 0d1df0580e Export: glTF Specular Glossiness (archived extension) template, a specular/glossiness set's diffuse with opacity and its specular with glossiness in alpha, as Khronos' archived extension lays them out
Spec: https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Archived/KHR_materials_pbrSpecularGlossiness/README.md
Only the set's own Specular and Glossiness channels are written; converting a metallic/roughness set is left out, since no target documents that conversion.
2026-11-25 05:49:03 +00:00
Rebornim f165f47699 Export: Unreal Engine Subsurface Profile (Packed) template, the packed Unreal maps plus a SubsurfaceMask map of the scatter weight for the material's Opacity input
Spec: https://dev.epicgames.com/documentation/en-us/unreal-engine/subsurface-profile-shading-model-in-unreal-engine
2026-11-25 05:49:03 +00:00
Rebornim 276f5d9f78 Output templates: hovering a channel swatch shows the file its output writes, small, with each channel and its source; export.preview samples one output map 2026-11-25 05:49:03 +00:00
Rebornim 7a3b95e798 Export: JPEG 2000 file types, lossless, as a raw codestream (j2k) or a JP2 file (jp2)
Encoded by the j2k crate (MIT OR Apache-2.0, pure Rust; craft-image-codecs only reads JPEG 2000), which needs Rust 1.96, so the README asks for 1.96.
2026-11-25 05:31:29 +00:00
FredApps 454fb75295 Merge remote-tracking branch 'origin/main' into pr-824 2026-11-25 09:51:09 +07:00
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 f4a8283d74 Export templates: subfolders and spec-based URP/USD templates 2026-11-25 00:15:22 +01: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
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
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 5103d2256a ui-parity: describe the export UI's own wording
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
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 c6894cc65b Merge branch 'main' into feat/789-export-ui-parity 2026-11-24 01:34:55 -05: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 52e428300f Describe the reference Output templates tab in the UI parity notes 2026-11-23 23:45:11 +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 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 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 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 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