Commit Graph
1089 Commits
Author SHA1 Message Date
aiongg 1b7aee78dc Drop local rule links and instructions 2026-11-20 03:16:14 +00:00
aiongg 5c2e6d2514 Adopt the shared AGENTS.md (RFC-0072) and test rules (RFC-0071) 2026-11-20 03:15:18 +00:00
Dylan M. Taylor 52ba5338dc test(engine): disambiguate parallel materialx test temp dirs (#699) 2026-11-19 21:46:01 -05:00
Chris Hassebrook d895b7e226 Merge pull request #686 from vangel76/feat/ui-batch3-views
View picker, Display Settings, shortcuts, 2D view, Log, templates and Window menu match the reference (combines 10 issues)
2026-11-19 20:52:10 -05:00
Dylan M. Taylor 7bc833ff6a formats: cut over OBJ/GLB mesh export and EXR writing to craft-libs (#697)
* formats: cut over OBJ/GLB mesh export and EXR writing to craft-libs (#778)

* fix(export): use Format::OpenExr for craft-image-codecs

* fix(export): import std::io::Cursor in tests

* test(engine): handle OBJ output without leading header before o

* chore: repin craft-mesh and craft-image-codecs to craft-libs main
2026-11-19 20:43:02 -05:00
Dylan M. Taylor 549daad3aa formats: cut over USDA/USDC scene read/write to craft-usd (#778) (#696)
* formats: cut over USDA/USDC scene read/write to craft-usd (storytold/craft-libs#778)

* chore: update Cargo.lock for craft-usd

* chore: update craft-usd pin to 5161fcc (storytold/craft-libs#778)

* chore: repin craft-usd to craft-libs main
2026-11-19 20:40:23 -05:00
Dylan M. Taylor 75271b3934 formats: share COLLADA (.dae) and Alembic (.abc) import via craft-mesh (#695)
* formats: cut over COLLADA (.dae) and Alembic (.abc) import to craft-mesh

* chore: bump craft-mesh to 809a72e

* chore: bump craft-mesh pin to 5415dfe

* chore: repin craft-mesh to craft-libs main
2026-11-19 20:40:17 -05:00
chasse20 311bf89885 Auto: Integrate texture export and preserve browser log sources
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.
2026-11-20 01:19:32 +00:00
Chris Hassebrook 1d3686f5fe Merge pull request #685 from vangel76/feat/ui-batch3-export
Export window: per-set and per-map overrides, more file types, progress console (combines 6 issues)
2026-11-19 20:02:07 -05:00
Dylan M. Taylor 486f0b7ca5 Merge pull request #693 from Terra854/fix/shared-resource-png
Use shared PNG encoding for generated resources
2026-11-19 19:44:09 -05:00
chasse20 5c75584c99 Auto: Fix export plans, texture tags, and integer staging
Use first-wins filenames in export plans, match MaterialX tags to the encoded samples, and keep nonempty scaled UDIM tiles at least one pixel wide. Quantize native-order integer rasters directly into bytes to remove the second float buffer.

Validated with formats and engine release tests, formatting, Clippy, layering, Wasm checks, and comparative heap measurements.
2026-11-20 00:37:15 +00:00
chasse20 75239d066e Auto: Reject ambiguous project template names and labels
Use the same collision rules when saving templates and loading library JSON. Preserve canonical-name replacement and require a unique match for display-label lookup.
2026-11-20 00:37:12 +00:00
chasse20 981bc34c50 Auto: Reuse the backing file when replacing a project template
Track library paths on load and after successful saves. Carry them across project switches so pathless replacements update the original JSON file and survive reload.
2026-11-20 00:15:44 +00:00
chasse20 daf3d1f0b3 Auto: Integrate main's raster codecs with texture export
Pass dithered and quantized samples to the shared Craft encoders. Preserve PGM colour-space metadata, PSD sizing and separate alpha, and float TIFF layout, straight alpha, and ICC profiles.
2026-11-20 00:02:46 +00:00
chasse20 7d276ad502 Auto: Fix PGM metadata and PSD and TIFF export handling
Use the written luminance space in PGM filenames and MaterialX tags. Reject oversized PSD files before resizing and name the independent alpha plane. Write straight-alpha metadata in float TIFFs while preserving float samples and ICC profiles.
2026-11-19 23:52:08 +00:00
chasse20 0c459e82d0 Auto: Integrate main's shared format codecs for PR #686
Bring in the shared glTF reader, GLB writer, mesh-map PNG encoder, and texture encoders from main at e099725. The branches merged cleanly and the approved PR repairs are preserved.
2026-11-19 23:46:48 +00:00
chasse20 050ec8c1a8 Auto: Fix save destinations and refresh viewer resources
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.
2026-11-19 23:38:04 +00:00
Dylan M. Taylor e099725db4 formats: cut over glTF import, GLB container, MCMAT 16-bit PNG, and export encoding to craft-libs (#694)
* formats: cut over glTF import, GLB container, MCMAT 16-bit PNG, and export encoding to craft-libs

* export: replace unreachable! with error for clippy
2026-11-19 18:32:28 -05:00
chasse20 8d44bbc278 Auto: Preserve export plans and reduce texture export memory
Keep desktop previews and UDIM sizing aligned with writes. Preserve map overrides across template edits, prevent cross-set MaterialX references, validate map options and forward them through MCP. Use the shared PGM and PSD writers and enforce the PSD dimension limit.

Reuse diffusion storage, borrow float TIFF samples, skip padding for empty plans and release ZIP inputs as they are packed. Release browser download URLs and callback references on success and failure. Give export messages original wording and organize new types by file.

Validated with release tests, Clippy, layering, WebAssembly, offscreen UI checks and paired allocation probes.
2026-11-19 23:14:14 +00:00
Terra854 c95880f9c8 Route generated resource PNGs through the shared codec 2026-11-20 07:05:36 +08:00
vangel76 833a552452 Document filename collisions for desktop and browser exports 2026-11-19 21:26:04 +01:00
vangel76 aba0c1ef24 Export tests: wait for layout before a second click, count the frames of a window close click 2026-11-19 10:28:07 +01:00
vangel76 de75137759 Export: one same-name rule for every export path, frozen template, stale draft moves, progress count
- Session::export_files leaves out a later set's file named like an earlier one's (with a
  warning on the kept file), so file.exportTextures, the automation textures.export and the
  browser zip share it; the left-out file's own warnings go with it.
- An empty file type override removes the global file type from the set's parameters.
- A running export keeps the template content it started with.
- Moves of an unfinished draft are forgotten when the template is saved elsewhere.
- Texture sets that leave a running export leave its count.
2026-11-19 10:21:10 +01:00
vangel76 1491aea8f1 Drop a test assertion that cannot fail on its own 2026-11-19 10:11:54 +01:00
vangel76 729aa837df Export window: freeze settings at Export, refuse same-name overwrites, keep overrides with their maps and sets
- Export takes each texture set's parameters and the output folder when it is clicked; later
  edits do not reach the running export. Export is greyed with no texture set ticked.
- Two texture sets that would write the same file name stop the export before it starts (UI);
  file.exportTextures skips a file named like one an earlier set of the same call exports, with
  a warning, instead of replacing it.
- Closing the window stops the export before it writes another set; opening another project
  stops it, and a set that moves takes its pending export along.
- Per-map overrides follow their map when the template's maps are moved or removed.
- Cancel after texture sets moved, Reset all, and settings saved before they had an owner keep
  the ticks and overrides.
- A set's file type override starts from the template's type when its maps share one.
- PGM luminance is taken before the colour space conversion.
- The Output templates footer counts the maps the current set exports.
2026-11-19 10:11:41 +01:00
vangel76 d595d52770 Fix batch-3 CI test and review findings
- Use a 128 px sample session in the unlit-switch test (main requires 128 or more)
- Drop a deferred Other... view whose image was removed during a bake
- Keep the neutral material of lit Metallic/Roughness views when spec/gloss is on
- Resend the shown Image view after texture sets are recreated
- Drop the default search query only at a word boundary
- Restart the render when the display background changes
- Document when viewport.frame resets the 2D view
2026-11-19 10:00:47 +01:00
vangel76 3cbe724030 UI batch 3: view mode picker, display settings, shortcuts, 2D view, log, templates and Window menu
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
2026-11-19 08:15:57 +01:00
vangel76 222343ae8f Export textures window: per-set and per-map overrides, more file types, progress console, output templates layout
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.
2026-11-19 08:07:39 +01:00
Chris Hassebrook d84914ef1e Merge pull request #667 from vangel76/feat/ui-batch-2026-11-18-b
Settings, side panels, camera, bake presets, F4 view swap and Help menu match the reference (combines 6 issues)
2026-11-19 02:00:09 -05:00
chasse20 549e6a3754 Auto: Keep Settings buttons visible on short viewports
Fit the Settings page and navigation above the footer, retaining the 520-point page height cap. Allow horizontal page scrolling when the fixed-width controls exceed the viewport.

Verify both footer buttons at 960×600 and 150% interface scale, and check that the tabs stay in a vertical column.
2026-11-19 06:27:15 +00:00
chasse20 c344ddc2e3 Auto: Integrate main and preserve pending Settings edits
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.
2026-11-19 05:37:26 +00:00
chasse20 4eaf38e385 Auto: Preserve pending Settings edits during control updates
Reconcile the open draft against the previous and new live preferences so unrelated edits survive and external changes to the same field take precedence. Cover Settings confirmation, default resets, and invalid requests with regression tests.
2026-11-19 05:18:55 +00:00
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
chasse20 ee90c394e4 Auto: Fix bake patches, camera state, and dialog interactions
Preserve accepted bake preset values during unrelated patches. Restore free-camera roll and recognize equivalent yaw after a full turn.

Refresh open Settings preferences after control updates and reschedule changed autosave intervals. Preserve FOV edits through glides, commit camera renames before row indices shift, and keep the export footer visible while scrolling texture sets.
2026-11-19 02:39:41 +00:00
chasse20 4ff9cab867 Auto: Integrate main and fix UI state, bake reporting, and export plans
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.
2026-11-19 01:47:14 +00: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
vangel76 914799e462 Merge main into the UI batch
# Conflicts:
#	crates/ui-egui/src/state.rs
#	crates/ui-egui/src/windows.rs
#	crates/ui-egui/tests/it/file_dialogs.rs
2026-11-18 23:45:39 +01: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
vangel76 ff647b38c3 UI parity batch: settings window, side panels, camera, bake presets, F4 view swap, Help menu
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.
2026-11-18 21:40:53 +01: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