Commit Graph
110 Commits
Author SHA1 Message Date
Simon Hull a48342c400 Display kinds a set has no channels for are not converted 2026-11-03 14:38:27 -06:00
chasse20 4e7f6f0114 Fix path fill symmetry culling 2026-11-03 00:57:31 -05:00
NetterSilverandClaude Haiku 5.5 1c657979d0 Apply brush symmetry to filled closed paths
Fixes #176

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 22:07:14 +01:00
bflatastic 15a06149d7 OBJ companions are named after the OBJ; the implicit material exports; ids are unique ignoring case 2026-11-02 19:43:54 +07:00
bflatastic 04af749194 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	ROADMAP.md
2026-11-02 19:28:51 +07:00
bflatastic 8dc6e533b7 UV-tiled sets take mesh maps from one image per tile 2026-11-02 18:57:37 +07:00
bflatastic 281b343c22 Merge remote-tracking branch 'origin/main' into export/obj-mtl 2026-11-02 18:46:47 +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 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
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
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 d3453cd1f8 Merge remote-tracking branch 'origin/main' into feat/embed-colour-space 2026-11-02 15:59:33 +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 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 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 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
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 e96ab5e4fd fix(path): a new edit of a stored path starts its own undo step
Live repaints merged into the last step whenever its label matched, so editing the same
path again (or the same index in another sublayer) joined the earlier edit and one undo
reverted both. An edit now merges only into the step it made itself. Stored brush
settings are clamped when read, like the tool's own, since they come from the file.
2026-11-02 14:03:52 +07:00
Justin JohnandClaude Opus 5.5 e478a8145b Merge main into paths/non-destructive-113
Keep path sublayers refused for manual strokes alongside main's paint-below-selected-effect targeting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 12:25:25 +05:30
bflatasticandClaude Opus 5.5 2bf551f2a2 Merge origin/main into feat/cross-app-materials
Keeps both sides of the translation tables, AGENTS rules and the formats module list;
material files in the browser load before the ask-to-save step (they add a layer, not a
new project); Arabic for the eight MaterialCraft strings; menu parity regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 13:45:27 +07:00
SteamSmithandClaude Sonnet 5.5 59f0ab4850 feat(export): record the chosen colour space in the exported colour maps
When file.exportTextures is given a colorSpace, colour maps carry it: an ICC profile in PNG,
JPEG, TIFF and WebP, the chromaticities attribute in EXR. TGA, BMP and HDR have no place for one
and warn. Data maps and exports without a chosen space are unchanged.

The profile is a small version 2.1 matrix/curve profile written from the space's primaries
(Bradford-adapted to D50), tested against the published sRGB colorants.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 01:38:15 -05:00
bflatastic 3b1160def5 Merge remote-tracking branch 'origin/main' into fix/review-followups 2026-11-02 13:26:21 +07:00
SteamSmithandClaude Sonnet 5.5 0f50eea908 test: use the Auto-rebake test helper's new signature
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 01:24:39 -05:00
SteamSmith 331a37e04d Merge branch 'feat/bake-skew-correction' into feat/auto-rebake-skew
# Conflicts:
#	ROADMAP.md
2026-11-02 01:23:28 -05:00
BFlat 88b2b7d2de Merge pull request #129 from storytold/fix/effect-paste-target
Effect paste: keep the active target, offer it on any row
2026-11-02 13:23:09 +07:00
SteamSmithandClaude Sonnet 5.5 ea4a678a0a fix(bake): bound skew painting and image size, layout only in bake mode
- SkewMap::paint refuses a stroke whose dabs would visit more than 2^26 texels, before any
  texel changes; the dab count alone didn't bound the work of a big brush on a big map.
- bake.skew.set checks the image size from its header (decode_image_within) before decoding.
- The 2D view is shown for the skew brush in bake mode only, not in rendering mode.
- Prepared::correct allows its argument count for clippy; the skew test uses its own folder.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 01:22:14 -05:00
SteamSmithandClaude Sonnet 5.5 7f7970b1fb fix: review follow-ups for MaterialX export and import, Auto-rebake and colour space
- MaterialX export: a tiled file's <UDIM> name comes from the file plan, so a set called
  cloth.1001.body keeps its name; the DirectX normal warning is raised only when a material has a
  normal map.
- colorSpace that isn't a string is an error instead of the format's default.
- MaterialX import: an image that isn't a regular file is skipped with a warning (a pipe in the
  folder would have blocked the read).
- Auto-rebake: remembers which inputs each map image was baked from, so undoing a rebake brings
  back a map that is out of date and rebakes it; not scheduled automatically on the web build,
  where a bake would run on the page's thread.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 01:14:04 -05:00
BFlat 8d8bbd6e04 Merge pull request #69 from SteamSmith/feat/bake-auto-rebake
feat(bake): Auto-rebake keeps one mesh map up to date
2026-11-02 12:45:03 +07:00
BFlat d0450eb1ca Merge pull request #75 from SteamSmith/feat/materialx-import
feat(import): MaterialX (.mtlx) material import as a fill layer
2026-11-02 12:44:50 +07:00
bflatastic 5a64fa20f9 Effect paste: keep the active target, offer it on any row
A paste into a layer of another texture set set the session's target
to the new effect, so a later stroke in the active set could commit to
it. The target now changes only for a paste into the active set. The
layer and effect row menus offered Paste effect only while a layer was
already selected, though a click selects the row first; they now check
the clipboard alone.
2026-11-02 12:36:18 +07:00
BFlat 2dcffdece5 Merge pull request #56 from Agapenordev/fix/paint-with-filter-selected
Paint through a selected filter instead of refusing the stroke
2026-11-02 12:33:11 +07:00
BFlat 048424c6ae Merge pull request #128 from storytold/effects/copy-paste
Effects: copy, cut and paste between layers
2026-11-02 12:31:44 +07:00
bflatastic e9dfbe932f Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	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 12:27:15 +07:00
bflatastic 88c92dbf71 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-02 12:23:33 +07:00
BFlat b31ff5f6eb Merge pull request #81 from SteamSmith/feat/export-colour-space
feat(export): choose the colour space of exported colour maps
2026-11-02 12:23:13 +07:00
BFlat fddfad71a9 Merge pull request #50 from SteamSmith/feat/materialx-export
feat(export): MaterialX (.mtlx) OpenPBR material per texture set
2026-11-02 12:23:02 +07:00
bflatastic 8c94d053b4 Merge remote-tracking branch 'origin/main' into effects/copy-paste 2026-11-02 12:20:06 +07:00
bflatastic 4ca9f424f4 Effects: copy, cut and paste between layers
An effect's context menu copies, cuts and pastes it, and Ctrl+C,
Ctrl+X and Ctrl+V act on a selected effect (pasting a copied one above
the selected effect, or on top of the selected content or mask).
Painted strokes come along, resampled to the target set; generators
and other one-stack effects go to their stack, and a fill reading an
anchor point needs one below its new layer. effect.copy, effect.cut
and effect.paste share the layer clipboard.
2026-11-02 12:13:39 +07:00
bflatasticandClaude Opus 5.5 c092e7766b MaterialCraft materials: .mcmat fills with live graph inputs
- core: Fill::link (MaterialLink: package resource, graph, exposed inputs, presets,
  image inputs, size); BakedMap::interop_id / for_input shared mesh-map identifiers
- formats: own .mcmat reader (no MaterialCraft dependency) and 16-bit mesh-map PNGs
- engine: material.load takes .mcmat and .mcraft; material.link.set / .preset / .cook /
  .saveSource; LinkJob re-cooks through materialcraft-cli at the texture set's
  resolution with baked mesh maps as graph inputs; fresh resource names per cook keep
  undo and the decoded-image cache consistent; packages count as used resources
- ui: linked-material section in fill properties (presets, sliders, colors, toggles,
  options) cooking on a worker thread, one process per layer, stale results redone;
  Open in MaterialCraft; File > Import material...; .mcmat drops; library shelf lists
  .mcmat and rescans on focus; 8 new strings in every language
- tests: materialcraft_link (import, params, undo, duplicates, mesh maps, save, and a
  real materialcraft-cli round trip when MATERIALCRAFT_CLI is set)
- docs: README, features, control protocol, architecture, AGENTS, ROADMAP, parity

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 12:12:00 +07:00
Justin JohnandClaude Opus 5.5 07b5aaa0c1 Make paths non-destructive with path sublayers (#113)
Committed paths are stored in a new path sublayer (EffectKind::Path) on the
layer content or mask and the sublayer is repainted from its paths whenever one
is added, edited or removed. path.edit loads a path (with its brush and
material) into the Path tool; changes repaint live as one merged undo step.
path.remove deletes one. Manual strokes are refused on path sublayers, so they
can't be painted over by accident. The sublayer properties list its paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 10:30:59 +05:30
bflatastic f8f241e804 Merge remote-tracking branch 'origin/main' into history/jump-to-step 2026-11-02 12:00:46 +07:00