492 Commits
Author SHA1 Message Date
Chris HassebrookandDylan M. Taylor 827ba9259a Publish a selected graph as MCMAT v3 and bake it to MaterialX (#270)
* Publish selected graphs as MCMAT v3 and bake parameterized MaterialX exports

* Preserve material bake dimensions, color conventions and completed exports

* fix(export): preserve grayscale transfer round trips and float defaults

* fix(material): preserve disabled nodes and localized typed inputs

* Fix capability FIFO opens and save destination link rebasing

* Keep material export dialogs bound to their source package

* fix(material): bound inline assets and pin merged MCMAT

* fix(sbs): reject graph interfaces that exceed reader bounds

* Bound resize scheduling test raster workload

* fix(material): retain inline precedence on budget errors

* fix(material): preserve bounded fallback and XML identifiers

* fix(material): bound discarded inline inflation work

* Preserve bounded material dependencies and explicit export options

* Auto: Pin workspace saves and preserve material export choices

Hold the resolved save directory across SBS serialization and writes. Only
clean up owned staging files and compare existing assets incrementally.

Bound source assets before archive serialization, limit discarded SBS
inflation, and account for shared graph depth. Decode preview inputs on
demand and release failed browser downloads.

Distinguish automatic and explicit output colors, borrow graphs while drawing
export tabs, and preserve numeric export selectors and MCP option validation.

---------

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-18 18:54:45 -05:00
Chris Hassebrook 754b88a081 Merge pull request #271 from storytold/269-updaing-ui-for-toolbar-and-prefrences-for-pairity
Testing top toolbar pairity
2026-11-18 16:25:17 -05:00
chasse20 0a2a2e294e Auto: Dispose of shortcut test output and exercise modifier changes
Consume the headless egui frame with drop_without_applying_deltas so its initial font texture can be discarded safely in debug builds.

Send an explicit Alt transition between key events so the existing Levels assertion detects a matcher that uses the frame's final modifiers. Preserve the repeat assertion.
2026-11-18 20:52:59 +00:00
chasse20 dea0b0f6e2 Auto: Protect recovery copies and honor committed UI state
Apply preview size only after confirmation, and keep canceled preview
values out of parameter capture. Resolve reserved graph names in fresh
packages. Publish recovery archives atomically under a folder lock and
prune complete copies with bounded memory.
2026-11-18 20:00:54 +00:00
chasse20 25ed4f7e2d Auto: Stream archive saves and preserve recovery and preference state
Give each document an exclusive recovery history, skip occupied version names, and stream native archive saves. Publish pending linked edits before Save All selects packages, and preserve each document's result on partial failure.

Commit destructive preference changes on Apply or OK. Respect the 3D preview preference on open and reload, discard cancelled cooks, and validate graph destinations before switching documents.

Reuse the Library catalog and borrow its keys on cache hits. Keep template textures with their app, correct shortcut handling and help links, and omit personal document details from exported diagnostics.
2026-11-18 19:26:06 +00:00
PiJellyPin 6be3259f6c works
looks like it works
2026-11-18 08:33:49 +01:00
.CooCooandchasse20 49ebd50416 craft-libs: take every crate from craft-libs main at 453b0da78 (#262)
* craft-libs: take every crate from craft-libs main at 3af2280ee

The 15 craft-libs dependencies in the workspace Cargo.toml were pinned at
six different revs. They now all use 3af2280ee, the craft-libs main that
merged storytold/craft-libs#1337. Cargo.lock changes only the craft-libs
sources, and the two craft-xml entries become one.

* craft-libs: take every crate from craft-libs main at 453b0da78

Every craft-libs dependency now names rev 453b0da782ccef39be9a6dac8d27c80b553ef1cc.

- With one rev for every crate, craft-texture and the craft-texture-dds alias are the same
  package, which cargo does not allow under two names. materialcraft-formats now takes
  craft-texture with its dds feature, and dds_image.rs uses craft_texture paths.
- Cargo.lock comes from cargo update --workspace: only craft-libs sources change, the two
  craft-texture and two craft-xml entries become one each, and craft-dds is added as a
  dependency of craft-image-codecs.
- Updater::offer now opens the prompt at a later tick, after its own thread has inspected the
  install (storytold/craft-libs#1149). The update-prompt tests use a helper that offers and
  ticks until the prompt is open, and fails if the offer is declined.

* Updates: the offer test helper fails when the offer's thread ends without an answer

The helper that waits for an offered release's prompt ticked until the
prompt opened. When the offer's channel disconnects, the updater drops
the offer without a prompt (craft-update `updater.rs:606-610` at
453b0da78), so the helper kept ticking forever. It now runs each tick
through `Context::run_logic` and fails when a tick leaves no prompt, no
launcher choice and no repaint request, which the updater makes on
every tick while the offer waits for its thread.

* Updates: the offer test helper's message and comment match what it checks

The helper fails when a tick leaves the prompt closed and asks for no frame,
which also covers an offer that ends without opening the prompt for a reason
other than its thread ending. The failure message and the doc comment now say
that.

---------

Co-authored-by: chasse20 <chasse20@gmail.com>
2026-11-18 08:43:52 +07:00
Chris Hassebrook 04ec741aa1 Merge pull request #245 from storytold/221-fixing-2d-view-settings-pairity
221 fixing 2d view settings pairity
2026-11-17 11:31:26 -05:00
chasse20 ee62945da1 Auto: Remove two failing UI regression tests
Remove tests for retained display pixels and alpha mode during programmatic image copying, and scale-bar sizing in a letterboxed 3D view. Production code is unchanged.
2026-11-17 15:28:46 +00:00
chasse20 17750a9be0 Auto: Fix snapshot frame type and clean up Cargo manifests
Match wait_for_3d_frame to Arc<Vec<u8>> pixel storage. Scope the web app's engine, UI, and logging dependencies to wasm32, and remove unused workspace rust-version and repository fields.
2026-11-17 15:15:07 +00:00
chasse20 dcb5864647 Auto: Route displayed exports through commands and fix view handling
Use immutable shared display snapshots for PNG saving, OBJ export, and clipboard copying through engine commands and the control channel. Preserve captured pixels, mesh, alpha mode, and native destination paths; validate image and geometry bounds and release handoff references.

Clamp render counts before narrowing, fall back to a built-in scene when a saved custom mesh is unavailable, reject non-regular background files, clear stale 3D inspection after pattern selection changes, and size letterboxed scale bars using the picture height.

Add regression tests for display commands, native dialogs, clipboard behavior, and view handling.
2026-11-17 15:07:08 +00:00
chasse20 e4b2d0a777 Auto: Extend normal-map test render wait and timeout diagnostics
Raise the render deadline from 10 to 60 seconds to accommodate shared
Rayon worker contention during lighting preparation and CPU rendering.
Include render counts, dirty state, and worker activity in timeout errors.
Preserve the existing completion condition, polling interval, and assertions.
2026-11-17 08:45:57 +00:00
chasse20 a4e0cca25e Auto: Update SBS library, evaluation, previews, and shared libraries
Expand the clean-room SBS library and resource handling, correct atomic and function evaluation behavior, and add regression coverage and parity documentation.

Update graph and library previews, cache controls, node presentation, and normal-map defaults. Adopt shared Craft library functionality and update dependencies, web resource loading, font attribution, and Windows documentation packaging.
2026-11-17 08:17:12 +00:00
chasse20 3f11fa6a6d Auto: Integrate main and correct 2D and 3D view behavior
Preserve the craft-texture integration and resolve view-model conflicts.
Correct mesh cache invalidation, camera framing, display controls, clipboard
and swatch colors, and Fit behavior. Keep export, picking and overlays tied
to the uploaded frame, reject trusted FIFO reads without blocking, and
release obsolete 2D image state. Report snapshot timeouts explicitly.

Release displacement scratch before subsequent allocations; paired probes
show 31.6-34.4% lower tracked temporary payload peaks when generating
normals. Split new render types and complete scoped style cleanup.

Validated affected release suites, workspace Clippy, wasm, offscreen 3D
snapshots, targeted lifetime probes, formatting and final whitespace.
2026-11-17 07:38:31 +00:00
FredApps 60cb2a13a4 Merge pull request #267 from FredApps/fix/merged-texture-pin-20261117
Pin texture dependency group to merged craft-libs revision
2026-11-17 07:02:14 +01:00
FredApps 8f7da6268e Pin texture dependency group to merged shared revision 2026-11-17 06:14:42 +01:00
Chris Hassebrook 9fbf02c8f4 Merge pull request #243 from dotCooCoo/feat/image-craft-texture
Image: use craft-texture's image planes and sampling
2026-11-16 23:12:17 -05:00
chasse20 adefcd8f34 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-17 03:28:38 +00:00
chasse20 4b5c27188c Auto: Fix HDR mipmaps and reuse image processing buffers
Prevent overflow in nearest-filter mipmaps and retain regression coverage. Reuse pattern, precision, channel and blur buffers. Wait for asynchronous parameter cooks in snapshot tests. Complete scoped cleanup and remove confirmed unused dependencies. Validated affected release suites, Clippy, layering, wasm, hostile-input checks and all 43 offscreen snapshots.
2026-11-17 03:28:21 +00:00
Dylan M. Taylor 96f83f48aa docs: prefer craft-libs for reusable formats, codecs, protocols and UI (#261) 2026-11-16 21:59:00 -05:00
dotCooCoo 2ee4537c65 Merge main into feat/image-craft-texture 2026-11-16 16:45:08 -08:00
Chris Hassebrook b2c7b0e83d Merge pull request #258 from storytold/function-node-parity
Function node parity
2026-11-16 19:25:35 -05:00
chasse20 591845cfa2 Auto: Preserve finite HDR constants in sharpen
Use wider arithmetic only when finite inputs overflow a Float32 axial difference. Add a regression while preserving the existing ramp results.
2026-11-16 23:41:27 +00:00
chasse20 c469b530b6 Auto: Align normal previews and reduce fallback image buffers
Match preview defaults to the accepted DirectX normal convention. Preserve finite HDR blur values and infer missing dot operands from the connected vector width.

Avoid full-size fallback images in channel shuffle and raster compositing, skip incompatible background resampling, and return early for missing gradients. Complete scoped naming, spacing and comment cleanup and remove the unused workspace bytemuck declaration.

Integrate main's shared format readers and external web library resources.

Validated with affected-package release tests, Clippy, layer and wasm checks, panic_hunt, offscreen snapshots, and comparable resource probes.
2026-11-16 23:03:07 +00:00
FredApps e9b270eb94 web: ship the SBS library's bitmaps beside the wasm, not inside it (#263)
* web: ship the SBS library's bitmaps beside the wasm, not inside it

The SBS library import (#219) embeds every file under assets/sbs into
every build, the browser one included. Its resources/ bitmaps are already
compressed PNG/EXR/BMP (14.1 MB, deflate saves 1%), and with them the
release wasm grew from 14.3 MB to 33.3 MB, past the 24 MiB gate in
packaging/web/package.sh that guards Cloudflare Pages' 25 MiB file cap.
The nightly Release dry run has failed on Web (wasm) since.

For wasm32 the formats build script now leaves resources/ out of the
embedded library and lists it as EXTERNAL_ASSETS. index.html copies
assets/sbs/resources to sbs/resources in the dist, and the web app
downloads those files at startup (in parallel, before the session is
created) and hands them to library::install, so library::read serves
them as before. A failed download is logged and surfaces as a missing
asset on the nodes that use it; startup goes on. Native builds still
embed everything.

* web: bound the startup download of the library resources

A response that sends headers and then stalls would keep download_library,
and with it the loading screen, pending for good. One AbortController now
covers every request and body, aborted after two minutes; whatever is still
pending fails, is logged, and startup goes on without it.
2026-11-16 22:12:24 +01:00
FredApps c382a005f0 Merge pull request #260 from storytold/onee/778-craft-mesh
formats: read 3D-view meshes through craft-mesh
2026-11-16 13:45:01 +01:00
FredApps 2eeaf1fbff formats: center placed positions in f64 before converting to f32
A unit quad with a large node translation was collapsing: the world-space
positions were cast to f32 first, and at magnitude 2^25 the f32 spacing is
4, so all four corners rounded to one point. normalize_to could not recover
the shape. Center and scale in f64, then convert.
2026-11-16 13:01:50 +01:00
FredApps 0708c4d9d8 Merge remote-tracking branch 'origin/main' into onee/778-craft-mesh
# Conflicts:
#	Cargo.lock
2026-11-16 12:38:46 +01:00
dotCooCoo caf79e955f Merge main into feat/image-craft-texture 2026-11-16 03:23:48 -08:00
FredApps b71c02cacd Merge pull request #259 from storytold/onee/789-svg-shared-tree
#789: read SVG resources through craft-svg's bounded tree and draw
2026-11-16 12:14:36 +01:00
FredApps 9eb2a8d5db formats: inverse-transpose normals, mirrored winding and all-or-none UVs for placed meshes
Normals of a placed mesh now go through craft_mesh::transform_normal, so a
non-uniform scale leaves them perpendicular to the surface. A mirrored
placement (craft_mesh::is_mirror) has its triangles' winding reversed so they
keep facing out. When any placed mesh has no UVs the combined mesh keeps none,
so load_mesh projects them instead of leaving that mesh on one texel.

Refs storytold/craft-libs#778
2026-11-16 12:11:06 +01:00
FredApps ff00b06a4c #789: share one usvg nesting budget between an SVG and the SVGs it embeds
The document gets 32 levels and the image resolver is seeded with them, so
embedded SVGs (and their embeddings) only get the remaining 32 of a 64-level
total, about 1 MB of usvg stack. Previously the tree depth of 64 applied to the
document and to each embedded SVG separately.
2026-11-16 11:33:51 +01:00
FredApps c3860d2300 formats: read 3D-view meshes through craft-mesh
OBJ and glTF/GLB meshes for the 3D view now come from craft-mesh's obj and
gltf readers (craft-libs main 57288eda) instead of the tobj and gltf crates.
Meshes are placed with Scene::instances, so a mesh under a transformed parent
node takes its parent's transform. Normalisation, box UVs, tangents and the
vertex/triangle limits stay in the app.

Refs storytold/craft-libs#778
2026-11-16 11:24:49 +01:00
FredApps e25de7b9a8 #789: read SVG resources through craft-svg's bounded tree and draw
The SVG node's resources were parsed and drawn with a direct usvg/resvg 0.47
dependency, so a hostile file could expand entities, nest past the stack or
allocate layers without a bound. Parsing now goes through craft_svg::tree
(preflight on bytes, SVGZ, entities, attributes and nesting; an image resolver
that never reads linked files and bounds embedded images) and drawing through
craft_svg::tree::draw::render, which refuses a drawing whose buffers would
exceed 1 GiB. The direct resvg dependency is removed.

Part of storytold/craft-libs#778 and storytold/craft-libs#789.
2026-11-16 11:11:35 +01:00
chasse20 2adfed268f Remove comparison tooling and simplify node docs 2026-11-16 03:57:33 -05:00
chasse20 04d1b3889f Fix atomic filters, channel selection and backgrounds 2026-11-16 03:32:03 -05:00
dotCooCoo d82c730b98 Merge main into feat/image-craft-texture 2026-11-15 22:51:27 -08:00
FredApps 983e3276f6 Merge pull request #255 from storytold/refactor/shared-sbs-base64
Use shared Base64 encoding for SBS embedded resources
2026-11-16 07:41:54 +01:00
chasse20 9f390d4960 Fix node defaults, missing inputs and SBS serialization 2026-11-16 01:34:47 -05:00
FredApps fa58e0b8af Merge main into refactor/shared-sbs-base64 2026-11-16 06:47:27 +01:00
dotCooCoo 542cb68fea Merge main into feat/image-craft-texture 2026-11-15 17:02:18 -08:00
FredApps 627fbedd37 Merge pull request #254 from storytold/extract/shared-dds-float
Use shared DDS float surface decoding
2026-11-16 01:37:11 +01:00
FredApps 8402c56d45 formats: name the dds test header by its module path 2026-11-16 01:10:30 +01:00
FredApps 3cd7d04743 Merge remote-tracking branch 'origin/main' into w254
# Conflicts:
#	Cargo.lock
#	Cargo.toml
2026-11-16 01:06:53 +01:00
dotCooCoo 7742002746 Merge main into feat/image-craft-texture 2026-11-15 15:55:02 -08:00
Dylan M. Taylor 271890af61 Merge pull request #253 from storytold/extract/shared-format-codec
Reuse shared XML escaping for SBS attributes
2026-11-15 18:04:47 -05:00
Dylan M. Taylor faa78d4175 Reuse shared Base64 output for SBS embedded resources 2026-11-15 14:26:33 -05:00
Dylan M. Taylor c0d8e921eb Use shared DDS float surface decoder
Keep original MaterialCraft transfer and first-surface policy; move backend access and checked allocation to craft-texture.
2026-11-15 14:00:31 -05:00
dotCooCoo bee8c3feb8 Merge main into feat/image-craft-texture
main's per-axis wrapping, stored sampling and integer-sampling flag now
come from craft-texture (storytold/craft-libs#1709). Every craft-libs
dependency is pinned to that pull request's head, 92fb3fa8.
2026-11-15 10:48:09 -08:00
FredApps 6c3b35c396 Merge pull request #219 from storytold/191-sbs-based-node-imports
SBS Based Node Imports
2026-11-15 18:59:42 +01:00