Commit Graph
84 Commits
Author SHA1 Message Date
chasse20 04d7ebdd28 Auto: Restore main CI and fix GPU update bounds and resource lifetimes
Integrate main’s seam padding, rectangular atlases, AO handling, and adapter selection. Restore its workflows and launcher, and use the existing Rayon scheduler for background rendering.

Validate brush readback and UV-grid bounds, preserve filter coverage when downscaling, and expose CPU fallback reasons to accessibility clients. Coalesce pending tile uploads, release retired GPU inputs, reuse upload buffers and filter plans, and avoid copying static shader fragments.

Organize introduced Rust types by name. Cover regional texture replacement, wrapped paint invalidation, and GPU sample rendering with island padding while retaining the default seam fallback test.
2026-11-30 03:44:22 +00:00
Dylan M. Taylor a42d053c3e test(nightly): retain exact launcher query and profile coverage (#913) 2026-11-29 15:29:32 -05:00
Dylan M. Taylor 5600be6556 Use craft-nightly for nightly profile self-isolation and security fence (#911) 2026-11-29 13:48:49 -05:00
vangel76 65d1a2eeb4 Merge upstream main into GPU compositing 2026-11-29 03:52:38 +01:00
SteamSmithandClaude Sonnet 5.5 d6f6f30169 test(192): spawn the CLI through cli_binary() so nextest archives on another runner find it
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-28 20:55:03 -05:00
SteamSmithandClaude Sonnet 5.5 12632c3652 merge: origin/main into fix/headless-render-without-compute
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-28 19:21:36 -05:00
Dylan M. Taylor c80f93efd3 ci(nightly): pin shared signing workflows, move macOS notices to Resources/docs, and fix profile reopen (#896)
* ci(nightly): pin shared signing workflows, move macOS notices to Resources/docs, and fix profile reopen

* style(profile_root): format with rustfmt
2026-11-28 11:51:05 -05:00
FredApps 2332602c4e web: embed fonts, catalogs, the icon font and the studio HDR deflated
The web build is under a 24 MiB download budget. Its embedded data is
now stored deflated and inflated once at startup: the craft-fonts faces,
the translation catalogs, the Phosphor icon font and the studio
environment HDR. egui's default faces come from craft-ui's deflated
copies instead of egui's default_fonts feature, and the engine's
built-in text fonts (Ubuntu Light, Hack) come from the same copies
through text_cmds::provide_built_in_fonts. Desktop builds are unchanged.
2026-11-28 15:37:56 +07:00
FredApps bd03a0411f texturecraft-cli: follow RFC-0018 (clap, thiserror, run(args, out, err), packaged completions and man pages) (#875)
* texturecraft-cli: follow RFC-0018 (clap, thiserror, run(args, out, err), packaged completions and man pages)

Closes #866. Part of storytold/craft-contrib#95.

* fix(cli): enable clap env, and close replacement and token gaps

- Enable clap's `env` feature so TEXTURECRAFT_CONTROL_TOKEN compiles in a
  standalone `-p texturecraft-cli` release build (the FreeBSD package job).
- An inherited token no longer implies --bridge; only a command-line
  --token does.
- Compare run/bake/new outputs to the path Headless::save actually writes
  (it appends .tcraft when the extension is missing).
- Apply the same replacement rule to batch (save vs open), with --in-place.
- Build man-and-completions for the host when CARGO_BUILD_TARGET is set.
- Don't panic in the blank-token test when the environment already has a
  token.

* fix(cli): require both roots for headless mcp

AGENTS.md rule 18 says an agent entry point must refuse to start without
--automation-read-root and --automation-write-root (the --read-root /
--write-root aliases here). Headless mcp now exits 2 unless both are
set; --bridge is unchanged. The missing-CLI_DOCS diagnostic also names
the host-example env -u CARGO_BUILD_TARGET prefix already used to build it.
2026-11-28 01:01:49 +01: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
vangel76 c54e1eb75e Xwayland for the pen only when its X server answers; hand the chosen backend to the title bar and UI runtime
A DISPLAY left over from another session could force X11 with no X server to connect to, and
winit can't fall back to Wayland then. The title bar decision and the UI runtime read the
backend from the environment and saw Wayland while the window opened on Xwayland.
2026-11-26 21:58:59 +01:00
vangel76 793c346cce Merge storytold main (1f77416a) into perf/cache-working-set
Conflicts:
- xtask/src/main.rs: kept this branch's test step (cmd_test: the render
  tests on lavapipe with GALLIVM_PERF=nopt, three groups at once) and main's
  wasm step that skips the Windows leg.
- crates/engine/src/path_tool.rs: kept this branch's mask-aware paint target
  under main's effect_id naming.
- crates/ui-egui/src/display_settings.rs: kept apply_display (it relights the
  environment-lit sets), now marking the session modified through main's
  mark_modified.
- crates/ui-egui/src/toolbar.rs: kept the compositor status and this branch's
  progress texts, under main's save progress bar and progress constants.

After the merge: the settings rows this branch adds read main's renamed
prefs, and render_mode's GPU-edit test installs the headless runtime as
main's harness tests do. Main did not change the generator model.
2026-11-26 19:20:59 +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
skylar taylor-barrick 356f01b2f0 Nightly: stop blocking a refused launch on macOS (#853)
Nightly launch fix under Skylar's Exec 454: the Launcher's trailing `--` no longer reaches the file list where that applied, and a refused launch no longer blocks on macOS (the reason goes to stderr and the app exits 2).
2026-11-26 00:47:29 -06:00
aiongg 8180c82fab Merge storytold main (3c026860) into the minimal port 2026-11-26 03:21:25 +00:00
vangel76 ddc2643fd3 Merge storytold main (dc2c8073) into perf/cache-working-set
Conflicts:
- crates/engine/src/file_cmds.rs: took main's from_project_file (mesh UV
  validation, rebuilt mesh UVs, project_file naming) and kept this branch's
  project setup timing in the performance log.
- crates/engine/src/view_cmds.rs: kept this branch's relight_environment test
  and main's two camera.set tests; the imports are those both sides still
  use (main's vec3 parameter helper, no Vec3, EffectKind, Filter or Project).

Main did not change the generator model since dcf91a4f, so the GPU's
generator decline covers it as before.
2026-11-26 03:47:30 +01:00
chasse20 661a810d6f Auto: Integrate main and tighten batch script validation
Release the raw script text after parsing and verify that malformed path fields prevent command-side file writes. Clarify local names and separate validation from execution and saving.

The CLI integration suite passed in the CI test profile and release. CLI Clippy, formatting and dependency layering also passed.
2026-11-25 23:18:45 +00:00
vangel76 a42ed1b89c Merge storytold main (dcf91a4f) into perf/cache-working-set
Conflicts:
- crates/engine/src/file_cmds.rs: kept this branch's mesh_time timing and
  main's new bake_meshes field on the Document.
- crates/ui-egui/src/updates_ui.rs: kept main's pending high-poly import
  check and this branch's project field on ResizeJob.

Main's new generator model (wear, section, light and kind controls, a
texture, a grunge, Micro Details and the kinds without an earlier model) is
not on the GPU: generator_operation declines those generators, so they
compose on the CPU and the status bar shows "Mask: CPU" with its reason.
Generators saved before it, smart-mask presets and ThinAreas stay on the
GPU. The GPU binds the map the earlier model reads (GeneratorKind::inputs
now lists the newer controls' maps first), and an earlier micro detail maps
through Generator::earlier_micro.

The render tests build their generators on the earlier model
(earlier_generator); generators_beyond_the_earlier_model_compose_on_the_cpu
checks the decline. The default-Dirt mask view test now checks an
earlier-model Dirt added through the control protocol, as a default
generator is new-model, and the library sweep expects the CPU for the
new-model generators.
2026-11-26 00:16:48 +01: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
aiongg 3cf9c5d72a cargo fmt 2026-11-25 06:40:09 +00:00
aiongg 1d855c734f Merge main into the minimal port
Conflicts: apps/texturecraft/src/main.rs (kept the port's Decision/frame_guard/framework::install and main's exit hook, Nightly banner and os_window identity; dropped macOS movable), crates/ui-egui/src/lib.rs (kept both mods), crates/ui-egui/src/titlebar.rs (kept PREFIX and NIGHTLY_ICONS). Added install_headless to main's two new test harnesses.
2026-11-25 06:35:30 +00:00
Dylan M. Taylor 56efb48efb packaging(linux): support co-installable nightly packages (#801)
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.

Co-authored-by: Dylan M. Taylor <[email protected]>
2026-11-24 19:05:51 -06:00
vangel76 fadc07134a Merge commit '021ff6fe' into perf/cache-working-set 2026-11-24 20:19:47 +01:00
aiongg dbd1c7077e Test round 1: Backspace no longer runs Delete bindings, the window's Enter reaches the Enter handlers, tab close buttons
- The app's dispatcher declines a Delete binding for a Backspace press (and the reverse): craft_keymap's
  Matcher lets the two stand for each other, and TextureCraft binds them apart (Delete removes the layer,
  Backspace a Path tool point).
- A plain Enter with nothing focused is the runtime's window submit: menus::shortcuts puts it back as an
  Enter press, as it does the window's Escape, for Reset UI, project config, import resources and the
  Path tool.
- Each closable dock tab has its close button, as each group header had one.
- Tests: the pointer-lock helper no longer rewrites input the app's raw_input_hook already rewrote
  (egui_kittest runs the hook before every pass); tab lookups by role; next's workspace format version;
  measured view edges instead of the old dock gap; a click's commit settles a frame later; tests of the
  old header painting and old divider geometry deleted; rustfmt.
2026-11-24 16:15:19 +00:00
aiongg a13e9a74ee Host TextureCraft's egui UI on craft-libs next's runtime
The runtime is installed from TextureCraft's own eframe App (framework.rs): the close question
decides in the runtime's close path, the window's Escape runs TextureCraft's Escape handlers and
the shortcut recorder, the viewport is the window's document canvas (Tab stays Hide UI), and
Ctrl+Q and F6 stay TextureCraft's. The dock is next's DockArea over the saved workspace, with the
viewport as its canvas group; the update dialogs run on a DialogHost; the strip is next's
TitleBar where the app draws the frame. The removed helpers (icon-button painter, pane split,
widget palette, shortcut dispatcher) are app-local. Every app harness installs the runtime.
2026-11-24 15:32:09 +00:00
vangel76 c2b7f2f85a Request the adapter's full limits for the GPU compositor
Devices now get every limit the adapter reports, so the compositor plans its working buffers against the adapter's real range. The tests that need a smaller GPU's limits request the WebGPU defaults themselves.
2026-11-24 01:26:40 +01:00
chasse20 86af6a3e1c Merge latest main into context-menu-parity
Integrate origin/main at 2037b6b8 while preserving the menu and dialog changes. Resolve the color-selection rewrite, toolbar imports, app state, and upstream test cleanup conflicts.

Validation: cargo +1.100.0 check -p texturecraft -p texturecraft-ui-egui --all-targets --locked passed. Tests and screenshots were not run.
2026-11-23 17:24:49 -05:00
vangel76 45d232679e Merge main into perf/cache-working-set 2026-11-23 19:18:28 +01:00
chasse20 30b1f3b938 Validate control-server test replies as bounded bytes 2026-11-23 04:25:29 -05:00
chasse20 30d7ee51c4 Remove redundant tests and fix unused build warnings 2026-11-23 03:56:43 -05:00
chasse20 8b2821e163 Auto: Integrate main and fix material preview and picker state
Preserve linked fills and imported alpha images, bind cached composites to their mesh, and keep delayed orb results from evicting newer previews. Avoid rendering hidden picker tiles, redundant queue scans and an extra HDR image buffer.

Correct picker cancellation, native pointer ownership, channel selection and single-parameter pattern edits. Update the Material controls guide, retain the approved Studio Small 09 attribution, and exercise the mask projection through its accessible control.
2026-11-22 22:19:46 +00:00
vangel76 1e65d18ceb Merge commit '019fe97395be45ad571a9a82359dabc56658d73e' into sync/713-main-019fe973
# Conflicts:
#	crates/engine/src/session.rs
#	crates/ui-egui/src/lib.rs
#	crates/ui-egui/src/render_mode/tests.rs
2026-11-22 21:49:17 +01:00
chasse20 763737a508 Auto: Integrate main and fix projection sampling and Properties edits
Preserve per-selection scrolling when integrating the Fill and Symmetry panels. Keep batched edits and final drag motion in the correct undo step, expire hidden editors and preview textures, and show keyboard focus on Properties controls.

Correct per-copy depth culling, UV footprints, linear-light mip filtering and memory accounting. Preserve cropped-fill coverage through placement and reload. Reject malformed decal dimensions before mutation and reuse mesh bounds within each operation.

Bound preview ray scratch with reusable row batches and clip hidden outlines before generating dashes.
2026-11-22 19:58:41 +00:00
chasse20 a7d165e029 Fills: review repairs from #698
Chasse's repairs to this part's code, carried over from the #698 head (5644b7d3).
2026-11-22 05:30:03 +00:00
Rebornim b5b99d6fd3 Fills: Material and colour commands, panels and tests 2026-11-22 05:30:03 +00:00
Rebornim 32f848c7c5 Fills: engine evaluation, commands and the remaining tests for the Fill tab 2026-11-22 05:30:03 +00:00
Mex 540e5fe95b Implement test for batch command path validation
Add test for batch command to reject non-string paths in script.json.
2026-11-21 18:03:22 +01:00
Mex 578cc12a64 fix(cli): reject invalid paths in batch scripts 2026-11-21 18:02:53 +01:00
vangel76 5f7f8fd783 fix(windows): start desktop app without console
(cherry picked from commit be1e639be7f2123eaa363f0272f6e80630a6229d)
2026-11-21 15:20:45 +01:00
vangel76 7cf1889752 perf(windows): prefer Vulkan for equal adapters
(cherry picked from commit 5779ee335f756c2068a1b2f4ffc644bc9b9dafe7)
2026-11-21 15:20:12 +01:00
vangel76 9b696b49fd Negotiate working buffer capacity for wide 8K filters 2026-11-21 04:23:20 +01:00
vangel76 85ebfeefb0 Move viewport UV padding to the GPU and trace layer updates 2026-11-20 21:01:51 +01:00
chasse20 255977e304 Align menus and default UI with the context-menu plan
Match menu labels, defaults, checkmarks, toolbar visibility and Help links. Add recent-project limits, per-mode layouts and session log actions. Make dialogs movable and resizable with consistent titles and scrollbar clearance.

Validation: release app build succeeded and preview opened. Full tests and screenshots were not rerun at the user's request.
2026-11-20 04:12:39 -05:00
chasse20 311bf89885 Auto: Integrate texture export and preserve browser log sources
Keep per-set export settings and case-insensitive filename deduplication. Route browser warnings and completion counts through MapExporter, and retain both the 2D view and texture export parity sections.
2026-11-20 01:19:32 +00:00
vangel76 3cbe724030 UI batch 3: view mode picker, display settings, shortcuts, 2D view, log, templates and Window menu
Combines issues #675, #676, #677, #678, #679, #682, #683, #680, #681 and #684.

- View mode combo with section titles, reference names, Other... image picker and an unlit switch
- Display Settings: environment picker grid and drop slot, reference slider ranges, background color, environment alignment, shadow computation mode and opacity
- Settings > Shortcuts with sections, Reset all to default, Delete to clear and conflict warnings; reference action names and default keys
- 2D view: rotate, snap rotate, drag zoom, F reset, wider zoom limits, UV tile grid, numbers, hover label and one mesh wireframe switch
- Log panel with sources, level colours, selection, copy and clear; the exported log keeps each entry's time, level and source
- Save as template, reference template names and a remembered template
- Window menu with Toolbars, per-mode layouts, Hide UI check mark and views per mode
2026-11-19 08:15:57 +01:00
vangel76 222343ae8f Export textures window: per-set and per-map overrides, more file types, progress console, output templates layout
Adds the reference's export settings page (lists, menus, tooltips, Cancel undoes),
per texture set overrides for template, file type, size and padding, per output map
file type and bit depth, JNG/PGM/PSD/32-bit float TIFF writers with bit depth per
file type, dithering and diffusion padding, a progress bar with Cancel Export, a
console and a tree in the list of exports, and the Output templates tab layout with
its right-click menu.
2026-11-19 08:07:39 +01:00
chasse20 c344ddc2e3 Auto: Integrate main and preserve pending Settings edits
Integrate main’s shared raster codecs for desktop icons, screenshot PNGs, and mesh base-color textures. Preserve the approved Settings draft reconciliation and its regression tests.
2026-11-19 05:37:26 +00:00
Dylan M. Taylor 51c3f6441d chore: cut over runtime raster image codecs to craft-image-codecs (#668)
* chore: cut over runtime raster image codecs to craft-image-codecs

* fix(formats): move inline mesh_import test into tests.rs

* fix(engine): simplify nonminimal_bool in user_brushes.rs

* fix(ui-egui): simplify nonminimal_bool in link_import.rs

* fix(formats): use as_chunks::<4>() in mesh_import for clippy

* fix: preserve mesh texture orientation and resize precision
2026-11-18 22:15:08 -05:00
chasse20 4ff9cab867 Auto: Integrate main and fix UI state, bake reporting, and export plans
Preserve main's procedural patterns and linked-material changes. Keep camera navigation, pending dialogs, Settings drafts, shortcut capture, and shelf contents consistent across project and UI state changes.

Mark persisted panel edits as modified. Accept existing bake settings in presets, count newly baked maps, and open failed bakes on the General log channel. Record log times and severity when each event occurs.

Reuse selected export plans, move completed JSON results into place, and avoid copying cached shelf paths or building unused preset catalogs. Add regression coverage and update the control protocol examples.
2026-11-19 01:47:14 +00:00
vangel76 ff647b38c3 UI parity batch: settings window, side panels, camera, bake presets, F4 view swap, Help menu
Fixes #637, #642, #649, #651, #655, #664.

- Edit > Settings with General, Shortcuts and Libraries pages, OK and Cancel (#637)
- Right-bar panels pop out with Undock; Export panel, Log tabs, Display and Shader Settings pages (#642)
- Free camera rotation, snap rotate and next/previous camera commands, Normal+height+mesh view (#649)
- Named bake presets, apply bake settings to all texture sets, bake summary toast (#651)
- Swap 3D/2D views with F4 (#655)
- Help > Release notes... and Export log...; tests for Join the community (Discord)... (#664)

Combination: one shared unavailable::NOT_AVAILABLE hint, snapped orbit uses the Settings
rotation speed and levels a free camera, Swap 3D/2D in the Viewport reference order,
symmetry test harness widened for the longer top bar, docs/parity.md regenerated.
2026-11-18 21:40:53 +01:00