Commit Graph
74 Commits
Author SHA1 Message Date
aiongg 09529001b0 Repin craft-libs to storytold next aa401985d 2026-11-25 15:51:45 +00:00
aiongg bfa1042c2d Repin craft-libs to craft-libs#3505 head d1bdf8e5da (storytold) 2026-11-25 13:43:14 +00:00
aiongg ab78435d5f Repin craft-libs to storytold next 980669cdce and egui to storytold b15ffe9bfc 2026-11-25 13:42:11 +00:00
aiongg 522d17adf9 Merge storytold main into minimal-port-next; repin craft-libs to 2f8d73e7cf 2026-11-24 16:05:46 +00:00
aiongg e59c49a7c5 Repin craft-libs to cd87dc61f7; pass the app icon to the host
- Every aiongg/craft-libs dependency moves to cd87dc61f7 (QuitCommand::Quit and HostBuilder::icon_png).
- The host carries MaterialCraft's 128 px app icon, which the update dialogs show.
- MaterialCraft keeps its own ui.quit (File > Exit, Ctrl+Q), so the framework's window.quit is unbound in the command overrides.
2026-11-24 03:37:20 +00:00
aiongg 768dc94613 Repin craft-libs to 5d9f4b62cb; pass FrameInput::app_modal for MaterialCraft's own modals and restore the floating-panels test on it 2026-11-24 02:25:19 +00:00
aiongg 2afa397987 Host MaterialCraft's egui UI on craft-libs next's runtime
The runtime is installed in the desktop and web shells and fed each frame;
the unsaved-work question decides in the framework's close path. Panels dock
in next's DockArea beside the saved workspace (file format unchanged), with
the graph as the canvas group. The update dialogs run on a DialogHost. Where
the app draws the window frame, the menu bar sits in the framework's title
bar. Escape no app widget takes arrives as the window's cancel and still runs
the Escape shortcuts. Shortcuts match through craft_keymap::Matcher with the
old dispatcher's contract. Removed framework helpers (widget palette, icon
button painter, interface direction) are app-local or come from craft-i18n.
Test harnesses that draw the app install the runtime.
2026-11-24 01:18:57 +00:00
aiongg 9583d9238a minimal-port rewrite: 14 edits (split rename 6, dock 2, deps 2, dock rename 1, split 1, keymap 1, keymap rename 1) 2026-11-24 00:54:30 +00:00
aiongg 58b758f247 minimal-port repin: 38 edits (revs 30, features 8) 2026-11-24 00:54:20 +00:00
Terra854 01a6704dc6 ui-egui: share the preview-cache PNG writer 2026-11-24 00:33:39 +08:00
Dylan M. Taylor 1f45b28a16 formats: pin craft-texture to craft-libs main and test DDS edge cases (#285)
* formats: pin craft-texture to craft-libs main and test DDS edge cases (#778)

* test(formats): pass byte slice to dds::ImageView::new for RGBA_F32

* test(formats): assert SNORM8->[0,1] mapping in DDS test
2026-11-20 02:31:10 -05:00
Dylan M. Taylor f5ab7bb1d8 formats: share SBS package/schema read/write via craft-sbs (#284)
* formats: share SBS package/schema read/write via craft-sbs

* chore: update craft-sbs pin and fix example ParsingOptions

* formats: remove unused SBS constant re-exports

* formats: remove unused parse_ints re-export

* formats: fix test visibility and manifest dependencies

* chore: repin craft-sbs to storytold/craft-libs main
2026-11-20 01:02:03 -05:00
Dylan M. Taylor 64f175bcc1 Merge pull request #277 from storytold/feat/shared-sbs-mcraft
formats: share SBS package read and .mcraft ZIP envelope
2026-11-19 20:20:05 -05:00
Dylan M. Taylor c5095764b2 chore: repin craft-zip to craft-libs main 2026-11-19 19:55:41 -05:00
Dylan M. Taylor 8105bcf8f0 formats: use shared raster adapters and OBJ writer (#276)
* formats: use shared raster adapters and OBJ writer

* formats: cargo fmt
2026-11-19 14:06:34 -05:00
Dylan M. Taylor 98a95a5f71 formats: use craft-zip for .mcraft ZIP envelope and restore roxmltree for sbs 2026-11-19 13:24:57 -05:00
Dylan M. Taylor 853b267216 formats: share SBS package read and .mcraft ZIP envelope 2026-11-19 12:26:50 -05:00
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
.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
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
FredApps 8f7da6268e Pin texture dependency group to merged shared revision 2026-11-17 06:14:42 +01: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
dotCooCoo 2ee4537c65 Merge main into feat/image-craft-texture 2026-11-16 16:45:08 -08: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 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 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
dotCooCoo d82c730b98 Merge main into feat/image-craft-texture 2026-11-15 22:51:27 -08: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 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
dotCooCoo e6b0429652 Merge main into feat/image-craft-texture 2026-11-15 09:28:48 -08:00
FredApps ed08636c7c Merge main shared material archive integration 2026-11-15 17:27:13 +01:00
Dylan M. Taylor fd0f4bd4c1 Reuse shared XML escaping for SBS attributes 2026-11-15 11:08:29 -05:00
Dylan M. Taylor 3e361b2af5 Adopt shared ZIP64 entry-count guard fix 2026-11-15 15:47:19 +00:00
dotCooCoo 3ef47a1dff Merge main into feat/image-craft-texture 2026-11-15 06:09:37 -08:00
Dylan M. Taylor 5d7dcd8029 Pin merged shared material format 2026-11-15 13:08:27 +00:00
Dylan M. Taylor 01f0c70648 Use bounded portable material detection 2026-11-15 11:39:50 +00:00
Dylan M. Taylor f4e079b49d Use shared portable material archive 2026-11-15 11:36:22 +00:00
dotCooCoo 9744afda83 Image: use craft-texture's image planes and sampling
Replace the local materialcraft-image crate with craft-texture from
storytold/craft-libs (storytold/craft-libs#1216), with its parallel
feature on. engine re-exports it as `engine::image`. Every craft-libs
dependency moves to the same revision, 29fb8f8e.

The image fields are private in craft-texture. Callers read them through
width(), height(), kind() and data(), and decoders, the pixel processor
and the pattern raster build images with Image::from_data, which rejects
an empty size or a buffer of the wrong length with an error.

This changes some pixels at the edges of the float range:
- a repeated sample far from the origin keeps its phase instead of
  stopping at a clamped texel position
- generate_uv spreads its coordinates over the clamped size
- bilinear samples and box downsampling of values near f32::MAX stay
  finite
- linear_to_srgb(NaN) returns NaN instead of -0.055

The box blur's running sum in nodes/src/ops.rs now uses f64 as well,
so a blur of values near f32::MAX no longer overflows.

#225 fixes the generate_uv fault in the local crate; craft-texture
includes that fix.
2026-11-14 15:59:55 -08:00
chasse20 1a7225c8c2 Auto: Reuse SBS parsing and fix stale preview cache failures
Integrate main's read limits and preserve the font, evaluator, converter,
and measured preview repairs. Complete the scoped type, comment, and
spacing cleanup.

Reuse one validated XML document for library layout and graph reads.
Associate cache maintenance completion with its submitted revision so
old failures cannot consume new settings or clear requests.
2026-11-14 22:52:26 +00:00
Chris Hassebrook bb7434478c Matching CI to TextureCraft (#222)
* ci: port TextureCraft verification improvements

* fix: keep CI green on stable Rust
2026-11-14 08:52:48 +01:00
chasse20 e9b777bee2 CPR review #1 2026-11-14 03:45:23 +00:00