Commit Graph
342 Commits
Author SHA1 Message Date
SteamSmithandClaude Sonnet 5.5 589eb4c764 test(path-cache): a filled path above an edit keeps its tiles from the cache
Covers the footprint recorded by commit_fill; emptying it left every other test green.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 12:29:31 -05:00
SteamSmithandClaude Sonnet 5.5 14f02e5fe7 test(path-cache): a snapshot is charged only for tiles no kept snapshot shares
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 22:17:44 -05:00
SteamSmithandClaude Sonnet 5.5 0ec4775ef6 fix(path-cache): charge each snapshot for the tile buffers it alone keeps alive
evict charged snapshot k for path k-1's tiles only, but snapshot k holds every
pixel after k paths and shares tile handles with the others. After an older
snapshot was evicted, a newer one could retain a whole older generation (full
fill, one-tile stroke, full fill, one-tile stroke) and the 256 MiB cap was
exceeded. Walk newest to oldest and charge only handles not already held by the
live pixels, the edited snapshot or a kept newer snapshot. Also drop the
debug_assert from non-test code.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 21:30:56 -05:00
Justin JohnandClaude Opus 5.5 06ac6c8931 Path cache: skip untouched paths, cover channels and alpha images, cap memory
Follow-up to #133's review notes.

- The cache key now covers the owner layer's and texture set's channels, and
  each path's brush alpha image, so changing them repaints instead of reusing
  stale pixels.
- The cache keeps a snapshot after each path and the tiles each path painted.
  An unchanged path above an edit reuses its tiles when the edit didn't reach
  them; removing a path reuses the paths above it.
- Snapshots stay within 256 MB, oldest dropped first, keeping the one below the
  path being edited so live edits start there.
- Path repaints ignore the quick mask: a path paints only from what it stores.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 20:30:57 +05:30
BFlat 426aeff80d Merge pull request #154 from storytold/export/obj-mtl
OBJ export writes an MTL material library with each material's maps
2026-11-02 19:28:19 +07:00
bflatastic c14e500298 Exported material ids and map names stay unique when names collide 2026-11-02 19:06:49 +07:00
BFlat 9622244e8d Merge pull request #150 from storytold/fix/slider-number-field
Slider number fields keep what is typed and change nothing when left unchanged
2026-11-02 18:57:52 +07:00
bflatastic 281b343c22 Merge remote-tracking branch 'origin/main' into export/obj-mtl 2026-11-02 18:46:47 +07:00
BFlat 79d4b0426c Merge pull request #152 from storytold/fill/directx-normal-image
Fill normal images can be marked DirectX
2026-11-02 18:46:38 +07:00
bflatastic 1a703ecfaf A typed value equal to the current one is no edit 2026-11-02 18:33:39 +07:00
bflatastic 7f793fbf3a normalFormat: reject non-strings and non-image sources; a format-only edit keeps the channel's state; re-cooks keep the mark 2026-11-02 18:29:48 +07:00
bflatastic 92e92ff779 OBJ export writes an MTL material library with each material's maps 2026-11-02 18:20:21 +07:00
bflatastic 366f52b888 Using a slider's track drops text typed in its number field 2026-11-02 18:08:07 +07:00
bflatastic fe02cd266d Fill normal images can be marked DirectX: their green flips where a normal channel samples them 2026-11-02 17:52:31 +07:00
bflatastic 9d192a1df1 Slider number fields keep what is typed and change nothing when left unchanged 2026-11-02 17:33:55 +07:00
BFlat b8acb3303b Merge pull request #146 from storytold/fix/142-live-sliders
Effect and fill sliders apply live while dragged, as one undo step
2026-11-02 17:19:46 +07:00
BFlat 403385e312 Merge pull request #132 from SteamSmith/feat/auto-rebake-skew
Auto-rebake: a changed skew map rebakes the map
2026-11-02 16:45:38 +07:00
BFlat 61637df84f Merge pull request #60 from SteamSmith/feat/bake-skew-correction
feat(bake): skew correction for high-poly transfer rays
2026-11-02 16:44:55 +07:00
BFlat e27eb8842f Merge pull request #136 from SteamSmith/feat/embed-colour-space
Export: record the chosen colour space in the files
2026-11-02 16:44:51 +07:00
bflatastic e828af5c35 Document sliders apply live while dragged, as one undo step 2026-11-02 16:28:51 +07:00
bflatastic 126aeb1356 Merge branch 'feat/bake-skew-correction' into feat/auto-rebake-skew
# Conflicts:
#	ROADMAP.md
#	crates/engine/tests/auto_rebake.rs
2026-11-02 16:23:25 +07:00
bflatastic 5acfba00e8 fix(bake): paint the skew map in place instead of copying it per stroke step; a temp folder per leaning_session 2026-11-02 16:21:41 +07:00
bflatastic 63b54f1cec fix(render): the GPU bake test's BakeRequest names the new skew field 2026-11-02 16:21:40 +07:00
bflatastic 7437962a3b refactor(bake): Prepared::correct takes the low-poly Surface instead of eight arguments 2026-11-02 16:21:40 +07:00
BFlat c2c5987bf2 Merge pull request #143 from storytold/fill/uv-transform
Fill projection: UV rotation and offset, sharpness, axis and offset
2026-11-02 16:12:24 +07:00
bflatastic 360d70fcef Merge remote-tracking branch 'origin/main' into feat/bake-skew-correction 2026-11-02 16:10:38 +07:00
bflatastic 59a30187b5 fix(export): use is_multiple_of in the ICC profile writer (clippy -D warnings) 2026-11-02 16:09:01 +07:00
bflatastic d3453cd1f8 Merge remote-tracking branch 'origin/main' into feat/embed-colour-space 2026-11-02 15:59:33 +07:00
bflatastic 8657bfdc31 Image fills take a projection's fields without naming it; docs wording
layer.add.image read the projection params only when `projection` was
given, so an offset or rotation alone was dropped. The features list no
longer promises a cylindrical offset.
2026-11-02 15:59:26 +07:00
BFlat 32c5bac404 Merge pull request #133 from justinjohn0306/paths/non-destructive-113
Make paths non-destructive with path sublayers (#113)
2026-11-02 15:56:10 +07:00
bflatastic 228d879a1d Fill channel image test: scroll the channel into view
The projection rows push the Roughness channel below the Properties
panel's edge, where a click on its menu button lands outside the panel.
The test scrolls the channel into view and waits for the scroll.
2026-11-02 15:40:00 +07:00
BFlat f2de0026e1 Merge pull request #135 from SteamSmith/fix/review-followups
Follow-ups for MaterialX export/import, Auto-rebake and colour space
2026-11-02 15:35:16 +07:00
BFlat cfc456a899 Merge pull request #141 from storytold/sets/normal-map-format
Texture Set Settings: the project's normal map format
2026-11-02 15:17:04 +07:00
bflatastic d577a7eae8 Merge remote-tracking branch 'origin/main' into fix/review-followups 2026-11-02 15:05:10 +07:00
bflatastic 74383d7625 Merge remote-tracking branch 'origin/main' into fill/uv-transform 2026-11-02 15:01:45 +07:00
bflatastic 19c761f62c Merge remote-tracking branch 'origin/main' into sets/normal-map-format 2026-11-02 14:54:01 +07:00
bflatastic 9faf90c702 Normal map format: fill images keep reading as OpenGL
Flipping every fill image on a normal channel in a DirectX project
would also flip the OpenGL maps MaterialX import puts there, and change
how existing DirectX projects look. Fill images read as before; the
setting covers mesh map images (converted when set, so the tooltip
says to set them again) and the export default.
2026-11-02 14:54:01 +07:00
bflatastic 643a085d8e Fill projection: UV rotation and offset, sharpness, axis and offset
A fill's properties showed only its projection and scale, and
layer.fill.projection rebuilt the projection from its params, so
changing the scale reset a rotation set before and no offset could be
set at all. The command now changes only the fields it is given
(scale, also per axis; rotation; offset; sharpness; axis) and keeps the
rest while the kind stays the same. Properties show the UV rotation and
offset, the tri-planar blend sharpness, and the axis and world offset
of planar and cylindrical projections.
2026-11-02 14:49:14 +07:00
Justin John 7c170d35c0 Merge remote-tracking branch 'fork/paths/non-destructive-113' into paths/non-destructive-113 2026-11-02 13:08:31 +05:30
Justin John ecf7b01720 Merge remote-tracking branch 'origin/main' into paths/non-destructive-113
# Conflicts:
#	crates/core/src/lib.rs
#	crates/ui-egui/src/i18n/ar.rs
#	crates/ui-egui/src/i18n/de.rs
#	crates/ui-egui/src/i18n/es.rs
#	crates/ui-egui/src/i18n/fr.rs
#	crates/ui-egui/src/i18n/it.rs
#	crates/ui-egui/src/i18n/ja.rs
#	crates/ui-egui/src/i18n/ko.rs
#	crates/ui-egui/src/i18n/pt_br.rs
#	crates/ui-egui/src/i18n/zh_hans.rs
2026-11-02 13:08:31 +05:30
BFlat 19da5379d7 Merge pull request #131 from storytold/feat/cross-app-materials
MaterialCraft materials: .mcmat fills with live graph inputs
2026-11-02 14:36:20 +07:00
bflatastic c38b95ff38 Merge remote-tracking branch 'origin/main' into fix/review-followups 2026-11-02 14:34:13 +07:00
bflatastic 62229b41d4 Merge remote-tracking branch 'origin/main' into sets/normal-map-format 2026-11-02 14:30:54 +07:00
BFlat cad425c249 Merge pull request #139 from storytold/settings/data-folder
Settings: a data folder on any drive
2026-11-02 14:30:40 +07:00
BFlat fbbc42fa8f Merge pull request #137 from storytold/fix/fill-channel-image
Fill layers: put an image on any channel
2026-11-02 14:30:21 +07:00
bflatastic dd750cb3f6 Normal map format: in Texture Set Settings, and fill images follow it
The project's normal map format (OpenGL or DirectX) could only be set
by command or a template, and fill images on a normal channel were
always read as OpenGL, so a DirectX map's detail came out inverted.
Texture Set Settings now has a Normal map format row, and a fill's
image on a normal channel is read in that format, as mesh map images
already were. A change of format recomposites the sets.
2026-11-02 14:29:38 +07:00
bflatastic d619b53712 Merge origin/main into feat/cross-app-materials
Keeps both import menu items and formats modules (MaterialX import, MaterialCraft materials); menu parity regenerated (55 of 55).
2026-11-02 14:22:37 +07:00
bflatastic 7d6c123657 Merge remote-tracking branch 'origin/main' into paths/non-destructive-113 2026-11-02 14:21:25 +07:00
Justin John a528fa346e Merge remote-tracking branch 'fork/paths/non-destructive-113' into paths/non-destructive-113 2026-11-02 12:43:28 +05:30
Justin JohnandClaude Opus 5.5 e5a8f2ed78 Cache the paths below an edited path; test the path list UI
Editing a path repaints only it and the paths above it: the sublayer's pixels
after the paths below are cached (keyed by those paths, the mesh and the
texture size) and reused while the edit goes on. A unit test checks the cached
repaint matches painting every path.

Adds a UI test for the path rows (pick to edit, pick again to finish, remove)
and a properties-paths frame to the offscreen window snapshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 12:43:10 +05:30