Commit Graph
206 Commits
Author SHA1 Message Date
Chris Hassebrook ead9faea40 Remove the particle brush and Drips preset (#916) 2026-11-30 02:49:05 +01:00
chasse20 82e57e7254 Preserve validated Layers repairs and main integration 2026-11-29 21:20:24 +00:00
Rebornim 59e2bde423 Merge upstream/main into the layers pass 2026-11-29 14:17:42 +00:00
Rebornim de7c45bde0 Layers: answer review: solo picking, flattened folder anchors and instance opacity, pick list and R key edge cases 2026-11-29 13:15:30 +00:00
Rebornim 62051b42df Layers: document flatten folder, effect moves and the layer commands 2026-11-29 07:02:43 +00:00
Rebornim 71d1202a24 Merge main into feat/layers-pass 2026-11-29 06:43:09 +00:00
Rebornim 41b8a69818 Merge upstream main into the texture sets pass
# Conflicts:
#	crates/formats/src/mesh_import/external.rs
#	crates/ui-egui/build.rs
#	crates/ui-egui/i18n_build.rs
#	crates/ui-egui/src/lib.rs
#	crates/ui-egui/src/menus.rs
#	crates/ui-egui/src/shelf.rs
#	crates/ui-egui/src/shelf_updates.rs
#	crates/ui-egui/tests/i18n_build.rs
#	crates/ui-egui/tests/it/shelf_updates.rs
2026-11-29 06:30:40 +00:00
chasse20 3b858f1a17 Auto: Integrate main with rectangular texture exports 2026-11-28 08:55:08 +00:00
chasse20 c6a8a86247 Merge reviewed target into TextureCraft rectangular textures 2026-11-28 08:38:21 +00:00
chasse20 f2176331a0 Auto: Integrate main into Paint Properties
Preserve desktop autosave recovery and retain the package and cooked maps of linked materials used in effects. Keep both lockfile dependency entries and the approved Paint Properties changes.
2026-11-28 08:08:38 +00:00
chasse20 32c89f35f4 Auto: Integrate main and repair paint, asset, and export previews
Keep main's Assets, Export, and headless parity changes alongside the unified Paint Properties sheet. Preserve history on fully blocked strokes, release obsolete preview resources, and redraw brush and stencil pictures at the correct scale and placement.

Load visible thumbnails on demand, resize common custom previews from borrowed pixels, and release stale file textures and project notifications. Index favorite ranks per draw and remove unused resources without repeated library scans.

Preserve export folds across job startup. Share idle plans between the footer and file tree, borrow running-job plans, and avoid redundant label measurements and template copies. Collect distinct catalog characters before sorting them for font subsetting.

Repair the Assets snapshot setup, isolate saved-brush test files, and clarify affected code and regression fixtures.
2026-11-28 08:00:03 +00:00
chasse20 7b06725641 Auto: Fix recovery aliases and control replies after integrating main
Recognize alternate spellings of the same autosave without detaching an independent file. Return the recovered session's actual path and modified state from desktop file.open, borrow command parameters, and move the inspection result into its reply.

Extend the disk regression to verify both the recovered autosave and an explicit Save As after the original project autosaves again. Record the conditional file-identity dependency and its attribution.
2026-11-28 06:38:55 +00:00
Rebornim 4c181c9904 docs: say the stencil is skipped on the quick mask and in the 2D UV view 2026-11-28 01:30:42 +00:00
Rebornim 077ed13751 Merge main into feat/brush-props-pass 2026-11-28 00:16:41 +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 0d8f00ce30 Auto: Fix bake cancellation and integrate upstream desktop changes
Keep eligible maps from an interrupted bake in one undo step and preserve completed texture sets. Add resource status, update, and relink commands and the desktop Resources Updater.

Integrate Xwayland pointer support for Linux pens, Russian language selection and packaging metadata, private staging for MaterialCraft handoffs, and release-change notifications. Update tests and documentation for the affected behavior.
2026-11-27 21:47:23 +00:00
chasse20 b93c1a285d Merge validated target into TextureCraft bake review 2026-11-27 21:36:52 +00:00
Chris Hassebrook ffb2ecf390 Merge pull request #836 from vangel76/feat/wayland-tablet-816
Linux: open the window through Xwayland when a pen is attached on Wayland, so the pen works
2026-11-27 16:01:12 -05: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
SteamSmith c53813e6ac Merge pull request #691 from JaffarSk24/i18n-offer-russian
i18n: offer Russian in the language picker.

- ru (Русский) is added to LANGUAGES. A Russian system (ru-RU, ru-SK, ru_RU.UTF-8) now starts in Russian once the catalog (storytold/craft-i18n#334) is embedded; the locale test covers those tags.
- Cyrillic no longer counts as a script needing a fallback font: the bundled UI fonts already carry every Russian letter, including Ё/ё and «».
- Docs (ROADMAP, features, localization-parity) now list eleven languages.

Without the catalog the picker entry falls back to English, as for other languages. Tests pin the UI harnesses to English where needed.
2026-11-27 15:02:57 -05:00
chasse20 59270b4a52 Auto: Validate Xwayland setup before selecting X11 and integrate main
Keep native Wayland when the local X server rejects setup or lacks the requested screen. Cover rejected and accepted replies, document pointer support and Flatpak access, and retain the PhotoCraft copyright and license notices.

Focused Linux desktop, titlebar and framework tests passed, along with Clippy, formatting, layers and wasm checks.
2026-11-27 19:58:00 +00:00
Rebornim 44dceb6059 Paint every brush tool's strokes through the stencil, set in a Stencil tab
The stencil now shapes Paint, Eraser, Smudge and Clone strokes as well as
Projection ones: its gray times its alpha masks the stroke, read from the
viewport's point of view, and the tool keeps painting its own material.
Only the Projection tool paints the image's colors. In the 2D view, where
the stencil isn't drawn, only the Projection tool uses it, as before. The
viewport shows the stencil and S + drag places it for every brush tool.

Every brush tool gets the Stencil tab. Its section is a slot showing the
stencil image (a click opens the picker of the project's textures with
Import... first, × takes the stencil away, an image dropped on it becomes
the stencil; the S-drag keys are its tooltip), a Tiling mode list (No
Tiling, H and V Tiling) with a picture per mode, Scale, Rotation and
Position X / Y stacked beside a picture of the view with the stencil
placed in it, and Overlay opacity. The STENCIL caption's reset puts the
stencil back in the middle of the view. The sliders change it through
tool.stencil.
2026-11-27 08:25:57 +00:00
Rebornim a94e3f8703 Describe the texture set sizes, channels and settings this branch adds in the feature list
docs/features.md still said texture sets are square with 21 channel types.
2026-11-27 06:34:58 +00:00
Kirill M b4e9c17575 docs: the CJK and Arabic picks need a font for their script
The language picker greys out a language whose script no available font covers, so a web build with catalogs but without craft-fonts cannot pick Japanese, Chinese, Korean or Arabic.
2026-11-27 07:16:23 +01: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
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
a2andClaude Sonnet 5.5 d98fb4c640 chore(i18n): merge main; drop the English test pins now that the UI language is per thread (#797)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 19:42:32 -05:00
Morion 1ccef56f98 Autosave: open a copy as an unsaved project
The project a copy came from autosaves to that same file again, so work saved into an opened copy was replaced. Opening a copy now leaves the project without a file: Save asks for one, and its autosave goes to a copy of its own.
2026-11-26 18:53:01 -05:00
autocraft-bot[bot] 1b32764b7a Merge main into fix/851-autosave-names 2026-11-26 21:48:58 +00: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
vangel76 3a25b45ea6 Merge storytold main (1f77416a) into feat/wayland-tablet-816
docs/features.md: kept main's title-bar sentence (prefs.system_title_bar through ui.set) and this branch's Wayland pen entry.
2026-11-26 19:04:50 +01:00
Rebornim 53c501e488 Layers: hold R over the model to see the layers there and pick one
Holding R over the 3D view with any tool shows a label at the pointer naming
the top layer laying something down there (any channel in the material view,
the shown one in a single-channel view) and how many more. A click selects the
layer when it is the only one there; with several it opens a list at the
pointer, top first, each row with the layer's thumbnail, name and the channels
it changes at that spot. A row click (or Up/Down and Enter) selects that layer,
Esc or a click elsewhere closes the list. The click never paints. Hidden
layers, masked-out layers and channels at zero opacity are left out. Closed
folders holding the picked layer open and its row scrolls into view. The
shortcut window lists the gesture. Automation lists the layers with
layer.layersAt and selects one with layer.pickAt.
2026-11-26 10:06:11 +00:00
FredApps 6b64c5b9af Merge main into feat/export-pass 2026-11-26 09:05:57 +01:00
autocraft-bot[bot] eda265b470 Apply requested fixes
- crates/ui-egui/src/autosave_name.rs
- docs/features.md
2026-11-26 07:21:04 +00:00
Morion 23d3f9ae71 Autosave: give each project its own copy
The copy was named after the project, whose name comes from the mesh file, so projects made from one mesh overwrote each other's autosave. It is now `<stem>-<suffix>.tcraft`: from the saved file and its path, or a suffix of its own while the project is unsaved. A project opened from its copy keeps writing to it.

Fixes #851
2026-11-26 00:27:10 -05:00
chasse20 fd39434e6c Auto: Integrate main and fix Settings and shortcut validation
Preserve the Nightly data root, viewport resolution and saved key bindings when applying Settings. Restore the system language on Reset UI, use the persistent preview-cache default, and release automatic bake previews when disabled.

Check the adapter selected by the baker against its shader requirements. Show reference keys in both shortcut editors and cache conflicts until the bindings or platform change. Correct the documented Bake mode key and add regressions for the repaired interactions.
2026-11-26 04:16:27 +00:00
chasse20 21b86d98f6 Auto: Validate rebuilt UV layouts and trim save and reload allocations
Integrate main's dialog and bake-state changes. Reject inconsistent saved layouts at archive and session boundaries, and preserve vertex splits between independently packed materials.

Stream UV coordinates in bounded batches, transfer stored mesh bytes on successful reopen or reimport, and skip import reports that those callers discard. Set the archive version on the owned save snapshot to avoid copying the layer graph twice.

Cover material boundaries, malformed snapshots, locked coordinates and keyboard activation. Update the format and command documentation.
2026-11-26 01:03:44 +00:00
Rebornim f67270d6ae Export: JPEG 2000 back to greyed; its writer moves to craft-libs
The j2k/jp2 writer is a codec, so it goes to craft-image-codecs first (review on #827); the export wires it in again once craft-libs ships it.
2026-11-25 23:10:25 +00:00
chasse20 05ffb1cc30 Auto: Integrate main and preserve existing sample projects
Stage bundled samples and install them without replacing a file that
appears during the copy. Record the Material Ball’s provenance and
clarify the desktop picker fallback and browser behavior.

Validated with Linux UI tests, focused release tests, formatting,
Clippy, layer checks, and WebAssembly compilation.
2026-11-25 22:50:07 +00:00
vangel76 e26002d230 Open the window through Xwayland for a pen on Wayland
winit 0.30 doesn't bind the Wayland tablet protocol, so on compositors that don't emulate a
pointer for the pen (KWin) the pen did nothing in the window. With a pen attached on a Wayland
desktop, and Xwayland able to run the window, the app now opens on X11, where the pen works as
the pointer. TEXTURECRAFT_NATIVE_WAYLAND=1 keeps native Wayland. Adapted from PhotoCraft.

Fixes #816.
2026-11-25 16:52:25 +01:00
vangel76 cbc6669f48 Ship the sample project as assets/samples and copy it into the Samples folder 2026-11-25 16:44:16 +01:00
vangel76 7b37306c47 Say the Samples folder is desktop-only in the docs 2026-11-25 13:39:48 +01:00
vangel76 9c2393655e Open Sample Project starts in a Samples folder that holds the built-in sample 2026-11-25 11:21:23 +01:00
vangel76 cf54cc20de Resources Updater: review fixes
Remember file verdicts per size and time so an unchanged file is read
once; recheck the open window at most twice a second; outdated rows
first. Record image files from PBR folder, MaterialX and mesh map
imports too, and resample an imported mesh map from its changed file
while it still holds that file's pixels. Relink only image resources;
decode updated bytes the way undo and reopening do. Notices carry their
project and are reset when another project opens, which is checked once.
Escape closes the window only while it has the keyboard. Keep the
reference's Shelf line and show the file on its own line. A dedicated
automation refusal message, translated status labels, tempfile in tests.
2026-11-25 11:16:41 +01:00
Rebornim 3b56a8e6b3 Export: Sketchfab Metalness (separate maps) template, one map per Sketchfab metalness channel with DirectX normals, Sketchfab's default
Based on #258 by Aalzard.
Spec: https://help.sketchfab.com/en/articles/16152630-pbr-maps, https://help.sketchfab.com/en/articles/16152634-materials-pbr and https://help.sketchfab.com/en/articles/16152621-normal-map-bump-map
The base color has no alpha: Sketchfab's docs don't say its opacity reads it.
2026-11-25 05:49:03 +00:00
Rebornim ba6dcf5240 Export: Roblox SurfaceAppearance (separate maps) template, colour with opacity in alpha, OpenGL normal, metalness and roughness, named with the suffixes Roblox's reimport assigns
Based on #258 by Aalzard.
Spec: https://create.roblox.com/docs/art/modeling/surface-appearance, https://create.roblox.com/docs/art/modeling/texture-specifications and https://create.roblox.com/docs/art/modeling/reimport
Roblox's MaterialVariant gets no template of its own: its docs don't say whether it reads the colour map's alpha, the only difference the old one made.
2026-11-25 05:49:03 +00:00
Rebornim 498394a11d Export: Redshift Standard Material (separate maps) template, one map per Standard Material input the texture set has, normals in OpenGL as Redshift expects
Spec: https://help.maxon.net/r3d/maya/en-us/Content/html/Standard_Material.html and https://help.maxon.net/r3d/maya/en-us/Content/html/Bump+Map.html
2026-11-25 05:49:03 +00:00
Rebornim 0d1df0580e Export: glTF Specular Glossiness (archived extension) template, a specular/glossiness set's diffuse with opacity and its specular with glossiness in alpha, as Khronos' archived extension lays them out
Spec: https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Archived/KHR_materials_pbrSpecularGlossiness/README.md
Only the set's own Specular and Glossiness channels are written; converting a metallic/roughness set is left out, since no target documents that conversion.
2026-11-25 05:49:03 +00:00
Rebornim f165f47699 Export: Unreal Engine Subsurface Profile (Packed) template, the packed Unreal maps plus a SubsurfaceMask map of the scatter weight for the material's Opacity input
Spec: https://dev.epicgames.com/documentation/en-us/unreal-engine/subsurface-profile-shading-model-in-unreal-engine
2026-11-25 05:49:03 +00:00
Rebornim 7a3b95e798 Export: JPEG 2000 file types, lossless, as a raw codestream (j2k) or a JP2 file (jp2)
Encoded by the j2k crate (MIT OR Apache-2.0, pure Rust; craft-image-codecs only reads JPEG 2000), which needs Rust 1.96, so the README asks for 1.96.
2026-11-25 05:31:29 +00:00