Commit Graph
547 Commits
Author SHA1 Message Date
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
bflatastic fd40f08f00 Merge remote-tracking branch 'origin/main' into settings/data-folder 2026-11-02 14:12:20 +07:00
bflatastic 40567c7416 Merge remote-tracking branch 'origin/main' into fix/fill-channel-image 2026-11-02 14:11:25 +07:00
bflatastic 699596835e Image menu: scroll a long list; the test speaks English
With many images, the list now scrolls so Import... and the items after
it stay on screen. The UI test sets English, as a first run would speak
the system's language.
2026-11-02 14:11:23 +07:00
BFlat 25850f48c4 Merge pull request #138 from storytold/fix/startup-error-report
Startup: say why when the app cannot start or has to close
2026-11-02 14:07:37 +07:00
bflatastic ec30388787 Settings: a data folder on any drive
Autosaves, smart materials, brush and export presets, project templates
and UI layouts always went to Documents/TextureCraft, which fills the
system drive. Settings > Folders > Data folder points them anywhere;
the choice applies on restart, and an export folder still at its
default follows it.

Refs #105.
2026-11-02 14:06:51 +07:00
bflatastic e861f9798b Merge remote-tracking branch 'origin/main' into fix/review-followups 2026-11-02 14:04:24 +07:00
bflatastic d4d973d703 Merge remote-tracking branch 'origin/main' into paths/non-destructive-113 2026-11-02 14:04:18 +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
BFlat 95c56e9468 Merge pull request #130 from storytold/docs/roadmap-2026-11-02e
Docs: roadmap after effect reorder and clipboard, mesh map images, Ctrl+drag brush, the History panel and outside contributions
2026-11-02 13:52:46 +07:00
bflatastic 6c4b549669 Say why when the app cannot start or has to close
A Windows release build has no console, so when the GPU could not be
set up or the app panicked, the window never showed or vanished without
a word. Such errors now also go to errors.log beside the settings and,
on the main thread, to a message box that names the log file.

Fixes #106.
2026-11-02 13:52:12 +07:00
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
bflatastic 6d71d2fc38 Fill channels take an image from their source menu
A fill channel's source menu offered a uniform value, procedurals and
anchors, but no image, so a normal or roughness map could not be put on
its channel. The menu now lists the image resources and Import..., and
an image dropped from the Assets panel onto a channel becomes its
source. The mesh map slots share the same menu and drop target.

Fixes #127.
2026-11-02 13:43:40 +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 5e75a592b2 fix(export): keep the <UDIM> name only when it round-trips to the file name
The length limit cuts the longer placeholder at a different place than the tile number,
so a long template got a <UDIM> name that matched none of the files written. A name is
now kept only when putting the tile number back gives the file's own name.
2026-11-02 13:31:22 +07:00
bflatastic 3b1160def5 Merge remote-tracking branch 'origin/main' into fix/review-followups 2026-11-02 13:26:21 +07:00
bflatastic 34eae81910 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	ROADMAP.md
2026-11-02 13:25:16 +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 98ad4a75ed Merge pull request #77 from test-bit-sys/fix/cli-info-builtin
cli: support builtin:<id> in info command
2026-11-02 13:02:06 +07: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 b5baf50454 Merge remote-tracking branch 'origin/main' into docs/roadmap-2026-11-02e
# Conflicts:
#	ROADMAP.md
2026-11-02 12:37:06 +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
bflatastic 1fc73bc87d Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	apps/texturecraft-cli/tests/cli.rs
2026-11-02 12:33:55 +07:00
BFlat fc26ad4477 Merge pull request #58 from kk376/fix/49-multigpu-adapter-selection
feat(app): support multi-GPU selection and discrete adapter preference (#49)
2026-11-02 12:33:34 +07:00
BFlat 558168d09a Merge pull request #55 from Agapenordev/fix/import-gpu-oom
Never crash importing meshes with many materials
2026-11-02 12:33:22 +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
bflatastic a50791314a Docs: roadmap after effect reorder and clipboard, mesh map images, Ctrl+drag brush and the History panel 2026-11-02 12:32:12 +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
BFlat e9409b696b Merge pull request #126 from storytold/history/jump-to-step
History: click a step to return to it
2026-11-02 12:19:57 +07:00
bflatastic fbceb95242 Effects: Delete and Ctrl+D act on a selected effect
With an effect selected, Delete removed its whole layer and Ctrl+D
duplicated the layer. Both now act on the effect, like the clipboard
shortcuts; effect commands default to the selected effect.
2026-11-02 12:19:21 +07:00
BFlat 73043fd4b3 Merge pull request #125 from storytold/brush/ctrl-drag
Brush: Ctrl+drag sets size, hardness, flow and angle
2026-11-02 12:14:05 +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