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.
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.
* 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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.
Co-authored-by: Dylan M. Taylor <[email protected]>
- 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.
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.
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.
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.
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.
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.
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.
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.
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
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.
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.
* 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
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.
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.