USD IO: Generic Attributes Support #109518

Merged
Michael Kowalski merged 34 commits from CharlesWardlaw/blender:feature/generic_attributes into main 2023-08-11 23:47:24 +02:00

34 Commits

Author SHA1 Message Date
Charles Wardlaw
7028a3018a Added usd_hash_types.h to CMakeLists.txt for USD. Removed periods from warnings and errors.
All checks were successful
buildbot/vexp-code-patch-coordinator Build done.
2023-08-11 16:59:50 -04:00
2f1f7b5a91 USD: added import of Vector3 attibute types. 2023-08-11 16:44:59 -04:00
Charles Wardlaw
acb98e94db Merge remote-tracking branch 'origin' into feature/generic_attributes 2023-08-11 16:42:04 -04:00
Charles Wardlaw
d9a12e7acb Merge branch 'main' into feature/generic_attributes 2023-08-10 17:17:13 -04:00
Charles Wardlaw
5beb487e87 make format 2023-08-10 17:02:07 -04:00
Charles Wardlaw
18b89bd516 Fixed a bug on uniform face interpolation, and another introduced with the face->index_range() changes. 2023-08-10 17:00:39 -04:00
e98baae1a9 USD: Fixed uniform attributes import. 2023-08-10 15:52:04 -04:00
19dd19483c Format fixes. 2023-08-10 15:14:52 -04:00
8892404876 USD import: setting read_mesh_attributes option. 2023-08-10 15:01:57 -04:00
Charles Wardlaw
01cfe32e14 Addressing Hans' comments 7/x -- a few minor changes; passing to Michael. 2023-08-10 10:47:31 -04:00
Charles Wardlaw
da4f424170 Merge branch 'feature/generic_attributes' of projects.blender.org:CharlesWardlaw/blender into feature/generic_attributes 2023-07-26 15:29:37 -04:00
Charles Wardlaw
1d3698ac4c Addressing Hans' comments 6/x -- ATTR_DOMAIN_EDGE is now skipped. 2023-07-26 15:29:21 -04:00
Charles Wardlaw
adf58b1fa3 Addressing Hans' comments 5/x 2023-07-26 15:26:02 -04:00
1b66259362 Merge branch 'main' into feature/generic_attributes 2023-07-26 20:32:58 +02:00
Charles Wardlaw
950ab37c55 Addressing Hans' comments 4/x 2023-07-26 14:31:41 -04:00
Charles Wardlaw
771f2f6126 Merge fixes-- renaming of polys to faces and ldata to loop_data in the Mesh API. 2023-07-26 12:51:48 -04:00
Charles Wardlaw
043a09058b Merge branch 'main' into temp 2023-07-26 11:44:15 -04:00
Charles Wardlaw
e932ed6264 Addressing Hans' comments, part 3:
- Integrated a modified version of his template specialization setup
- Moved copy_prim_array_to_blender_attribute into the class for variable access.
- Fixed issues with winding left-hand vs right-hand winding order for face corner attributes (UVs)
- Added MOD_MESHSEQ_READ_ATTRIBUTES flag for the mesh cache modifier.
- Added sharp_edge and crease_edge to the list of skippable attributes to silence warnings (they are unsupported).
- Addressed a crash introduced by switching to optionals.
- Added copyright for the new header
- ran `make format`
2023-07-26 11:12:19 -04:00
c90e6036af Remove code duplication in attribute conversion, simplify code 2023-07-07 12:28:58 -04:00
Charles Wardlaw
330bf717ff Addressing Hans' comments, part 2 2023-07-06 11:17:56 -04:00
Charles Wardlaw
90f4ee1be4 Addressing Hans' comments, part 1. 2023-07-05 17:46:23 -04:00
Charles Wardlaw
8d389069c6 More bug fixes:
- Switched "face" to "uniform" on usd writes-- face was incorrect.
- Removed material_index from writes (it's handled separately)
- Added checks for USD files with malformed primvar attributes (broken interpolation); broken interpolation no longer crashes during import.
2023-07-05 16:09:05 -04:00
Charles Wardlaw
e7cc0edd01 Fixed issues with varying and uniform types. 2023-07-05 11:49:35 -04:00
Charles Wardlaw
18586f3235 Fixed an interesting issue converting Constant values from USD. Now constant values flood-fill as Point Attributes on convert. 2023-07-04 15:57:35 -04:00
Charles Wardlaw
4241bf3cfe Ran make format 2023-06-29 10:11:42 -04:00
Charles Wardlaw
601206784b Finishing up this patch:
- Changed behavior as per Hans' suggestion-- now if UVs or Colors are chosen for import / export, Generic Attributes will follow.
- One more early out check.
- Added other TexCoord2x and TexCoord3x formats.
2023-06-29 10:10:55 -04:00
Charles Wardlaw
3044206bc2 File cleanup 2023-06-27 16:59:15 -04:00
Charles Wardlaw
fbf206475c Merge branch 'feature/generic_attributes' of projects.blender.org:CharlesWardlaw/blender into feature/generic_attributes 2023-06-20 11:57:19 -04:00
kiki
05341dcdf9 Reads now work; moving on to testing on other platforms. 2023-06-20 10:13:03 -04:00
kiki
172d247f92 Finished up writes for now; working on reads. 2023-06-20 10:13:03 -04:00
kiki
0676ddeabe First pass: primvar attribute writing works, but needs more varying types and more testing. 2023-06-20 10:13:02 -04:00
kiki
113e9c3a2e Reads now work; moving on to testing on other platforms. 2023-06-15 14:12:05 -04:00
kiki
1f40dfcff2 Finished up writes for now; working on reads. 2023-06-14 15:17:00 -04:00
kiki
d9797a5ac6 First pass: primvar attribute writing works, but needs more varying types and more testing. 2023-06-13 10:19:33 -04:00