Commit Graph
1023 Commits
Author SHA1 Message Date
chasse20 36e0b37beb Auto: Integrate main and fix Assets pane resizing and settings
Keep main's navigator defaults and layout notes. Use the shared accessible
splitter, keep the last row reachable in short panes, and recover an
overflowing saved split before it can prevent other preferences saving.

Build saved queries only on Save. Skip folder work for closed panes and
unfiltered libraries, and check for descendants without cloning names.
2026-11-18 16:34:13 +00:00
Dylan M. Taylor 274504584e Merge pull request #546 from storytold/fix/mcmat-decoded-budget-current
Bound decoded linked-material maps without reverting shared MCMAT
2026-11-18 09:47:46 -05:00
Dylan M. Taylor b9c5ff8624 Merge remote-tracking branch 'origin/main' into pr-546 2026-11-18 09:12:57 -05:00
FredApps 52693d91e0 Merge pull request #193 from JonRC/docs/colour-param-space
Docs: say which colour space each colour param form is in
2026-11-18 19:16:16 +07:00
FredApps 3163bea5e6 Merge remote-tracking branch 'origin/main' into docs/colour-param-space 2026-11-18 18:15:41 +07:00
Dylan M. Taylor 4651e7dee0 Merge pull request #487 from MorionTutoriales/investigate/id-map-481
Preserve separate OBJ parts with matching names for Submesh ID baking
2026-11-18 06:13:25 -05:00
FredApps ca79d108e4 Merge remote-tracking branch 'origin/main' into docs/colour-param-space
# Conflicts:
#	crates/engine/src/layer_cmds.rs
#	crates/engine/src/mask_cmds.rs
2026-11-18 17:22:38 +07:00
Dylan M. Taylor c77e1793a5 Merge pull request #643 from storytold/refactor/gltf-strict-uri
Use shared strict glTF URI percent decoding
2026-11-18 05:10:40 -05:00
Chris Hassebrook ac9e4ec6c3 Merge pull request #550 from Rebornim/feat/tile-generator
Generators: Tile Generator pattern, pattern resolution and the fill source picker
2026-11-18 04:53:00 -05:00
FredApps a9fcd33da9 Docs: note that a colour selection's effect.set colors are linear arrays only
The general colour-param paragraph could be read as allowing hex or a grey
number in effect.set's colors list, which that command rejects.
2026-11-18 16:20:11 +07:00
FredApps 5d90d019d9 Merge remote-tracking branch 'origin/main' into docs/colour-param-space
# Conflicts:
#	crates/engine/src/layer_cmds.rs
#	crates/engine/src/tool_cmds.rs
#	docs/control-protocol.md
2026-11-18 16:16:30 +07:00
chasse20 1b83d93689 Auto: Start TextureCraft with no project and restore that state on close
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.
2026-11-18 08:49:01 +00:00
Chris Hassebrook 22c9d1860e Merge pull request #634 from vangel76/feat/startup-blank-625
Start with no project open, with menus, tools and right bar in the reference order
2026-11-18 03:05:20 -05:00
chasse20 b85088526a Auto: Merge main and reconcile Tile Generator fill sources
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.
2026-11-18 07:25:28 +00:00
chasse20 3939886c4b Merge main into the empty-project startup changes
Preserve closed-session guards and project cleanup alongside the new layer, camera and layout controls. Update the menu-order regression for the merged catalog.
2026-11-18 07:03:03 +00:00
Dylan M. Taylor d7739b0645 Use shared strict glTF URI percent decoding 2026-11-18 01:59:37 -05:00
Chris Hassebrook 0ea27dde4b Merge pull request #635 from vangel76/feat/ui-batch-2026-11-17
UI parity batch: layers, masks, brushes, symmetry, decals, camera views, export (DDS, MaterialX) and shortcuts (combines 45 PRs)
2026-11-18 01:45:55 -05:00
chasse20 f9635574ea Auto: Repair invalid decal symmetry axes on project load
Clamp saved axis values above 2 to Z, matching the renderer’s fallback. Extend the regression to check that a saved axis of 255 becomes 2 on load and stays 2 after a rotation edit.
2026-11-18 05:46:19 +00:00
chasse20 0ff72b0d46 Auto: Revert export additions and evaluate brush pickup by tile
Remove DDS encoding, its dependency, export options, tests and documentation. Revert the MaterialX export-dialog option and preview additions while retaining engine export support.

Evaluate material-brush and mask Clone/Smudge pickup on demand. Give mask preview and commit an explicit value image. Sample the document in solo mode and avoid redundant export cache invalidation.

Validate saved decal axes, stencil settings and smudge strength. Bound smart-mask reads, write masks atomically and reject external anchor references. Clear stale clone sources on cross-set selection. Reject moves into another set’s folder and use layer positions to detect no-op moves without cloning the project again.

Load saved materials on shelf click and route pinch gestures to viewport zoom. Add regression tests for the affected behaviors.
2026-11-18 05:20:25 +00:00
chasse20 26490af2b9 Auto: Harden command and clone bounds and reduce mask allocations
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.
2026-11-18 04:14:11 +00:00
JonRC 78e15eae08 Merge remote-tracking branch 'upstream/main' into docs/colour-param-space
# Conflicts:
#	crates/engine/src/mask_cmds.rs
2026-11-18 00:14:41 -03:00
chasse20 0611d461d9 Auto: Remove anchor preview visibility test and waiting helper
Delete source_picker_renders_only_visible_anchors and the associated
settle_anchor_previews helper from the fill-source picker tests.
2026-11-18 01:43:10 +00:00
chasse20 7352fe307e Auto: Reject stale browser project picks
Bind environment and bake-mesh picks to the project that opened them. Reject completions after Close or replacement while accepting picks in their original project.
2026-11-18 01:24:58 +00:00
chasse20 7d1573d491 Auto: Fix tile rendering, panel edits, and localized test harnesses
Respect per-UV-tile resolution when reducing procedural patterns. Cover rotated tiles across repeat boundaries without counting overlapping copies more than once.

Preserve both contrast and invert edits when committed together, with regression coverage. Pin tile-panel tests to English and allow missing glyphs in the image-menu preview-cache harness.
2026-11-18 01:17:09 +00:00
chasse20 f783e69ba1 Auto: Clear Export and reject late HDR imports after Close
Dismiss Export on control-driven Close, discard environment picks that finish after Close, and establish both view targets before testing their removal.
2026-11-18 00:46:39 +00:00
chasse20 23ded4d481 Auto: Release stale project state and guard closed-session work
Discard pending resize/import work and thumbnail snapshots on successful
project replacement. Reject closed-project headless and direct control work,
and prevent capture of the previous viewport immediately after Close.

Clone selected-layer metadata only while the Add effect menu is open.
Complete scoped naming, spacing, comments and regression coverage.

Validated release tests for engine, automation, UI and desktop; formatting,
workspace clippy, layering, wasm, panic tests, and offscreen/GPU regressions.
2026-11-18 00:16:38 +00:00
chasse20 f06c8acecf Auto: Integrate main and defer hidden picker previews
Create image and anchor previews only for visible picker tiles, advance
outside thumbnail frames so stale handles can expire, and reuse bilinear
corner samples. Add focused preview and lifetime regressions and complete
scoped comment, spacing, and slider-constant cleanup.

Preserve the prepared main integration. Validated with affected release
tests, workspace Clippy, layering, wasm, panic_hunt, formatting, and
offscreen UI snapshots.
2026-11-18 00:05:33 +00:00
vangel76 b6830eed5d Assets panel: reference filter entries and a splitter between the panes
The type dropdown lists the reference entries in their order: the asset
types, Fonts (greyed, not available yet), a separator and Show all,
which unpicks the type. Saved searches lists All and the reference's
built-in Favorites, 3D Assets and Flattened layers (greyed until they
work); Filter by path adds the System fonts and User fonts libraries
(greyed). Saved searches and Filter by path are now two boxes with a
splitter between them; its position is kept in the UI state.

Fixes #640
2026-11-18 00:41:59 +01:00
vangel76 d9bdef92b2 TextureCraft UI parity batch: 45 changes in one commit
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.
2026-11-17 22:51:06 +01:00
vangel76 df51327076 Drop pending resize and viewport images on Close; pin test language; document project-independent commands 2026-11-17 22:48:16 +01:00
vangel76 7eba03f63a Review fixes for the reference-order tests; regenerate parity doc 2026-11-17 22:28:25 +01:00
vangel76 398d764fc2 Merge upstream/main 2026-11-17 22:23:12 +01:00
vangel76 ba26b11d85 Align menus, tool shelf, right bar and blank-screen states with the reference order 2026-11-17 22:23:06 +01:00
vangel76 18c8538c3d Keep the control-run start, refuse project commands in headless close, grey view buttons without a project
Review fixes: --control runs still start with the sample project, headless save/export/import refuse after file.close, session.inspect reports projectOpen, web drops need a project, the template button and view buttons are disabled without a project.
2026-11-17 22:11:00 +01:00
Chris Hassebrook 97f6b81984 Merge pull request #259 from Aalzard/brush-presets
Brush presets: save your own named brushes
2026-11-17 16:06:03 -05:00
vangel76 bac934d5a5 Start with no project open; File > Close returns to the empty state
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.
2026-11-17 22:00:22 +01:00
chasse20 92e01f0fa8 Auto: Isolate brush snapshot from saved presets and locale
Clear loaded brushes and select English before rendering the snapshot. Assert that only the test preset remains.
2026-11-17 20:15:17 +00:00
chasse20 7ef25ad373 Merge latest main into CPR 23 preserving brush preset repairs 2026-11-17 19:34:47 +00:00
Dylan M. Taylor 8b46864f2c Merge remote-tracking branch 'origin/main' into fix/mcmat-decoded-budget-current 2026-11-17 13:53:38 -05:00
Dylan M. Taylor 8347da6e93 Merge pull request #556 from storytold/chore/usdz-merged-pin
chore(usdz): pin aligned ZIP writer to merged revision
2026-11-17 13:53:12 -05:00
Dylan M. Taylor 1ebf800134 Merge current main into aligned ZIP pin follow-up 2026-11-17 13:02:43 -05:00
Chris Hassebrook 3f06367b59 Merge pull request #226 from simonhull/perf/dirty-region-uploads-and-mips
Rebuild mips only over the uploaded region; skip display kinds a set can't show
2026-11-17 12:11:10 -05:00
Rebornim 7ceb03a52e The source picker offers images to mask fills, and a pattern's scale leaves the fill's projection alone 2026-11-17 17:11:01 +00:00
Rebornim d858fdba36 Pattern edits take the seed with tile settings, a uniform pick outranks them, gray rows take a typed value, the output size follows the UV tiles 2026-11-17 16:27:46 +00:00
Rebornim 7c28d4f5f5 Tile Generator image inputs
The Custom image input shape draws one of the pattern's input images in each tile, picked at random or by tile number, through the shape's tiling, angle, scale and turns; the background image shows under the shapes instead of the background value. Patterns read images through a PatternContext (its resolution and the image resources), which the compositor passes; procedural() keeps evaluating without images.
2026-11-17 16:27:37 +00:00
Rebornim 429e7cac65 Pattern panel and fill source picker
A fill channel's or a mask fill's source is a slot that opens the resource picker, with Resources (patterns, images, a uniform value) and Anchor points tabs; anchors show a picture of the stack they record. The picked pattern shows its Attributes, Resolution, Parameters and Image inputs; the Tile Generator's parameters follow the reference app's sections, with an angle dial and black-to-white gray rows. The picker's group headers read as section titles.
2026-11-17 16:27:25 +00:00
Rebornim cf62277857 Pattern settings in fill commands
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.
2026-11-17 16:26:58 +00:00
Rebornim 37edd3c44b Tile Generator pattern and pattern resolution
A Tile Generator pattern kind lays shapes out in a grid of tiles: 15 shapes and image inputs, tile counts, row or column offset, middle size, interstice, size modes, scale, free and quarter-turn rotation, mirroring, per-tile random scale, position, rotation and luminance, masks, Add/Max/Add sub blending, background, opacity and a position/contrast window. Its settings are a TileGenerator on Procedural (saved only for that kind).

Every pattern gets an output resolution like generators: below the UV tile's resolution it is read from an image of that size, bilinearly. Patterns saved before keep their form and render unchanged.
2026-11-17 16:26:06 +00:00
chasse20 009bb0c4d1 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-17 16:22:03 +00:00
Chris Hassebrook 1bdca09fc0 Merge pull request #263 from Aalzard/pbr-folder-import
Import a folder, files or zip of PBR textures as one fill layer
2026-11-17 11:19:04 -05:00