1053 Commits
Author SHA1 Message Date
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
Chris Hassebrook 68b579f0c8 Cook MCMAT v3 linked materials at the texture set resolution (#644)
* Cook MCMAT v3 linked fills through MaterialCraft

* Install bounded material bakes at the original drop target
2026-11-18 18:57:44 -05:00
Chris Hassebrook 92287470e2 Merge pull request #421 from MorionTutoriales/feat/procedural-geometric-tilings
Procedural patterns: geometric tilings, organic surfaces, fabrics, timber and camouflage
2026-11-18 18:10:15 -05:00
chasse20 26bf15cf3c Auto: Fix procedural mask scale and reduce fill picker allocations
Apply scalar scale once when creating a procedural mask. Preserve explicit two-axis placement and the projection stored in existing projects. Read placement directly from the command parameters during edits.

Render procedural swatches only for visible picker tiles. Reserve space for the full selection and sort project images in the finished row list. Update the fill documentation for image imports, pattern resolution, and the Gradient Map menu.
2026-11-18 22:38:56 +00:00
chasse20 6f8e984d7a Auto: Integrate main and reduce repeated procedural sampling work
Reuse two fur seed tables per worker, share knot noise, and skip invisible decay and brocade detail. Normalize each catalog lookup once while preserving label and saved-name aliases.

Consolidate periodic sampling helpers, move FurLock into its own module, and strengthen coverage of coarse-grid fallback and saved pattern names. Preserve main's project and Assets changes and document the expanded catalog.
2026-11-18 21:52:15 +00:00
Chris Hassebrook a94f6e9b2c Merge pull request #639 from vangel76/feat/new-project-parity-636
New project, Project configuration and Import resources windows match the reference
2026-11-18 15:49:33 -05:00
Dylan M. Taylor f69f54f161 Merge pull request #416 from SteamSmith/fix/365-quad-tangents
Generate MikkTSpace tangents on the original quads
2026-11-18 14:51:24 -05:00
chasse20 813e3c2d92 Auto: Fix baked-map selection lifetime and update Assets filters
Discard queued baked maps when the New Project form is canceled, closed by its title bar or a layout change, or replaced by a fresh form. Keep failed imports available for retry.

Give Saved searches and Filter by path independent scrolling and a resizable divider whose position is saved. Update the asset-type menu, add Show all, and label unavailable searches and font entries. Skip folder-filter work when it cannot affect the display. Add regression tests and document the Assets panel behavior.
2026-11-18 19:51:12 +00:00
Chris Hassebrook 5c8f0ce44c Merge pull request #641 from vangel76/feat/assets-panel-640
Assets panel lists every filter entry, and Saved searches and Filter by path get a splitter
2026-11-18 14:12:24 -05:00
Dylan M. Taylor deaac7df55 fix(geom): avoid unnecessary tangent face allocation 2026-11-18 13:55:52 -05:00
chasse20 9feb78523a Auto: Integrate main and fix project creation and resource imports
Preserve main's empty startup and project-bound dialog behavior. Check for unsaved edits at Create, reject stale mesh picks, and release closed forms' mesh buffers. Transfer the desktop mesh input into the new session after validation.

Retain failed import rows for retry, keep duplicate names within the archive limit, and preserve the active brush alpha during unused-resource cleanup. Remove repeated row scans and idle UV-tooltip formatting, and keep baked-map filenames visible on separate rows.
2026-11-18 17:12:29 +00:00
Morion 77c39a8dd6 Read a pattern exactly when its coarse grid coordinate is not finite
plane_value blended four samples of a coarse grid, and a point so far out that the grid overflowed made the blend NaN although the pattern itself was finite there. It now reads the exact point in that case. The test checks every procedural at the extreme coordinates and fails without the fix (Cells at infinity gave NaN).
2026-11-18 11:50:53 -05:00
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
Morion 8e7bc663fd Fix knotty wood seam, replace coral maze with rotting flesh, test scale coverage
Knotty wood measured the ring a knot pulls towards from the copy of the unit the point was in, so a knot across the top or bottom edge left a horizontal mark when the unit repeated; it is now measured from the knot's own copy, and a test checks that no pattern is rougher across the edge of the unit than across its middle. Coral maze becomes Rotting flesh: folded wet tissue with branching veins and blistered patches of decay. The reptile scales test now asserts that a scale covers every point instead of reading a minimum brightness.
2026-11-18 11:31:25 -05:00
Morion 77eb6a2b85 Merge origin/main into feat/procedural-geometric-tilings 2026-11-18 10:53:50 -05:00
Morion 4993700189 Add organic, fabric, timber and camouflage procedurals
Thirteen seamless patterns: smooth fur, mackerel sky, soft billow, reptile scales, young bark, coral maze, camouflage, knit, basket weave, goose-eye twill, slub silk, strip flooring and knotty wood. Each repeats every unit and takes extreme and non-finite coordinates. Tests cover repetition, range, variation, the seed and the extremes, plus the specific structure of the scales, bark, maze, camouflage tones, weaves and boards.
2026-11-18 10:38:07 -05: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
Morion 5907ad6a45 Merge origin/main into feat/procedural-geometric-tilings 2026-11-17 23:24:15 -05: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 aa6eaa42ae Use the reference texts verbatim in all three windows
The UV tile notes are the reference's again, the UV tile title has the
tutorial icon (disabled), Import resources names the library
'your_assets' and has the note about adding a library. Texts the
reference does not show (the OpenColorIO note, the project's UV tile
list) moved into hover hints.
2026-11-18 00:23:25 +01:00
vangel76 fbd6fe92c0 Merge branch 'feat/import-resources-638' into feat/new-project-parity-636 2026-11-18 00:18:57 +01:00
vangel76 014e2881a5 UV tile notes say where UV tiles change
New project tells the user UV tiles can be changed later in Texture Set
Settings, which is true in TextureCraft. Project configuration says the
same in one note instead of a separate line under the tile list.
2026-11-18 00:18:57 +01:00
vangel76 a0f9f81ae6 Import resources window with usage, prefix and filter
File > Import resources now opens a window: add files (images and
materials), set an optional name prefix and a usage per file, filter by
usage, remove selected rows, then Import or Cancel. Texture and undefined
import an image resource, environment also lights the scene, alpha also
sets the brush alpha. Color LUT, post effect and the user asset library
target are listed but disabled. resource.import takes an optional prefix.
2026-11-18 00:18:28 +01:00
vangel76 2416736820 Align rows without an info icon, indent the baked map list, and test template selection
Rows without an info icon keep an invisible one so their controls line
up with the others. The baked map list follows the section indent. New
tests pick a saved template, check that the OpenColorIO settings are
disabled with the hint, and render Project configuration in both color
management modes (ignored GPU snapshot test).
2026-11-18 00:17:48 +01:00
vangel76 76e8f110ab New project and Project configuration windows follow the reference layout
New project now has BASIC SETTINGS (Select... a mesh file, project
template, document resolution) and a collapsible ADVANCED SETTINGS
section with normal map format, tangent space per fragment, UV tile
settings, import settings, Import baked maps, Physical size and Color
management, each row with an info icon. The form scrolls while Cancel
and Create stay fixed below it; Create waits for a mesh file. The
built-in mesh dropdown, the Name field and the save-as-template
controls are gone; the project is named after the mesh file.

Use UV Tile workflow, Import cameras (new importCameras parameter on
file.new), the template, resolution, normal map format and baked maps
reach the created project. Settings TextureCraft does not have yet are
shown disabled with a "Not available yet" hint; OpenColorIO can be
chosen to see its settings, but the project stays Legacy. In the
browser, Select... uses the browser's file picker.

Edit > Project Configuration gets the same section names and order,
the disabled rows, Physical size (collapsed) and Color management, and
the reference's recompute note above Cancel and OK.

Part of #636.
2026-11-18 00:12:11 +01:00