Commit Graph
1489 Commits
Author SHA1 Message Date
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 67c8ec6470 Mask and restore a region bake's texels row by row instead of dividing per sample 2026-11-27 06:13:17 +00:00
Rebornim e3c299963b List the Baking Log, out-of-date mesh maps and Auto-rebake in the features 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 23f27ba16d Toggle Auto-rebake from a Mesh Map Bakers row
Each row gets an Auto-rebake icon at its right end. It stays shown and
bright on the set's auto-rebake map; on the other rows it shows dim
while the row is hovered, and bright while the icon is hovered or has
focus. Clicking it makes that map the set's auto-rebake map, or turns
Auto-rebake off.
2026-11-27 06:12:44 +00:00
Rebornim 7f3b16d434 Mark out-of-date maps in Mesh Map Bakers
A baked map whose mesh, high poly, cage or settings changed after its
bake gets a yellow clock at the right end of its row; hovering it lists
what changed. The reasons are shared with the generator's bake note.
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 5b4411ee9a Note a generator's missing or out-of-date mesh map
A generator that reads a mesh map the active texture set has not baked,
or baked before its mesh, files or settings changed, shows one line
under its kind: what is wrong, the reasons on hover, and a Bake button
that bakes the set in the background (turning the map on first when it
is off). Nothing shows once the map is up to date, and nothing pops up.

The line replaces the old warning at the end of the panel, which showed
for every generator, even those that read no mesh map.
2026-11-27 06:12:35 +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 ec17def337 Keep only the issues in the Baking Log on demand
A warning toggle at the right end of the tab strip counts the shown
tab's issues and, while pressed, keeps only the rows with one. With no
issue left the tab says so in one line, with how to see every row
under it.
2026-11-27 06:12:35 +00:00
Rebornim d908c4a49e Open a not-baked map's settings from its Baking Log row
A failed or canceled row shows an arrow at its right end while hovered
or focused; it makes the row's texture set active and shows the map in
Mesh Map Settings, as picking it in Mesh Map Bakers does.
2026-11-27 06:12:35 +00:00
Rebornim e24f4e28d8 Show the latest bake in the Baking Log's tabs
The Baking Log gets the three tabs from the issue's mock-ups (Baking
Process, High Poly Parameters, Matching by Name) in the Properties
section-tab look. Baking Process lists one row per texture set and map: a
tick when baked, orange dots and bold for the map being baked (kept in
view), dim while waiting, a red cross or a warning when not kept, with the
reason on hover. The tab's icon turns into orange dots while a bake runs.
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
Rebornim 3f38644c91 Dock the Baking Log at the bottom of the bake layout
The default bake layout put the general Log under the settings columns; the
Baking Log now takes that place (the Log stays in Window > Views). The bake
layout version moves to 3 so saved bake docks pick up the new layout.
2026-11-27 06:12:35 +00:00
Chris Hassebrook 429d705884 Merge pull request #750 from vangel76/feat/749-ior-specular-f0
Bring dielectric reflections closer to OpenPBR
2026-11-27 00:33:42 -05: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
aiongg 58c9bc07e3 Merge pull request #854 from MorionTutoriales/fix/851-autosave-names
Autosave: give each project its own copy (#851)
2026-11-26 18:35:00 -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
autocraft-bot[bot] 5591288d89 Apply review fixes
- crates/ui-egui/src/autosave_name.rs
2026-11-26 22:55:53 +00:00
test-bit-sys 5ddec31f80 fix(engine): inspect direction on earlier-model generators (#873) 2026-11-26 21:56:27 +00:00
autocraft-bot[bot] 1b32764b7a Merge main into fix/851-autosave-names 2026-11-26 21:48:58 +00:00
autocraft-bot[bot] 448d22aa26 Apply review fixes
- docs/ui-parity.md
2026-11-26 21:31:02 +00:00
vangel76 da7dab8118 Merge storytold main (1f77416a) into feat/749-ior-specular-f0 2026-11-26 21:55:19 +01:00
Chris Hassebrook 1f77416ace Merge pull request #825 from vangel76/feat/settings-parity-823
Settings: match the reference's General page (defaults, sections, sliders)
2026-11-26 12:48:15 -05:00
Chris Hassebrook 7532cfb44e Merge pull request #773 from vangel76/fix/725-background-project-save
Keep TextureCraft responsive during project saves and show progress
2026-11-26 12:17:41 -05:00
chasse20 11597318ab Merge remote-tracking branch 'origin/main' into HEAD 2026-11-26 16:52:39 +00:00
chasse20 2bd495929a Merge commit '684f71bd7933299c35d29b212cf67090811ec0e3' into HEAD 2026-11-26 16:52:39 +00:00
Morion cfdb0e57d5 Autosave: widen the copy suffix to 64 bits 2026-11-26 11:49:41 -05:00
ATOM 0fbfec1c3d fix(mesh): weld recomputed normals and make export opt-in 2026-11-26 10:36:05 -06:00
Simon Hull ac4454bb38 Geom: check indices before computing tangents (#386)
Mesh::from_parts computed normals and tangents before validate(). An
index past the last vertex reads as the origin in the MikkTSpace
callbacks, but the all-degenerate guard compares positions.get() and
counts a missing vertex as different. So two positions with indices
[0, 1, 2] passed the guard while MikkTSpace saw every triangle as
degenerate and underflowed at generated.rs:1100: a panic in debug, an
out-of-bounds walk in release.

compute_tangents now also skips MikkTSpace (using the per-triangle
fallback, which reads with get()) when an index is out of range, and
from_parts refuses such indices before building the mesh, with the
same error validate() gives.
2026-11-26 16:21:07 +00:00
chasse20 5986091968 Auto: Fix close after a prior save fails and isolate UI language
Let an unmodified replacement project finish closing once the previous project’s save ends, even if the write fails. Add a regression test for that sequence.

Keep each UI thread’s language selection independent and add a test that selects different languages on two concurrent threads.
2026-11-26 16:19:15 +00:00
chasse20 d264bc525c Merge remote-tracking branch 'origin/main' into HEAD 2026-11-26 16:03:23 +00:00
ViktorBystrov72andViktorBystrov72 1f78ba3578 Isolate TextureCraft UI language on each thread (#797)
Co-authored-by: ViktorBystrov72 <18964918+ViktorBystrov72@users.noreply.github.com>
2026-11-26 15:54:16 +00: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
Morion 82e81e518b Autosave test: install the headless runtime on its harness 2026-11-26 10:09:18 -05:00
Morion e9a1dc5867 Merge remote-tracking branch 'origin/main' into fix/851-autosave-names 2026-11-26 08:39:16 -05: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
chasse20 3adefe418a Auto: Integrate main and preserve shortcut recording
Integrate main at 6b01f32e with the shared UI runtime and warp toolbar. Initialize main’s shortcut dispatcher alongside the PR’s lazy conflict cache.

Preserve Escape modifiers when the runtime routes the press as a window cancel. Add a regression test for the reserved Shift+Escape warning in Settings.
2026-11-26 11:36:06 +00:00
FredApps 684f71bd79 Merge pull request #860 from storytold/fix/warp-toolbar-test-headless
Warp toolbar test: install the headless runtime so main's CI is green again
2026-11-26 10:25:06 +01:00
FredApps 3695db1d44 Warp toolbar test: install the headless runtime on its harness
Main's CI has failed since #837 merged: place_on_surface_keeps_a_warp_on_its_own_texture_set
builds its harness without framework::install_headless, which the framework
runtime needs since #800, and panics with "the runtime plugin's hooks did not
run". Every other harness already installs it.
2026-11-26 15:50:40 +07:00
autocraft-bot[bot] f9d29d9ccf Apply review fixes
- crates/ui-egui/src/autosave_name.rs
2026-11-26 07:33:47 +00:00
FredApps 2cbbebfd3f Preserve texture set hover in the IOR branch merge 2026-11-26 08:27:47 +01:00