Commit Graph
159 Commits
Author SHA1 Message Date
FredApps a5590884f0 OBJ: treat groups as objects, as tobj did
craft-mesh main (b952ca02) adds ReadOptions::groups_as_objects for
tobj-compatible reads: each g starts a new object, repeated group names
are kept and smoothing changes don't split runs. Setting it keeps
TextureCraft's previous part naming and fixes the E0063 build error.
2026-11-16 10:49:55 +01:00
FredApps 1e3ebf9e5e Merge main into codex/shared-obj-consumer 2026-11-16 10:38:51 +01:00
FredApps 8dabdd37ea Merge main into codex/shared-obj-consumer
craft-mesh stays at 284b0d81 (#1731 head, now an ancestor of craft-libs main;
same ply/stl sources as main's d6ed8c20) with main's PLY feature added; tobj
stays removed.
2026-11-16 09:44:52 +01:00
FredApps 3ec5734fe0 Merge main into codex/shared-fbx-consumer
Repin craft-mesh from integration commit d0abb877 (not on craft-libs main)
to 4f9c7189, the craft-libs main commit with the identical tree
(2ffca004), keeping main's PLY feature and pins.
2026-11-16 09:44:19 +01:00
FredApps 5f9939687b Merge pull request #534 from storytold/refactor/shared-usd-integer-write
Use bounded shared USD integer delta encoding
2026-11-16 09:34:17 +01:00
FredApps 2ae9dc1572 Merge pull request #530 from storytold/refactor/shared-ply-rows
Use shared PLY body decoding while retaining strict import policy
2026-11-16 08:54:10 +01:00
FredApps 87d617b728 Merge main into refactor/shared-usd-integer-write 2026-11-16 08:39:13 +01:00
FredApps 7cb641f742 Keep rejecting propertyless PLY vertex elements
A vertex element without x, y, z must still fail with "vertices have no x, y, z"
instead of being skipped as a propertyless element. Adds a regression test.
2026-11-16 08:15:14 +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 fcc957b4ea Accept trailing propertyless PLY elements as before
The shared ASCII row reader counts the delimiter after the last value as read,
so a trailing element without properties (e.g. `element edge 1` after the last
vertex row) was rejected by the per-element byte bound. Propertyless elements
read nothing: skip their rows and bound their count by the bytes the previous
reader saw. Adds a regression test.
2026-11-16 07:25:59 +01:00
FredApps 55a3dee2ed Merge main into refactor/shared-usd-lz4 2026-11-16 06:47:58 +01:00
FredApps ebb4bc8673 Merge main into refactor/shared-ply-rows 2026-11-16 06:47:44 +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
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 <bombayapirat@gmail.com>
Co-authored-by: NetterSilver <133535268+Silvertree2010@users.noreply.github.com>
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 <341182916+SteamSmith@users.noreply.github.com>

Co-authored-by: bflatastic <bflat@storyteller.ai>
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 e6c149cbd6 Simplify shared FBX camera selection 2026-11-15 18:56:07 +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 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
Chris Hassebrook 0486899125 formats: read FBX vertex colors so ID bakes see them (#422) 2026-11-15 18:29:20 +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 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