100 Commits
Author SHA1 Message Date
Dylan M. Taylor fe8ee1bdb0 fix(formats): raise Alembic nesting depth limit from 64 to 256 (#728)
* fix(formats): raise Alembic nesting depth limit from 64 to 256

* test(formats): avoid unwrap_err on RawMesh in abc depth test

* test(formats): assert depth error message in abc nesting test
2026-11-21 02:59:27 -05:00
Dylan M. Taylor c2632339f8 perf(formats): remove remaining O(N^2) lookups in glTF import and mesh geometry (#720) 2026-11-20 21:08:20 -05:00
Dylan M. Taylor 89252a0ebe fix(export): enforce batch-atomic OBJ/GLB/raster publication and parity tests (#722)
* fix(export): enforce batch-atomic OBJ/GLB/raster publication and parity tests

* style(mcmat): use as_chunks::<2> in test

* test(mesh_export): use valid non-black PNG in MTL slot link test

* fix(formats): reserve batch targets and roll back partial renames in write_batch_atomic

* fix(formats): preserve target during backup and report incomplete rollback

* fix(formats): address FredApps & CodeRabbit review on write_batch_atomic

* fix(formats): harden batch rollback, backup mode, and special-file guards

* fix(formats): validate regular file handle in rollback ownership check
2026-11-20 20:12:30 -05:00
Dylan M. Taylor a64cbdb48e test(formats): prove USDA/USDC parity, limits, warnings, and USDZ round trips (#778) (#721)
* test(formats): prove USDA/USDC parity, limits, warnings, and USDZ round trips (#778)

* test(formats): exercise MAX_PRIM_VISITS in usd_decoded_limits test
2026-11-20 18:35:42 -05:00
Dylan M. Taylor b2775bfa48 test(formats): fix XML selector in dae_preserves_multiple_cameras_on_one_node (#716)
* test(formats): fix XML selector in dae_preserves_multiple_cameras_on_one_node

* test(formats): assert multi-camera count and projections without name coupling
2026-11-20 16:05:44 -05:00
Dylan M. Taylor cf37994744 fix(formats): preserve multiple COLLADA node cameras and optimize glTF material lookup (#715)
* fix(formats): preserve multiple COLLADA node cameras and avoid O(N) glTF material lookup

* perf(formats): index high-poly base colors by material name
2026-11-20 14:31:52 -05:00
Dylan M. Taylor 2bbd2625bf Merge pull request #714 from FredApps/fix/778-collada-material-names
fix(formats): preserve empty COLLADA material bindings
2026-11-20 14:20:03 -05:00
Dylan M. Taylor 9be964a00e fix(formats): align glTF, COLLADA, and Alembic import limits and material/error parity (#711) 2026-11-20 13:19:08 -05:00
Dylan M. Taylor 52ba5338dc test(engine): disambiguate parallel materialx test temp dirs (#699) 2026-11-19 21:46:01 -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
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
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
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
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
Dylan M. Taylor deaac7df55 fix(geom): avoid unnecessary tangent face allocation 2026-11-18 13:55:52 -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
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
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
Dylan M. Taylor d7739b0645 Use shared strict glTF URI percent decoding 2026-11-18 01:59:37 -05: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
Dylan M. Taylor 5d201d6c02 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/engine/src/link_cmds.rs
2026-11-17 08:11:53 -05:00
Dylan M. Taylor bee2791eb9 chore(usdz): pin aligned ZIP writer to merged revision 2026-11-17 07:45:44 -05:00
Dylan M. Taylor 9c1b9cbc7b Merge pull request #542 from vangel76/fix/bent-normal-tangent-538
Bent normal maps bake in tangent space, so materials and imported maps read them correctly
2026-11-17 07:19:04 -05:00
Dylan M. Taylor 2cf9947963 Merge pull request #537 from vangel76/fix/curvature-edge-wear-515
Curvature and edge wear stay even on rounded surfaces at every bake size
2026-11-17 07:18:01 -05:00
Dylan M. Taylorandbflatastic 9d7077601b Use shared aligned stored ZIP entries for USDZ export
Co-authored-by: bflatastic <[email protected]>
2026-11-16 23:26:09 -05:00
Dylan M. Taylor 1e9194d9a6 ci: let Dependabot maintain GitHub Actions dependencies (#448) 2026-11-16 21:59:54 -05:00
Dylan M. Taylor fef301cf58 Merge pull request #336 from Silvertree2010/fix/h8573-collada-import-keeps-xml-entitie
Decode XML entities in COLLADA attribute values and text
2026-11-16 21:23:33 -05:00
Dylan M. Taylor 7ff482a33c Merge pull request #339 from Silvertree2010/fix/h8871-hex-colour-parser-accepts-signs
Reject signs and extra digits in hex colour strings
2026-11-16 19:39:09 -05:00
Dylan M. Taylor 3fd646d9e5 test(engine): preserve shared SBS imports under decode budget
Reuse the existing per-resource cap and clarify that the aggregate bound is memory policy rather than a count of supported channels.
2026-11-16 19:23:48 -05:00
Dylan M. Taylor 5913ee3584 docs: prefer shared Craft libraries for reusable code 2026-11-16 06:27:28 -05:00
Dylan M. Taylor 1683a2c63c Pin shared ICC writer to merged prerequisite 2026-11-15 17:03:57 -05:00
Dylan M. Taylorandbflatastic 8a1baa35ac Use bounded shared USD integer delta encoding
Preserve packed wire values and propagate bounded scratch/output allocation failures through USD export.

Co-authored-by: bflatastic <[email protected]>
2026-11-15 15:35:21 -05:00
Dylan M. Taylor 8baac1d5d2 Merge pull request #519 from storytold/codex/tcraft-payload-cutover
Use shared streaming project tile payloads
2026-11-15 15:20:56 -05:00
Dylan M. Taylorandbflatastic 939b12bfd0 Use fallible shared USD Crate LZ4 writing
Propagate compression errors through USD writer values, sections and finish. Bound worst-case output reservation by the existing 2GiB app ceiling; preserve normal wire bytes and scene policy.

Co-authored-by: bflatastic <[email protected]>
2026-11-15 15:18:23 -05:00
Dylan M. Taylorandbflatastic 8003210b64 Use shared bounded USD integer delta decoding
Keep the existing aggregate decoded byte budget, integer writer and scene mapping. Depends on craft-libs #1742 and TextureCraft #531.

Co-authored-by: bflatastic <[email protected]>
2026-11-15 15:10:14 -05:00
Dylan M. Taylorandbflatastic 646fa2e454 Use shared USD Crate LZ4 decompression
Preserve TextureCraft scene/material policy, integer packing and writing; replace only bounded LZ4 framing reads. Depends on craft-libs #1738.

Co-authored-by: bflatastic <[email protected]>
2026-11-15 14:50:57 -05:00
7f40386c97 Reuse shared PLY body decoding without changing strict import policy
Keep the app header grammar, geometry and colour interpretation while replacing the local scalar and endian reader with craft-mesh Rows.

Co-authored-by: bflatastic <[email protected]>
Co-authored-by: NetterSilver <[email protected]>
2026-11-15 14:38:33 -05:00
ecf313f325 Use shared ICC v2 profile serialization for texture exports
Retain SteamSmith original writer as a test-only wire oracle, including bflatastic is_multiple_of cleanup. Colour adaptation, sampling, names and fixed timestamp remain local policy.

Co-authored-by: SteamSmith <[email protected]>

Co-authored-by: bflatastic <[email protected]>
2026-11-15 14:29:05 -05:00
Dylan M. Taylor e664e65d94 Use shared OBJ reader 2026-11-15 19:16:46 +00:00
Dylan M. Taylor b81a54228f Preserve FBX placement and polygon order 2026-11-15 19:10:16 +00:00
Dylan M. Taylor da1e2df96d Keep root FBX model names 2026-11-15 19:02:01 +00:00
Dylan M. Taylor 12168ad475 Bound FBX root traversal allocation 2026-11-15 19:01:25 +00:00
Dylan M. Taylor 59a7c022a1 Bound FBX hierarchy traversal memory 2026-11-15 19:01:11 +00:00
Dylan M. Taylor e2ff5144cd Bound FBX color seam staging 2026-11-15 18:58:03 +00:00
Dylan M. Taylor e6c149cbd6 Simplify shared FBX camera selection 2026-11-15 18:56:07 +00:00
Dylan M. Taylor 9fa832274a Adopt FBX integration lint fixes 2026-11-15 18:55:20 +00:00
Dylan M. Taylor b6115309aa Preserve FBX object connection handling 2026-11-15 18:51:13 +00:00
Dylan M. Taylor 48885c910f Ignore unused cyclic FBX models 2026-11-15 18:49:20 +00:00
Dylan M. Taylor 4b0621384e Bound shared binary FBX allocations 2026-11-15 18:48:50 +00:00
Dylan M. Taylor fa817f8592 Preserve FBX material slot behavior 2026-11-15 18:46:16 +00:00
Dylan M. Taylor f22c9d31a5 Preserve FBX parent connection precedence 2026-11-15 18:44:07 +00:00
Dylan M. Taylor cf85d478a2 Keep FBX cameras in file order 2026-11-15 18:42:20 +00:00
Dylan M. Taylor 5a70a033cc Use strict shared FBX record parsing 2026-11-15 18:41:48 +00:00
Dylan M. Taylor 8d593fdebe Keep FBX UV layers with missing corners 2026-11-15 18:39:42 +00:00
Dylan M. Taylor a5fb695381 Preserve strict FBX geometry behavior 2026-11-15 18:38:53 +00:00
Dylan M. Taylor 6e8d421260 Use shared FBX scene and package readers 2026-11-15 18:34:52 +00:00
Dylan M. Taylor 0e61cb2ee5 Merge branch 'main' of https://github.com/storytold/texturecraft into codex/tcraft-payload-cutover
# Conflicts:
#	Cargo.lock
#	Cargo.toml
2026-11-15 18:18:13 +00:00
Dylan M. Taylor 1f65d4ca4c Merge pull request #522 from storytold/codex/zip-guard-pin
Adopt shared ZIP64 entry-count guard fix
2026-11-15 12:09:28 -05:00
Dylan M. Taylor e1d4f99da1 Pin shared project codecs to merged craft-libs 2026-11-15 16:48:44 +00:00
Dylan M. Taylor b1cdd04487 Adopt shared ZIP64 entry-count guard fix 2026-11-15 15:47:19 +00:00
Dylan M. Taylor 97ace7050b Merge remote-tracking branch 'origin/main' into codex/tcraft-payload-cutover
# Conflicts:
#	Cargo.lock
#	crates/formats/Cargo.toml
2026-11-15 14:03:06 +00:00
Dylan M. Taylor 1a2425ded0 Merge pull request #516 from storytold/codex/shared-mcmat-consumer
Share portable materials and preserve SBS links
2026-11-15 08:57:10 -05:00
Dylan M. Taylor 0e218bd23e Use shared seekable ZIP archive checks 2026-11-15 13:51:20 +00:00
Dylan M. Taylor 6028051a40 Update shared project schema pin 2026-11-15 13:44:48 +00:00
Dylan M. Taylor 267eff5c1e Pin merged shared material format 2026-11-15 13:08:27 +00:00
Dylan M. Taylor 4864fbbc78 Test shared schema against native project documents 2026-11-15 13:01:22 +00:00
Dylan M. Taylor b02a3ab44a Exercise linked material cooks under coverage 2026-11-15 12:56:36 +00:00
Dylan M. Taylor 1d0f9665f9 Use shared project version parser 2026-11-15 12:46:12 +00:00
Dylan M. Taylor f40dc84f72 Use shared streaming project tile payloads 2026-11-15 12:28:11 +00:00
Dylan M. Taylor dfd755e87d Merge remote-tracking branch 'origin/main' into codex/shared-mcmat-consumer
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/formats/Cargo.toml
2026-11-15 11:45:36 +00:00
Dylan M. Taylor 0d90953467 Share portable materials and preserve SBS links 2026-11-15 11:44:04 +00:00
Dylan M. Taylor c3f6b6f87b Merge pull request #488 from storytold/codex/778-stl-cutover
Move TextureCraft STL and MaterialX parsing to craft-libs (#778)
2026-11-15 06:42:18 -05:00
Dylan M. Taylor 32380b0dc5 Preserve MaterialX displacement tiling 2026-11-15 11:05:14 +00:00
Dylan M. Taylor ff09793577 Merge pull request #513 from storytold/codex/texturecraft-coverage-preview
Allow instrumented high-DPI preview to settle
2026-11-15 05:58:30 -05:00
Dylan M. Taylor 5d698625af Merge remote-tracking branch 'refs/remotes/origin/codex/texturecraft-coverage-preview' into HEAD 2026-11-15 10:24:36 +00:00
Dylan M. Taylor d7e534a657 Recognize explicit coverage compiler flags 2026-11-15 10:24:24 +00:00
Dylan M. Taylor 5f008e7272 Preserve TextureCraft STL vertex limits 2026-11-15 10:21:25 +00:00
Dylan M. Taylor c50032e8b2 Merge remote-tracking branch 'refs/remotes/origin/codex/texturecraft-coverage-preview' into HEAD 2026-11-15 10:00:59 +00:00
Dylan M. Taylor e897991533 test: allow instrumented high-DPI preview to settle 2026-11-15 09:59:44 +00:00
Dylan M. Taylor 75a3af1b62 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-15 09:57:40 +00:00
Dylan M. Taylor 75502053db formats: stop copying whole OBJ and glTF inputs before parsing (#503)
* formats: stop copying whole OBJ and glTF inputs before parsing

* formats: format the mesh-import copy changes
2026-11-15 04:18:22 -05:00
Dylan M. Taylor 9ed81da8cb formats: account for the USDC path table's real allocation (#507)
The PATHS table charged 64 bytes per entry but allocates Option<PathEl> (about 80), letting a small declared count exceed the decoded-byte budget, and had no entry ceiling. Charge the real element size and cap the table at four million paths.
2026-11-14 17:28:04 -05:00
Dylan M. Taylor 0fa3a392fd formats: create atomic-write temps exclusively so a planted symlink is never followed (#502) 2026-11-14 17:23:06 -05:00
Dylan M. Taylor 73083d418a formats: cap default resource image decode at 64 M texels (#506)
Imported images still used the 16384-pixel edge limit with no texel ceiling, so a small 16k square PNG expanded to multi-gigabyte RGBA f32 buffers. Default resource decoding now refuses more than 8192 square texels from the header, and the engine import path uses the same budget.
2026-11-14 17:02:27 -05:00
Dylan M. Taylor b89badcd6f Budget the total payload of one .mcmat (#499)
* formats: budget the total payload of one .mcmat

* formats: format the .mcmat map-limit test
2026-11-14 15:42:13 -05:00
Dylan M. Taylor 1bf3707aec Cover interleaved STL color part order 2026-11-13 06:41:49 +00:00
Dylan M. Taylor bf25c1c536 Move TextureCraft STL parsing to craft-mesh 2026-11-13 06:33:26 +00:00
Dylan M. Taylor 4fd1b33c3c Use shared MaterialX parser and writer 2026-11-13 05:53:14 +00:00
Dylan M. Taylor 55015a7631 Fix Flatpak updates and bump to 0.6.1 (#426)
* fix(flatpak): allow release checks and self-update helpers

* test: keep Flatpak permission parsing within strict Clippy rules

* chore: bump version to 0.6.1 for the Flatpak update fix

* fix(flatpak): honor the launcher version choices
2026-11-11 18:38:56 -05:00
Dylan M. Taylor 5303e98398 Merge pull request #424 from storytold/chore/craft-update-6e03f65
Updates: take craft-update from craft-libs main at 6e03f65bf
2026-11-11 12:45:16 -05:00
Dylan M. Taylor 5b997827bf Updates: take craft-update from craft-libs main at 6e03f65bf 2026-11-11 12:45:10 -05:00
Dylan M. Taylor 21b3046648 packaging: use [[ for bash tests (SonarCloud S7688) (#403)
* packaging: use [[ for bash tests (SonarCloud S7688)

Behaviour-preserving: `[[ ]]` in place of `[ ]` for bash tests (SonarCloud shell:S7688). Every script has a bash shebang; no test uses `-a`/`-o`, escaped parentheses or an unquoted pattern on the right of `=`. `bash -n` passes on each script; the rest is left to CI.

Clears all 70 open issues: `packaging/{linux,macos,freebsd,web}/*.sh`.

* packaging/web: parse the wasm size override as base 10 under [[

Inside [[ ]], -gt evaluates its operands arithmetically: a leading zero reads as octal and other text as an expression. Read the override as a base-10 number, as photocraft does.
2026-11-10 18:58:27 -05:00
Dylan M. Taylor f5e41e759f docs: add SonarCloud badge to README (#371) 2026-11-09 10:09:43 -05:00
Dylan M. Taylor b09d51fd7e Merge pull request #367 from dotCooCoo/feat/self-updater
Updates: Help > Check for Updates and a check at start
2026-11-09 00:00:59 -05:00
Dylan M. Taylor a09297feb9 Pass the Linux signing key to the release workflow (#242) 2026-11-04 17:45:29 -05:00