Page MenuHome

Alembic: Allow exporting of animated vertex colors
ClosedPublic

Authored by Cody Winchester (CodyWinch) on May 17 2021, 3:03 PM.

Details

Summary

This patch is for the task T88074

This patch changes the alembic writing of vertex colors to allow for animated vertex color exports.

The changes are made to be in line with the way the UV Maps are written.
Each vertex color gets a OC4fGeomParam created and mapped into the CDStreamConfig to avoid recreating the Param on each frame.

The time sample index is also stored in the config now and set onto the UV and Vertex Color params each frame. Without this the exports would get inconsistent timing results where animated UV maps and Vertex Colors were not playing back at the original speed.

Diff Detail

Repository
rB Blender
Branch
arcpatch-D11278 (branched from master)
Build Status
Buildable 18507
Build 18507: arc lint + arc unit

Event Timeline

With recent changes in the Alembic exporter code, this patch no longer applies. Could you rebase it to the latest master?

Rebase (with the correct diff this time)

Rebased on master, and clarified a comment

source/blender/io/alembic/intern/abc_customdata.h
86–87

I've changed this comment, so that it makes explicit what the std::string represents. Personally I always try to keep both keys and values of a map explicitly documented ("mapping from X to Y").

This revision is now accepted and ready to land.Nov 5 2021, 2:58 PM