Blender Git Commit Log

Git Commits -> Revision 2917df2

Revision 2917df2 by Sybren A. Stüvel (master)
June 30, 2020, 09:38 (GMT)
Alembic: new exporter based on the USD exporter structure

The Alembic exporter has been restructured by leverages the
`AbstractHierarchyIterator` introduced by the USD exporter. The produced
Alembic files have not changed much (details below), as the Alembic
writing code has simply been moved from the old exporter to the new. How
the export hierarchy is handled changed a lot, though, and also the way
in which transforms are computed. As a result, T71395 is fixed.

Differences between the old and new exporter, in terms of the produced
Alembic file:
- Duplicated objects now have a unique numerical suffix.
- Matrices are computed differently, namely by simply computing the
evaluated transform of the object relative to the evaluated transform
of its export-parent. This fixes {T71395}, but otherwise should
produce the same result as before (but with simpler code).

Compared to the old Alembic exporter, Subdivision modifiers are now
disabled in a cleaner, more efficient way (they are disabled when
exporting with the "Apply Subdivisions" option is unchecked). Previously
the exporter would move to a new frame, disable the modifier, evaluate
the object, and enable the modifier again. This is now done before
exporting starts, and modifiers are only restored when exporting ends.

Some issues with the old Alembic exporter that have NOT been fixed in
this patch:
- Exporting NURBS patches and curves (see T49114 for example).
- Exporting flattened hierarchy in combination with dupli-objects. This
seems to be broken in the old Alembic exporter as well, but nobody
reported this yet.

Differential Revision: https://developer.blender.org/D7664

Reviewed By: Sergey

Commit Details:

Full Hash: 2917df21adc8a1ce0423349909db61d22a38d451
Parent Commit: a2b7c84
Lines Changed: +2054, -2181

8 Added Paths:

/source/blender/io/alembic/exporter/abc_archive.cc (+255, -0) (View)
/source/blender/io/alembic/exporter/abc_archive.h (+87, -0) (View)
/source/blender/io/alembic/exporter/abc_hierarchy_iterator.cc (+261, -0) (View)
/source/blender/io/alembic/exporter/abc_hierarchy_iterator.h (+90, -0) (View)
/source/blender/io/alembic/exporter/abc_subdiv_disabler.cc (+107, -0) (View)
/source/blender/io/alembic/exporter/abc_subdiv_disabler.h (+55, -0) (View)
/source/blender/io/alembic/exporter/abc_writer_abstract.cc (+101, -0) (View)
/source/blender/io/alembic/exporter/abc_writer_abstract.h (+77, -0) (View)

6 Deleted Paths:

/source/blender/io/alembic/exporter/abc_exporter.cc (+0, -681)
/source/blender/io/alembic/exporter/abc_exporter.h (+0, -131)
/source/blender/io/alembic/exporter/abc_writer_archive.cc (+0, -106)
/source/blender/io/alembic/exporter/abc_writer_archive.h (+0, -54)
/source/blender/io/alembic/exporter/abc_writer_object.cc (+0, -95)
/source/blender/io/alembic/exporter/abc_writer_object.h (+0, -73)

24 Modified Paths:

/source/blender/io/alembic/CMakeLists.txt (+11, -8) (Diff)
/source/blender/io/alembic/exporter/abc_export_capi.cc (+105, -124) (Diff)
/source/blender/io/alembic/exporter/abc_writer_camera.cc (+56, -33) (Diff)
/source/blender/io/alembic/exporter/abc_writer_camera.h (+17, -14) (Diff)
/source/blender/io/alembic/exporter/abc_writer_curves.cc (+42, -37) (Diff)
/source/blender/io/alembic/exporter/abc_writer_curves.h (+17, -15) (Diff)
/source/blender/io/alembic/exporter/abc_writer_hair.cc (+65, -53) (Diff)
/source/blender/io/alembic/exporter/abc_writer_hair.h (+20, -19) (Diff)
/source/blender/io/alembic/exporter/abc_writer_mball.cc (+27, -40) (Diff)
/source/blender/io/alembic/exporter/abc_writer_mball.h (+8, -23) (Diff)
/source/blender/io/alembic/exporter/abc_writer_mesh.cc (+276, -302) (Diff)
/source/blender/io/alembic/exporter/abc_writer_mesh.h (+42, -42) (Diff)
/source/blender/io/alembic/exporter/abc_writer_nurbs.cc (+50, -42) (Diff)
/source/blender/io/alembic/exporter/abc_writer_nurbs.h (+22, -11) (Diff)
/source/blender/io/alembic/exporter/abc_writer_points.cc (+59, -41) (Diff)
/source/blender/io/alembic/exporter/abc_writer_points.h (+14, -15) (Diff)
/source/blender/io/alembic/exporter/abc_writer_transform.cc (+51, -68) (Diff)
/source/blender/io/alembic/exporter/abc_writer_transform.h (+12, -29) (Diff)
/source/blender/io/alembic/intern/alembic_capi.cc (+1, -18) (Diff)
/source/blender/io/common/IO_abstract_hierarchy_iterator.h (+2, -2) (Diff)
/tests/gtests/alembic/abc_export_test.cc (+113, -102) (Diff)
/tests/gtests/alembic/abc_matrix_test.cc (+7, -1) (Diff)
/tests/gtests/alembic/CMakeLists.txt (+2, -0) (Diff)
/tests/python/alembic_tests.py (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021