mirror of
https://github.com/blender/blender
synced 2026-10-25 03:07:01 +03:00
This adds support to export arbitrary attributes to Alembic, for meshes, curves, and pointclouds. All attribute types are exported except `float4` which is not supported by Alembic. See code comments for potential solutions if this becomes a problem in the future. For the actual export, a single function is exposed to create a `TypedGeomParam` for each attribute. To keep track of those `TypedGeomParams` across frames, a class `AttributeParamMaps` is added. This class holds a map for each type from attribute name to geom param. An instance of this class is added to each object type writer and is lazily created when exporting attributes. This class generalizes what we have currently in `CDStreamConfig` for UVs, vertex colors, and orcos. Export of vertex colors is now done with this new mechanism. UVs are not exported by this new code as they have the option to be deduplicated and indexed, which is not supported for other attribute types. Support for this for all attributes could be added in the future though. Finally, attributes consisting of a single value are exported as such on the constant scope. Fixes #157620 Resolves #99293 Pull Request: https://projects.blender.org/blender/blender/pulls/163162
3 lines
131 B
Text
3 lines
131 B
Text
version https://git-lfs.github.com/spec/v1
|
|
oid sha256:73f8d37eb8f408d0df20718041fbe0e5c1bdb76b7b60bf51f6dd1b32af823c9d
|
|
size 111874
|