Commit Graph
134 Commits
Author SHA1 Message Date
FredApps 87d617b728 Merge main into refactor/shared-usd-integer-write 2026-11-16 08:39:13 +01:00
FredApps 18b3343716 Merge main into refactor/shared-usd-lz4-write 2026-11-16 07:59:30 +01:00
FredApps af78121279 Merge main into refactor/shared-usd-integers 2026-11-16 07:26:28 +01:00
FredApps 55a3dee2ed Merge main into refactor/shared-usd-lz4 2026-11-16 06:47:58 +01:00
FredApps 51281f4e64 Merge pull request #529 from storytold/refactor/shared-icc-v2
Use shared ICC v2 serialization for exported colour profiles
2026-11-16 06:41:33 +01: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 <bombayapirat@gmail.com>
2026-11-15 15:35:21 -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 <bombayapirat@gmail.com>
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 <bombayapirat@gmail.com>
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 <bombayapirat@gmail.com>
2026-11-15 14:50:57 -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 <341182916+SteamSmith@users.noreply.github.com>

Co-authored-by: bflatastic <bflat@storyteller.ai>
2026-11-15 14:29:05 -05: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 0e218bd23e Use shared seekable ZIP archive checks 2026-11-15 13:51:20 +00:00
Dylan M. Taylor 4864fbbc78 Test shared schema against native project documents 2026-11-15 13:01:22 +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 32380b0dc5 Preserve MaterialX displacement tiling 2026-11-15 11:05:14 +00:00
Dylan M. Taylor 5f008e7272 Preserve TextureCraft STL vertex limits 2026-11-15 10:21:25 +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
chasse20 6825aac7e4 Auto: Integrate main and reduce compositor buffer lifetimes
Preserve filter lookahead alongside main image-cache invalidation and input
bounds. Move HeldFields into its own module and finish scoped cleanup.
Charge repeated USD path names before allocating retained strings.
Reuse the blur transpose-back buffer and release scattered texels before
allocating filter temporaries.

Validated compose/engine release tests, Clippy, layering, wasm and formatting.
2026-11-15 07:14:57 +00:00
chasse20 7bfcf3fc27 Auto: Integrate main and reuse decoded material maps
Preserve main's decoder, atomic-save, material-payload, and USDC limits.
Bound material reads by the remaining payload budget and trim retained
buffers. Replace quadratic image-name searches with map lookups, and
cache validated linked-material maps before synchronization so they
are not decoded twice.

Add import/undo/redo and payload-boundary regressions, extract
ImageIdentity, remove the unchecked scratch example, and complete
scoped cleanup. Correct the integrated style guide's product name.

Validated 546 release tests, Clippy, layering, wasm, formatting, and
focused allocation and lifetime probes.
2026-11-15 04:16:43 +00: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
Prajwal Raj 386630ee85 Stop reading Alembic indexed metadata after 255 entries (#464)
* fix(formats): stop reading Alembic indexed metadata after 255 entries (#447)

Objects and properties refer to indexed metadata with one byte, and 0xff already means the metadata is stored inline, so only entries 0 to 254 can ever be used. The reader kept every entry, so a block of zero bytes cost a whole String in memory for each byte of file. It now stops once 255 entries are held.

* test(formats): verify indexed metadata during archive import (#447)
2026-11-13 12:58:42 +01:00
FredAppsandFredApps afc1ee169b Preserve invalid ASCII FBX array values (#469)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-13 12:52:34 +01:00
8e83ac66f1 Cap FBX cameras during import (#450)
Fixes #445

Co-authored-by: GPT-6-Luna <noreply@openai.com>
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-13 12:09:02 +01:00
FredAppsandFredApps fe6ede90be Ignore repeated FBX geometry connections (#468)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-13 11:59:42 +01:00
FredAppsandFredApps 9f4ef44bd8 Decode half-float Alembic properties (#467)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-13 11:41:00 +01:00
Morion TutorialesandFredApps 277bbf3cf1 Import glTF scenes that have no nodes array (#438) (#457)
* Import glTF scenes that have no nodes array (#438)

The gltf crate requires scene.nodes, but the glTF 2.0 schema lists no
required properties for a scene. Blender writes such scenes for scenes with
no exported objects, so a file whose default scene was fine failed with
'missing field nodes'. Treat a missing array as empty before the document is
built.

* Test GLB import with an empty scene

---------

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-13 11:20:01 +01:00
FredAppsandFredApps 73c9f8f705 Bound FBX instance control-point work (#466)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-13 11:13:08 +01: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
FredApps aa99a798a7 test(formats): split malformed scene fixtures for parallel CI (#455) 2026-11-13 00:15:49 +01:00
test-bit-sys 21856d7783 fix(formats): preserve existing OBJ UVs when only some objects lack UVs (#286) (#394)
Previously, if any object in an OBJ mesh lacked texture coordinates, all UVs across all objects were discarded and replaced with a full automatic unwrap.

Skip empty models without indices, preserve existing UVs on textured objects while assigning default UVs to untextured helper/sub-objects, and report a warning without forcing a full mesh unwrap.
2026-11-11 08:57:31 +01:00
chasse20 1c5ff6e5c3 Restore configurable project resource limits 2026-11-11 00:30:36 -05:00
vangel76andClaude Sonnet 5.5 6a6f2fd2ab Merge upstream/main into fix/save-over-load-limit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 22:00:54 +01:00
chasse20 368731f7a4 Fix Clippy checks and clean up affected functions 2026-11-10 05:33:20 -05:00
chasse20 a5f09109ea Merge main into PR 234 2026-11-10 05:33:20 -05:00
vangel76 2b98204931 Merge remote-tracking branch 'origin/perf/parallel-project-save' into pr218-merge 2026-11-10 00:28:01 +01:00
vangel76 0ecfa244af amend 2026-11-10 00:20:01 +01:00
vangel76andClaude Sonnet 5.5 0ca220ed2d Merge branch 'perf/parallel-project-save' into fix/save-over-load-limit; no size limit on opening a project
The 8 GiB MAX_TOTAL guard on open and the save-side check are removed (maintainer
decision). The per-resource and mesh limits stay.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 00:14:07 +01:00
vangel76andClaude Sonnet 5.5 1a795584f1 perf(formats): cores kept for the UI and a RAM share for project saves are settings
The worker cap of 8 and the fixed 3 GiB in-flight budget are gone. Prefs gets
'cores kept for the UI' (default 1, 0 or more) and 'max RAM while saving'
(default 50% of the free RAM).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 00:06:01 +01:00
Chris Hassebrook be989fba6f Harden baked map imports and fix TGA decoding 2026-11-08 08:58:07 +00:00
vangel76 d8ecfb7d42 Merge upstream/main into fix/clippy-chunks-exact-to-as-chunks 2026-11-08 02:27:35 +01:00