Commit Graph
564 Commits
Author SHA1 Message Date
Chris Hassebrook d41cf01f7f Merge pull request #827 from Rebornim/feat/export-pass
Export pass: layered PSD, per-map size, shader settings, Esc, hover preview, look and spec-backed templates
2026-11-27 22:55:22 -05:00
Rebornim 7e0bd1e6a2 Assets: the refresh popup's tests move a rewritten file's time on
Main's Resources Updater counts an equal-size file whose modification
time didn't move as unchanged, so a rewrite in the same millisecond as
the import read as up to date and the test failed on the gate.
2026-11-28 00:33:49 +00:00
chasse20 091869033a Auto: Preflight export paths and label tiled atlas previews
Reject selections that use one output path as both a file and a folder before rendering or starting a desktop export. Expose tile metadata in export.plan and use it to label atlas previews, including ambiguous filenames.

Write quantized 8-bit PSD rows directly into the merged-image buffer. Cover path conflicts in both orders, partial desktop writes, and visible atlas captions with regression tests.
2026-11-28 00:21:21 +00:00
Rebornim 97bc67f943 Merge upstream main into feat/assets-pass-2
Main's Resources Updater replaces the shelf's own resource.update and
resource.reload: the shelf menu's Reload and the refresh popup's
updates now run main's resource.status and resource.update, and Show in
reads the project's saved source path. A renamed image keeps its source
record, so it still follows its file.
2026-11-28 00:01:03 +00:00
Rebornim 145a4db4ec Assets: renaming an image also moves a generator's texture, grunge, micro details and Grayscale Conversion image 2026-11-27 23:08:28 +00:00
RebornimandClaude Opus 5.5 088a217d7b Merge main into feat/export-pass
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 23:00:30 +00:00
chasse20 b93c1a285d Merge validated target into TextureCraft bake review 2026-11-27 21:36:52 +00:00
chasse20 e274358a56 Auto: Integrate main and fix bake freshness and cancellation
Preserve Resources Updater links and bake provenance when replacing or clearing mesh maps. Keep unrelated maps on unchanged UV atlases, discard partial results from failed workers, and reject overflowing texture-set indices.

Track vertex colors, part assignments, tangent frames and the packed file used by material-color bakes. Share the common source fingerprint across each task's selected maps. Add reimport, cancellation and atlas regressions, update the control protocol, and clarify the affected code.
2026-11-27 21:00:57 +00:00
Chris Hassebrook 06a4758caa Merge pull request #880 from SteamSmith/fix/open-in-materialcraft-private-folder
Open in MaterialCraft stages its package in a private folder
2026-11-27 13:50:17 -05:00
Rebornim fe0208f5d3 Count no high part as unused while a set matching "Always" bakes from it, note the occlusion Rust Runoff reads, and keep the maps still queued when a bake is canceled 2026-11-27 09:13:54 +00:00
Rebornim 1ab2f15349 Read each auto-rebake map's bake source once per poll and compare it with its record directly 2026-11-27 06:13:17 +00:00
Rebornim 6399d00822 Take a set's shared bake fingerprints once for all its maps, once per Mesh Map Bakers frame 2026-11-27 06:13:17 +00:00
Rebornim de7515bf1a Keep a stroke's box and the stroke count through undo and reimport, and give the bake rows' reasons to screen readers
The painted box of an auto-rebake map now lives in the document, so
undoing the rebake of a stroke makes the map due again (the stroke stays
painted while the map goes back to its pixels from before it), and a
rolled-back bake.run needs no hand-kept copy. A mesh reimport carries the
stroke count on; before, a bake after a reimport saw every earlier stroke
as newer and kept its box.

The Baking Log rows, the out-of-date clock and the generator's bake note
put their reasons in the accessibility tree, not only in a tooltip, and a
folding high poly row exposes whether it is expanded. bake.log is kept off
the shortcut list. PressEdit gets its own file, region_keeps_pixels moves
beside RegionBake, and auto_rebake_due computes each map's source once.
2026-11-27 06:13:17 +00:00
Rebornim cb8a46deb7 Name the set in a canceled bake's log line, make a bake setting drag one undo step and hold Auto-rebake while it is held
A drag stays one undo step while a panel is open in its own floating
window: the press is kept in egui memory, not in a frame cache that the
floating window's own pass clears every frame.
2026-11-27 06:13:17 +00:00
Rebornim ff51384164 Keep a canceled bake's finished maps and name the rebaked map in the footer
Cancelling a bake threw away the maps the running texture set had already
finished, so the Baking Log turned their ticks into warnings. The set now
keeps them as one undo step, also when the preview closed because Bake
mode was left; only maps that had not finished warn, and a map it did not
finish keeps its out-of-date mark. A bake at a new output size keeps none,
since storing them would drop the set's other maps.

An auto-rebake started its preview with every checked map of the set, so
the progress footer named the set's first map ("Baking Normal (1/7)") while
it rebaked AO. The preview now lists only the maps the rebake makes.
2026-11-27 06:12:44 +00:00
Rebornim f39e99069c Turn Auto-rebake on for the Normal map when skew painting starts
The first skew stroke of a texture set turns Auto-rebake on for its
Normal map, unless the set already has an auto-rebake map; it is part
of the stroke's undo step.
2026-11-27 06:12:44 +00:00
Rebornim 4a56683bb9 Rebake the auto-rebake map inside a skew or cage stroke
A skew or cage stroke on a set that bakes from a high poly marks its UV
box; in Bake mode the app then bakes the set's auto-rebake map again
only there (one texel wider, for the paint map's sampling), keeps the
rest of the stored map and pads the whole map, so its pixels match a
whole bake. Maps scaled by their whole range (curvature, height,
thickness), UV-tiled sets and a map stored at another size bake whole.
A stroke painted while that bake runs is baked by the next one. The bake
crate gains bake_tiles_in with a texel box.
2026-11-27 06:12:44 +00:00
Rebornim 9e36885648 Rebake the auto-rebake map when its settings change
Each texture set can turn on Auto-rebake for one mesh map (bake.autoRebake,
saved with the project; older projects have none). In Bake mode the app
rebakes that map alone in the background once what it is baked from has
stopped changing for half a second; a change during that bake cancels it
and the newest settings bake instead. Only a failed rebake makes a toast.
2026-11-27 06:12:44 +00:00
Rebornim 530541a97a Remember what each baked map was baked from
Each bake records, per map, fingerprints of the low poly geometry, the
high poly and cage files, the settings every map shares (with the UV
tiles baked) and the map's own settings, taken when the set's bake
starts. A map whose inputs differ now is out of date, with what changed;
project.inspect lists those per texture set as outOfDate.

The record is saved with the project and left out when empty, so
projects saved before it open unchanged and their maps never show out of
date. Imported maps keep no record either.
2026-11-27 06:12:35 +00:00
Rebornim 373159ec5e List how the bake paired parts by name in the Baking Log 2026-11-27 06:12:35 +00:00
Rebornim c0839e873e List each set's high poly files in the Baking Log 2026-11-27 06:12:35 +00:00
Rebornim dfafec43c1 Report the Baking Log's rows through bake.log
Automation gets the latest bake map by map with each map's state and
the error of a failed one, the same rows the Baking Log shows.
2026-11-27 06:12:35 +00:00
Rebornim 03600e447a Record each bake map by map for the Baking Log
The session keeps the latest bake as one row per texture set and map
(waiting, baking, baked, failed, canceled), filled from the bake's own state
by the app's background bake and by bake.run, never from Log lines.
2026-11-27 06:12:35 +00:00
chasse20 6703898b94 Auto: Integrate IOR reflectance with the Resources Updater
Merge main's IOR reflectance setting alongside resource source tracking.
Preserve both archive fields, integration test modules, and protocol
sections, along with the approved image-link, preview, and export repairs.
2026-11-27 06:02:22 +00:00
chasse20 87b70dae3f Auto: Preserve material image links and defer offscreen previews
Share bounded resource naming across image, PBR and MaterialX imports so duplicate names survive a project round trip. Stream changed images into one undo step, preserve mesh-map ownership, and restore decoded pixels after a rejected edit.

Load updater thumbnails as they enter view. Expose package explanations and update outcomes to assistive technology, and keep the public MaterialX byte loader compatible.

Integrate main's autosave naming, export-normal option and generator inspection. Borrow geometry for default GLB and USD exports. Remove the duplicate native UI test dependency.
2026-11-27 05:53:05 +00:00
chasse20 03edcaa1c6 Auto: Integrate main into the reviewed IOR changes
Preserve the approved IOR save and reflectance changes alongside main’s per-project autosave names, opt-in mesh normal recomputation, and legacy generator inspection. The prepared merge required no manual conflict resolution.
2026-11-27 04:59:40 +00:00
chasse20 d9926733a9 Auto: Preserve IOR edits across background saves
Track IOR-related display changes in the save revision and preserve the exact legacy reflectance scale at IOR 1.5. Improve the shader checkbox outline and cover its contrast and keyboard behavior.

Reuse wrapped CPU trace coordinates, shorten tracer staging lifetimes, and avoid per-set template channel ID allocations. Document the separate glass-interface Fresnel calculation.

Verified with local workspace gate coverage, affected release suites, software rendering, and the shader rail snapshot.
2026-11-27 04:53:09 +00:00
a2andClaude Sonnet 5.5 89a906a5c1 fix(engine): hand-off folder and file get explicit 0700 and 0600 on Unix
tempfile creates folders with the default mode (0755 under the usual umask), so
the 0700 the first version asserted was not what Linux produced. Ask for it, and
for 0600 on the package file. Found by CodeRabbit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 21:17:04 -05:00
a2andClaude Sonnet 5.5 beea46c9e2 fix(engine): Open in MaterialCraft stages its package in a private folder
The button wrote <temp>/<name>.mcraft with a plain fs::write. On a shared temp
folder another local user could plant a file or link at that guessable name
first, and the write went through it. The package now goes into a new random
folder made exclusively (0700 on Unix), as a create_new file; folders over a
week old are swept.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 21:00:18 -05:00
aiongg d6dfd69bcd Merge pull request #850 from Ap3pp3rs94/feat/mesh-export-recompute-normals
feat(mesh): make normal recomputation a real export option
2026-11-26 18:01:18 -05:00
test-bit-sys 5ddec31f80 fix(engine): inspect direction on earlier-model generators (#873) 2026-11-26 21:56:27 +00:00
vangel76 da7dab8118 Merge storytold main (1f77416a) into feat/749-ior-specular-f0 2026-11-26 21:55:19 +01:00
vangel76 f2205d5591 Resources Updater: list linked MaterialCraft materials as rows without a file
resource.status gains the status material for the package of every linked
MaterialCraft material (fill layers and material effects); such a row
cannot be updated or relinked from disk, and its status tooltip says it
updates when MaterialCraft cooks it again. Tests also check that an
environment map and a brush alpha are tracked like other images.
2026-11-26 21:18:37 +01:00
vangel76 8b11099717 Merge storytold main into feat/resources-updater-817
Conflicts resolved:
- crates/engine/tests/it/main.rs, crates/ui-egui/tests/it/main.rs: kept both
  test modules (rebuilt_uv_layout, resource_updater; resources_updater,
  sample_project) in name order.
- crates/ui-egui/src/lib.rs: Toast keeps main's announce field and this
  branch's action field; both constructors set both.
- docs/control-protocol.md: main's ui.menu.invoke and Open Sample Project
  rows, with this branch's note that the Resources Updater button is enabled
  while a project is open.
2026-11-26 19:40:00 +01:00
ATOM 0fbfec1c3d fix(mesh): weld recomputed normals and make export opt-in 2026-11-26 10:36:05 -06:00
chasse20 ae51095d55 Auto: Integrate main and bind save completion to its project
Preserve rebuilt UVs, undoable bake meshes and the shared window-close path. Keep each close and save dialog with its requesting project, wait for pending writes before restart, and leave already saved edits clean after a later stroke is canceled.

Capture archive inputs once, share encoded mesh buffers and release parsed bake geometry before writing. Split the new save types into dedicated files and cover project replacement, restart eligibility and snapshot lifetimes with regressions.
2026-11-26 15:09:23 +00:00
Chris Hassebrook d422c821f2 Merge pull request #772 from vangel76/fix/effect-stacks-769
Toggle material and mask effects from their thumbnails
2026-11-26 06:36:38 -05:00
Rebornim e53ad146c2 Merge upstream main into feat/assets-pass-2
Resolves docking.rs (the second Assets panel follows main's Location::new and hidden list), property_sheet/mod.rs and thumbs.rs (both sides kept), moves the panes edge to main's Axis and ResizeHandle delta, and installs the headless framework in the new Assets tests' harnesses as main's tests now do.
2026-11-26 08:26:41 +00:00
FredApps 6b64c5b9af Merge main into feat/export-pass 2026-11-26 09:05:57 +01:00
FredApps 2cbbebfd3f Preserve texture set hover in the IOR branch merge 2026-11-26 08:27:47 +01:00
autocraft-bot[bot] 6a3b3c1ba0 Merge main into feat/mesh-export-recompute-normals 2026-11-26 07:13:22 +00:00
ATOM 8700efc30c feat(mesh): make normal recomputation a real export option 2026-11-25 22:45:46 -06:00
Rebornim 468b016da2 Resources: a reload keeps each image's own file across undo, and renaming a linked material's package moves a material effect's link too
The file an image was imported from is kept by the image's bytes instead of its name, so an undo that brings back a removed image reloads it from its own file, not from a later file that took its name. A rename now also points a material effect's link package and cooked outputs at the new name.
2026-11-26 04:43:50 +00:00
chasse20 499591c387 Auto: Integrate main and protect effect names on reopen and undo
Discard pending names when their project or effect disappears, including while the Layers panel is hidden. Cover File Open and removal followed by undo in the UI tests.

Reuse effect slices and label layouts. Skip checkerboards and placeholder meshes for fully clipped thumbnails.
2026-11-26 04:35:45 +00:00
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
Rebornim 6aa412db62 Export: the PSD warning test plans a too-large PSD within the export size limit 2026-11-26 02:42:53 +00:00
Rebornim 61c601e040 Export: a PSD planning warning outlives the file that carried it when reserved or repeated names drop that file 2026-11-26 02:33:55 +00:00
FredApps 9e0e971c47 Merge main into texture effect-stack disclosure 2026-11-26 03:18:39 +01:00
skylar taylor-barrick dc2c80739b Bake on the CPU under coverage so the Sonar shards stop crashing at exit (#840)
Merged under Skylar's explicit override (Nightly 792) after green CI, CodeRabbit on this head with no open threads, and an independent adversarial review with no blockers.
2026-11-25 20:02:16 -06:00
Chris Hassebrook bbd680686e Merge pull request #841 from vangel76/feat/mask-toggle-776
Switch a mask on or off with Shift+click, and leave mask view from the material thumbnail
2026-11-25 21:00:37 -05:00