Skip to content

Settings, side panels, layer/mask menus, camera, bake and painting parity (combines 17 issues) - #666

Closed
vangel76 wants to merge 1 commit into
storytold:mainfrom
vangel76:feat/ui-batch-2026-11-18
Closed

vangel76 wants to merge 1 commit into
storytold:mainfrom
vangel76:feat/ui-batch-2026-11-18

Conversation

@vangel76

@vangel76 vangel76 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Seventeen UI parity gaps closed in one PR: the Settings window, the right-bar panels, the Texture Sets, layer and mask menus, camera, bake, stencil, brush and help features now match the reference.

Fixes #637
Fixes #642
Fixes #646
Fixes #647
Fixes #648
Fixes #649
Fixes #650
Fixes #651
Fixes #652
Fixes #653
Fixes #654
Fixes #655
Fixes #656
Fixes #657
Fixes #658
Fixes #659
Fixes #664

Checked: cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test -p texturecraft-ui-egui -p texturecraft-engine (1378 passed, 0 failed; ui-egui again after merging the current main: 784 passed) and the other workspace crates up to the render library tests (all pass), docs/parity.md regenerated (80 of 80). I did not run cargo xtask layers or cargo xtask wasm locally; CI runs them. The render library test binary does not finish when run whole, here and on plain main alike (see known limits).

Per issue
Combination fixes
Known limits and deviations
Default keys added

L (symmetry), D (lazy mouse), A (resume previous stroke), N (ignore stencil), Ctrl+Alt+C (copy mask), Ctrl+Alt+V (paste into mask), Shift+Esc (pause engine computation), Alt+H (hide excluded geometry), F4 (swap 3D/2D), Ctrl+Shift+V (paste as instance). No two commands share a default key (the existing keymap test checks it on the combined tree).

Summary by CodeRabbit

  • New Features
    • Added a Settings window for preferences, shortcuts, and libraries, plus Display and Shader Settings panels.
    • Added Export and Log panels, log export, bake presets and completion reports, and mesh-map export options.
    • Expanded layer and mask tools with locking, mask copy/paste, channel export, flattening, and gamma correction.
    • Added texture-set renaming, navigation, resizing, and channel format controls.
    • Added brush jitter options, stencil tiling controls, path reversal, camera rotation modes, and additional viewport controls.
  • Bug Fixes
    • Geometry excluded by a layer mask can now be hidden from viewing, picking, and painting.

…layer menus, camera, bake presets, channel formats, stencil tiling, brush jitter, view swap, engine pause, hidden geometry, path reverse, paste as instance, help menu

Combines storytold#637, storytold#642, storytold#646, storytold#647, storytold#648, storytold#649, storytold#650, storytold#651, storytold#652, storytold#653, storytold#654, storytold#655, storytold#656, storytold#657, storytold#658, storytold#659 and storytold#664.
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

Changes

This pull request adds a broad set of engine and UI features, including painting controls, layer and mask operations, texture-set management, camera modes, viewport controls, settings pages, and export workflows. It also adds tests and documentation for these changes.

Painting and stencil controls

Layer / File(s) Summary
Brush jitter and stencil behavior
crates/paint/*, crates/engine/src/tool_*, crates/compose/src/eval.rs, crates/engine/src/painting.rs, crates/ui-egui/src/{dock.rs,preview_image.rs,viewport.rs}
Brush jitter supports single- or both-axis placement and uniform or Gaussian distributions. Stencils support four tiling modes, bypass, and hide-while-painting settings.
Painting commands and tests
crates/engine/tests/*, crates/ui-egui/tests/it/{paint_keys.rs,stencil.rs,brush_section_reset.rs}
Tests cover painting toggles, jitter settings, stencil modes, persistence, and behavior. Documentation describes the new controls.

Layer and mask operations

Layer / File(s) Summary
Layer state and commands
crates/core/src/layer.rs, crates/engine/src/{layer_channels.rs,mask_cmds.rs,layer_ops.rs,painting.rs,inspect.rs}
Layers can be locked. Masks can be gamma-corrected, created from images, copied, and pasted. Commands also export layer channels and flatten a source with its instances.
Layer UI and validation
crates/ui-egui/src/dock.rs, crates/engine/tests/it/{layer_menu.rs,mask_menu.rs,instances.rs}, crates/ui-egui/tests/it/{layer_menu.rs,mask_menu.rs,layer_clipboard.rs}
Layer menus expose the operations. Tests cover lock behavior, mask workflows, exports, undo, and instance-paste shortcuts.

Excluded geometry

Layer / File(s) Summary
Exclusion data and rendering
crates/engine/src/{hide_excluded.rs,painting.rs,session.rs}, crates/render/src/renderer.rs, crates/automation/src/render.rs, crates/ui-egui/src/{toolbar.rs,viewport.rs}
The viewport can hide geometry excluded by the selected layer’s mask. The renderer, picker, and stroke processing use the exclusion data.
Exclusion tests and documentation
crates/engine/tests/it/hide_excluded.rs, crates/ui-egui/tests/it/hide_excluded.rs, docs/*
Tests cover picking, painting, and toggle state with excluded geometry.

Texture sets and channel formats

Layer / File(s) Summary
Channel formats and resizing
crates/core/src/channel.rs, crates/engine/src/{set_cmds.rs,layer_ops.rs}, crates/ui-egui/src/{dock.rs,lib.rs}
Channel formats can be selected and validated; lower bit depths quantize painted channel data. Texture sets can be resized together, with queued sequential resizing.
Texture-set list controls
crates/ui-egui/src/{dock.rs,state.rs}, crates/engine/tests/it/channel_format.rs, crates/ui-egui/tests/it/{channel_format.rs,texture_set_list.rs}
The list supports renaming, visibility actions, resizing, and next/previous set commands. Tests cover the UI, undo, and conversion behavior.

Camera and view controls

Layer / File(s) Summary
Camera modes and view picker
crates/geom/src/camera.rs, crates/engine/src/{camera_cmds.rs,view_cmds.rs,session.rs}, crates/render/src/shaders/mesh.wgsl, crates/ui-egui/src/{viewport.rs,nav_buttons.rs,toolbar.rs}
Camera rotation supports free and constrained modes, snap turns, and saved-camera navigation. The view picker adds Normal+height+mesh.
Swapped 3D/2D layout
crates/ui-egui/src/{state.rs,viewport.rs,toolbar.rs}, crates/ui-egui/tests/it/split_divider.rs
The split layout can place 2D on the left and 3D on the right. Divider interaction and view sizing follow the selected layout.

Paused engine computation

Layer / File(s) Summary
Pause state and synchronization
crates/engine/src/{session.rs,view_cmds.rs}, crates/ui-egui/src/{gpu.rs,toolbar.rs,menus.rs}
Pausing stops regular compositing and texture uploads while retaining pending work. Resuming allows the pending work to proceed. Tests cover the command and UI control.

Bake workflow

Layer / File(s) Summary
GPU tracing and bake presets
crates/engine/src/bake/*, crates/ui-egui/src/{bake_presets.rs,bake_mode/mesh_map_bakers.rs,state.rs}
A setting controls whether bakes use the installed GPU tracer. The bake UI supports named presets and applying active settings to all texture sets.
Bake completion reports
crates/ui-egui/src/{bake_report.rs,lib.rs}, crates/ui-egui/tests/it/bake_presets.rs
Bake completion reports map counts, elapsed time, and failed texture sets in a toast and the Log.

Settings and libraries

Layer / File(s) Summary
Preferences and Settings window
crates/ui-egui/src/{state.rs,settings_window.rs,keymap.rs,i18n.rs}, apps/texturecraft/src/main.rs, crates/formats/src/fonts.rs
Settings add General, Shortcuts, and Libraries pages. Changes apply on OK and are discarded on cancel or closure. Preferences include worker threads, camera controls, GPU raytracing, and library paths.
Library scanning and validation
crates/ui-egui/src/{shelf.rs,settings_window.rs}, crates/ui-egui/tests/it/settings_window.rs, crates/ui-egui/tests/project_limits.rs
Library scanning includes configured absolute locations. Tests cover preference persistence, shortcut editing, and library management.

Panels, export, and help

Layer / File(s) Summary
Panel framework and settings panels
crates/ui-egui/src/{docking.rs,rail_popup.rs,display_settings.rs,shader_settings.rs,section_page.rs,export_panel.rs}
The Export panel joins the panel inventory. Display and Shader Settings gain their own panel bodies, and floating rail panels gain a Dock button.
Log and export actions
crates/ui-egui/src/{log_panel.rs,windows.rs,mesh_export_options.rs,menus.rs,file_dialogs.rs}, crates/ui-egui/tests/it/{side_panels.rs,help_menu_664.rs}
The Log panel separates General and Assets messages. Help adds release notes and log export. Mesh export has an options dialog, and headless file-dialog behavior is guarded.

Path direction

Layer / File(s) Summary
Path reversal
crates/engine/src/path_tool.rs, crates/ui-egui/src/toolbar.rs, crates/engine/tests/it/path_tool.rs, crates/ui-egui/tests/it/path_in_view.rs
The path command and toolbar reverse point order and corner flags. Tests cover draft and stored paths, repainting, and undo.

Estimated code review effort: 5 (Critical) | ~120 minutes

Change: Feature

Suggested reviewers: chasse20, rebornim

Merge Risk: Moderate · up to b3d04

Several new features have correctness gaps. Gamma-corrected masks with Blur render with the wrong values. Exporting channels from an instance layer produces no files. A failed resize-all can leave some texture sets resized. Display-settings edits can be lost on close without a prompt. Fix these before merging; the other findings are small.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

Clippy (1.99.1)

Clippy execution failed
Clippy (1.99.1) exceeded its 180-second time budget. Findings from completed work are retained; remaining checks are incomplete.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@vangel76

Copy link
Copy Markdown
Contributor Author

Replaced by #667, per maintainer request: only the Settings, side panel, camera, bake, view swap and Help parts for now. The layer, texture set, mask and painting parts wait until that area settles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment