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.
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.
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.
Integrate main and honor per-map sizes and shader sidecars through MCP. Preserve texture writes when an optional sidecar fails, and cover both outcomes through the tool transport.
Bound layered PSD working memory, preserve set and UDIM names, and report effective dithering. Match previews to stored channels and identify linear grayscale JP2 samples correctly.
Reuse sample buffers, cache unchanged template plans, and share identical grayscale preview textures. Remove the obsolete direct XML dependency. Apply the maintainer’s preset attribution decision and retain the ICC credit and codec notices.
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.
The tick is saved with the export settings like Export USD asset; the window sends every texture set of the export with its last command (shaderParameters of file.exportTextures), and the browser adds the file to its download.
Image resources imported from a file remember its path and modification
time. resource.status lists each resource as outdated, missing, up to date
or without a file; resource.update reads changed files again and
resource.relink points a resource at another file, each as one undo step
that recomposites every layer using the resource. Undo and redo drop
pixels decoded from bytes they replace under the same name.
The shelf's Resources Updater button opens a window with the project's
resources (outdated first), status and name filters, Update, Select new
resource, Show in folder, Refresh and Update All. When the app gets the
focus back after files changed, a notice offers to update them.
Automation refuses the three commands, since they read host paths the
project names.
TrianglePartition and the UV edge key (with its corner grid) move from the engine into texturecraft-geom unchanged, beside the mesh they group, with a uv_islands constructor polygon fill now uses for its UV island mode. The compositor can then group texels by UV island for the UV island generators without depending on the engine.
A new kind with the reference's controls: Position X, Y and Z across the mesh's bounds (scaled evenly, the longest side spanning 0 to 1, as the reference's position map is), Radius, Offset, Contrast and Invert. The value falls from 1 at the point to 0 at the radius and is then slid through by a histogram scan (offset 0 all black, 1 all white; contrast 1 a hard edge); it matches the reference within 0.001 on every captured setting. It reads its Position input like Position does, has no earlier model or global controls (both refused), and swapping onto it drops the earlier offset. Commands only: the picker leaves it out until its panel is designed.
Curvature, Ambient Occlusion and the three wear kinds take the reference's Micro Details: Use Micro Details (Curvature and Ambient Occlusion), Micro Height, Micro Normal, Curvature Type (Standard, Sobel, Smooth), Curvature Intensity, Height Details Intensity, AO Radius and AO Depth, with the images as the microHeight and microNormal inputs of effect.set (an image or a value; an empty slot reads black). Fitted to the reference app: the micro height becomes a normal, and that normal's divergence (Smooth: the height against blurred copies of itself) is added to the curvature input before the detail sizes blur it, with a small per-type lift; the micro normal adds its own divergence. Ambient Occlusion is multiplied by a horizon occlusion of the micro height over 16 directions. Both are built once per mesh map, image and settings and cached; derivatives and radii are per texel at 2K, so the look holds across resolutions. Off by default, so existing projects render as before; the controls move an earlier-model generator onto the reference's controls, are refused on kinds without them, and the images stay across swaps between kinds that have them.
Honor template and layout destinations, preserve the active layout mode, and update the template library after a successful write. Keep Log copy and selection, rotated fill feedback, and image-view restoration consistent with the visible session.
Refresh lighting when an imported environment changes or disappears. Share image resampling by resolution, skip unused headless uploads, bound tile conversion batches, and avoid cloning trace scenes per row slice. Keep the new display and shortcut types in dedicated files.
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
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.
Start interactive desktop and web sessions with an empty workspace. Keep the sample project available from the File menu and preserve desktop control-mode startup behavior.
Report the closed state through automation, disable commands that require a project, and release viewport render targets on close. Update menus, documentation, and regression tests for startup, close, and command availability.
Use the Tile Generator sampling context for gradient maps and retain pattern settings and gradient stops through fill edits. Keep the shared picker alongside the gradient, decal symmetry, and layer selection controls. Collect thumbnails after the dock and detached windows draw.
Update affected tests for the merged picker and cover image-backed and reduced-resolution gradients.
Preserve closed-session guards and project cleanup alongside the new layer, camera and layout controls. Update the menu-order regression for the merged catalog.
Reject overflowing set indexes, saturate layer moves and clone offsets, and validate path corner flags before mutation. Clear discarded path caches and replace disabled-mask previews with a blank upload.
Reduce repeated selection allocations and temporary mask buffers. Preserve public reexports while separating types, and complete scoped comment and guard-spacing cleanup.
Validated paint and focused engine tests, workspace Clippy, production wasm checks, layering and formatting.
Combines 45 open pull requests so the Windows proof build runs once. Included:
- Fill layers can color from dark to light with a gradient map (PR #535, fixes#482)
- Front, side and top views, and F5/F6 switch between perspective and orthographic (PR #539, part of #241)
- Textures export as DDS, with compressed normal and grayscale maps for game engines (PR #543, fixes#354)
- The active layer and the eye in the Layers panel are much easier to see (PR #561, fixes#553)
- Export dialog can also write a MaterialX file for each texture set (PR #563, fixes#558)
- Layers toolbar stays on one row and cut-off layer names show on hover in small windows (PR #564, fixes#560)
- Save a layer's mask as an image file or copy it to the clipboard from the layer menu (PR #565, fixes#559)
- Shift + wheel and Ctrl + wheel change the brush size, and Ctrl+drag brush changes have a fine mode (PR #566, part of #545)
- Select several layers in the Layers panel with Shift+click, Ctrl+click and Ctrl+A (PR #567, fixes#247)
- Pressing F frames the object you are painting, so a floor plane no longer throws off the view (PR #568, fixes#478)
- Save a mask as your own smart mask and reuse it on other layers and projects (PR #569, fixes#562)
- Show one layer alone in the viewport, with or without its mask (PR #570, fixes#544)
- On-screen orbit, pan and zoom buttons let a pen tablet move the 3D and 2D views (PR #573, fixes#288)
- Decals can be mirrored to the opposite side of the mesh across X, Y or Z, with optional U or V flip (PR #576, fixes#272)
- Shift+click lines in the 3D view start at the spot you last painted, even after turning the view (PR #578, fixes#574)
- History steps now name the tool and layer and appear in the interface language (PR #580, fixes#572)
- Path tool keeps your points when you click in the other view and tells you why (PR #582, fixes#575)
- Brush, symmetry and tool settings stay when you open another project or restart the app (PR #584, fixes#571)
- Reset only the panel layout from the Window menu, and Reset UI now asks first (PR #586, fixes#577)
- Output templates ask before deleting and before dropping an unfinished edit (PR #588, fixes#579)
- Clone tool shows its source in the 2D view, forgets it when you switch texture set, and can restart at the source each stroke (PR #590, fixes#581)
- Move the symmetry plane to the model's middle or to a clicked point in one click (PR #591, fixes#585)
- Projection stencil can be dropped in from Assets, moved and reset with fields, turned in snapped steps, and the 2D view says projection works in 3D (PR #593, fixes#583)
- Smudge now shows which channels it drags and lets you switch them (PR #594, fixes#587)
- Save panel layouts under a name and switch between them from the Window menu (PR #595, fixes#589)
- Clone and Smudge now work on layer masks (PR #596, fixes#592)
- A layer image menu test no longer fails when another test switches the interface language (PR #597)
- Clicking a material in the shelf now paints with it instead of adding a layer (PR #599, fixes#305)
- Alt+click on a mask thumbnail now labels the mask view and blanks the other texture sets (PR #605, fixes#600)
- Painting on a texture set that is not active now shows a hint why nothing happens (PR #607, fixes#601)
- Ctrl+Shift+click draws straight lines that snap to 15 degree steps (PR #609, fixes#604)
- Output template channels can be inverted (PR #611, fixes#603)
- Smudge now follows the mirror and radial symmetry planes (PR #613, fixes#602)
- The shortcut list now shows the stencil, clone source, straight line and path gestures (PR #614, fixes#608)
- Symmetry now also mirrors strokes painted in the 2D view (PR #615, fixes#610)
- Decals keep their image's proportions while sizing and can be flipped (PR #617, fixes#606)
- Polygon fill now also fills the mirrored side when symmetry is on (PR #619, fixes#612)
- A decal dragged over a curved or differently facing surface now turns with it instead of tilting or flipping (PR #622, fixes#616)
- Every brush alpha now has size, roundness, contrast and invert settings (PR #623, part of #598)
- Decals placed as a mask can now be sized, turned and moved from Properties like decal layers (PR #624, fixes#618)
- Renaming effects and linking fills to mask anchor points are now tested in the interface (PR #626, fixes#621)
- Path points can be corners, so paths can have hard edges (PR #627, fixes#620)
- Layer menu can apply a layer's blending mode and opacity to all channels, and copy/paste channel blending (PR #631, fixes#629)
- Display Settings can now set glow, vignette, sharpen and film grain (PR #632, fixes#630)
- Every command a key can run can now get a keyboard shortcut (PR #633, fixes#628)
Fixes found while combining them: the named layouts window is drawn again, layer remove/duplicate/group/visibility stay bindable to keys, the Clone tool's Aligned switch is kept with the other tool settings, smudge copies in the 2D view keep their own trails, and a UI or control-channel camera command during a view glide is no longer undone by the glide.
Removes the start window and the startup sample project. With no project open the views are empty (view picker only), Layers and Properties are empty, project-only menu items and commands are disabled, and the status bar shows only the version.
layer.fill.set, effect.add.fill and effect.set take `tile` (Tile Generator settings in camelCase, menu choices by label or id, brought into range), `tileDefaults` and a pattern's `resolution`, `customResolution` and `resolutionFactor`; settings alone edit the current pattern, and picking the kind a channel already has keeps them. effect.set picks a mask fill's pattern with `procedural` and a uniform value with `uniform`. project.inspect reports both.
Preserve main UI and translation changes. Bound archive indexing, directory scans and native reads; fix resolution-token overflow, unique-name replies and dialog behavior.
Avoid generated-map re-decoding and input-buffer clones, release packed sources after their final use, and borrow dialog candidates. Keep generated pixels identical to PNG reloads. Organize new types and preserve the public classifier module.
Validated with 973 release tests, focused UI and allocation probes, panic hunt, clippy, layering, wasm, formatting and diff checks.
Preserve the shared-catalog integration and saved review repairs. Reject saved path commits during quick-mask editing, hide the unavailable 2D brush cursor, and reduce dirty-tile selection work. Keep the Selection test fixture in its own module.
Session::tool_usable answers per tool: brushes and Path act on paint layer
content, paint sublayers, masks and the quick mask while it is edited; fill
content, filters, generators, folders, instances and an empty selection take
none of them. Smudge and Clone can't paint mask values yet. Path also edits a
selected path sublayer, wherever it is. The color picker always acts; the
geometry mask needs a layer.
Merge upstream main into the branch. The streamed bake now returns the same Arc buffers it handed to the preview, and the document stores those, so a preview never holds a second copy of a map. A cancel leaves the set being baked as it was; sets that finished earlier stay applied.
Properties gets tolerance, a Colors list (swatch, R/G/B, re-pick, remove)
and a Pick color mode: the pointer becomes an eyedropper, both views show
the ID mesh map and the next click adds the ID color under it.
effect.set takes colors; effect.colorSelection.pick samples the texel the
mask evaluates and skips hidden texture sets.
- The brush stroke paints while points are placed and dragged (3D and 2D);
applying is one undo step, Esc removes the unfinished path
- Click the curve to insert a point, select a point and remove it with
Backspace or the Remove point button; undo steps through point changes
- The selected layer's other paths are drawn (lit under the pointer) and a
click opens one for editing; 3D lines follow where their paint lands
- A path repaint recomposites only the tiles it changed, not the whole set
- Pen pointer for the tool; new paths start open; Apply/Cancel removed
- Switching texture sets applies a path being placed first
Closes#333
New project > Advanced settings gets the project's normal map format and
Import baked maps: Add lists image files, and Create imports them with the
new textureSet.meshMap.import command, which sets each file as the mesh map
of the texture set and slot its name names (Body_ambient_occlusion.png,
Body_normal.1001.png) in one undo step and reports the files it left out.
The 2D view keeps the end of the last finished stroke in texture coordinates,
with its texture set, so a line drawn after zooming or panning joins the same
texels, and previews the line while Shift is held, as the 3D view does. A
cancelled stroke (Escape) leaves the line start where it was.
Session::continue_stroke_uv stamps a long segment in batches of 4096 up to
1 << 17 stamps instead of stopping at 4096, keeps its carry within one step,
and seeds stamps from the stroke's running count (UvStrokeState) so noise
alphas don't repeat every pointer sample. The line preview is clipped to the
view, keeping its dash phase.
Refs #306
- A box drag always finishes: on release (even after a failed move), before
any edit, undo, redo or tool change, and when a scripted box fails or
starts while another drag is open. A camera move mid-drag (wheel zoom)
keeps the drag and selects again from the new camera.
- A drag projects the mesh once, skips repaints whose box hasn't moved,
and builds each grouping once; triangle edges are computed once.
- 2D clicks read the triangle from the set's UV G-buffer at the clicked
texel, so collapsed UV faces can't take the click.
- Brush strokes no longer record the nearest-triangle buffer; only polygon
fill asks for it (EyeDepth::render_with_triangles). Screen projection is
shared through paint::screen_point.
- A box touching the view's edge or zero-size on whole pixels selects
exactly the pixels it covers.
- Click fills never merge into a box drag's undo step; FillMode moves to
its own file; partial box parameters get their own error.
A drag in the 3D or 2D view draws a rectangle and fills what it selects
live; releasing it records one undo step. A click still fills one target,
now also in the 2D view. Fill modes gain Polygon (the source quad or n-gon,
from the importer's diagonals), and Mesh fills connected geometry. The
hit-test picks polygons the rectangle touches or whose center it holds;
visible polygons only uses a nearest-triangle buffer next to the eye-depth
raster, leaving hidden texture sets out.
Polygon fill's properties show its own settings and, by selection, the
material, the mask gray, or why it can't fill. Wireframes show while the
tool is active without changing the saved toggles.
Commands: tool.fillMode takes polygon, tool.fillSelection sets hitTest and
visibleOnly, and tool.click takes a screen box, a UV point or a UV box.
Smart material shelf tiles and hover previews render the real material,
applied with materials::apply to the baked preview orb and composited by
the compositor, lit in a dark studio of soft boxes. MaskPreview becomes
OrbPreview (masks and materials share one bake and one worker). Tiles
show a loading icon until their preview arrives; the web takes one
worker request per frame. preview::material keeps plain materials only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>