Revision b16b847 by Michael Kowalski (temp-usd-importer-T81257-merge, usd, usd-importer-T81257-merge) February 8, 2021, 20:29 (GMT) |
USD import: orientation bug. Uninitialized USDMeshReader::m_isLeftHanded flag was causing the vertex winding orientation to randomly flip, causing incorrect shading and other issues. |
Revision a9b77cb by Michael Kowalski (temp-usd-importer-T81257-merge, usd, usd-importer-T81257-merge) February 8, 2021, 17:59 (GMT) |
USD import: handle primvars:normals if specified. Per Pixar UsdGeomPointBased documentation: If 'normals' and 'primvars:normals' are both specified, the latter has precedence. |
Revision 17cd9ad by Michael Kowalski (temp-usd-importer-T81257-merge, usd, usd-importer-T81257-merge) February 8, 2021, 16:58 (GMT) |
USD import: Handle empty vertex-varying normals. If point normals are empty, now invoking BKE_mesh_calc_normals() to avoid black renders. Since BKE_mesh_calc_normals() requires edges to be defined, moving point normal calculation to follow reading polys. |
Revision f45dac3 by Michael Kowalski (temp-usd-importer-T81257-merge, usd, usd-importer-T81257-merge) February 7, 2021, 00:24 (GMT) |
USD importer: vertex normals render black. Setting point normals by invoking normal_float_to_short_v3(), instead of directly assigning components as floats. |
Revision 8eef5de by Michael Kowalski (temp-usd-importer-T81257-merge, usd, usd-importer-T81257-merge) February 6, 2021, 03:48 (GMT) |
USD importer: custom normals shading bug. Removed call to BKE_mesh_calc_edges() after setting UVs, as this function is already called after setting polys. Moreover, the second, redundant call was causing incorrect viewport shading of previously set custom normals. Now also setting the ME_AUTOSMOOTH mesh flag to enable shading with custom normals. |
Revision 6a2e29f by Michael Kowalski (temp-usd-importer-T81257-merge, usd, usd-importer-T81257-merge) February 4, 2021, 21:23 (GMT) |
USD importer stage traversal options. Added new stage traversal options to filter prim import based on purpose (guide, proxy and render) and whether to traverse instances with instance proxies. Also modified the stage traversal logic to avoid a small memory leak due to creating a reader for the pseudo root which is never used or deleted. |
Revision 3f03983 by Michael Kowalski (temp-usd-importer-T81257-merge, usd, usd-importer-T81257-merge) January 16, 2021, 05:12 (GMT) |
Fixed compile errors. Registering USD plugins. |
Revision 1e5e81a by Benjamin Skinner / Michael Kowalski (temp-usd-importer-T81257-merge, usd, usd-importer-T81257-merge) January 16, 2021, 03:19 (GMT) |
Initial USD Import open sourcing. Cherry-picked commit of Tangent Animation's USD importer from branch ta-usd-import in https://github.com/tangent-opensource/blender.git. |
|