Commit Graph
174 Commits
Author SHA1 Message Date
chasse20 fb13129647 Auto: Resolve dock test conflict for PBR import integration 2026-11-17 15:23:02 +00: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
chasse20 7a840ea672 Auto: Preserve PBR aliases, mixed drops, and displayed choices
Recognize split emissive-color names, route unconsumed dropped files through their existing import path, and pin the dialog's scanned map choices when importing. Add focused regressions for all three behaviors.
2026-11-17 09:17:19 +00:00
chasse20 b8e7782830 Auto: Fix PBR import names, map detection, and stale dialogs
Use the documented RAM fallback for zero readings. Preserve dotted folder names, recognize split normal aliases, honor later map names, and clear import dialogs after project replacement. Count same-map drop candidates and clean test fixtures on unwind.
2026-11-17 07:42:09 +00:00
chasse20 8e31ddf7ff Auto: Reconcile PBR import with updated roadmap 2026-11-17 06:46:10 +00:00
chasse20 f764ac4e5f Auto: Integrate main and bound PBR import work and memory
Preserve main UI and translation changes. Bound archive indexing, directory scans and native reads; fix resolution-token overflow, unique-name replies and dialog behavior.

Avoid generated-map re-decoding and input-buffer clones, release packed sources after their final use, and borrow dialog candidates. Keep generated pixels identical to PNG reloads. Organize new types and preserve the public classifier module.

Validated with 973 release tests, focused UI and allocation probes, panic hunt, clippy, layering, wasm, formatting and diff checks.
2026-11-17 06:29:22 +00:00
Dylan M. Taylorandbflatastic 9d7077601b Use shared aligned stored ZIP entries for USDZ export
Co-authored-by: bflatastic <bombayapirat@gmail.com>
2026-11-16 23:26:09 -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
vangel76 0ca460078f Name texture sets whose old bent normal pixels are dropped even when the declaration is missing 2026-11-16 23:19:06 +01:00
vangel76 55169f4bd9 Write DirectX green for baked normal and bent normal maps in mesh map exports; clear stale bent normal declarations of older projects in every set 2026-11-16 21:51:53 +01:00
vangel76 b587b94d67 Format the bent normal tests and fix a clippy warning 2026-11-16 20:02:06 +01:00
vangel76 4c9fe1e13e Decode the bent normal like the normal map and name both ways back in the load warning 2026-11-16 19:54:27 +01:00
vangel76 343b33ee60 Bake bent normal maps in tangent space like the normal map
The bent normal map packed the world-space direction while the normal map
uses the low poly's tangent frame (OpenGL green). Encode the bent normal in
the same frame on the shared CPU/GPU packing path, read imported bent
normal images in the project's normal format, and decode it with the vertex
tangent frame in the neutral material view.

Projects saved before format version 3 held world-space bent normal maps:
loading drops them, keeps the bake settings and asks for a re-bake.

Part of #538
2026-11-16 19:50:20 +01:00
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. 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