Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sfmDataIO] Alembic: use XForms instead of untyped objects for root n… #659

Merged
merged 1 commit into from
Jul 15, 2019

Conversation

yann-lty
Copy link
Member

@yann-lty yann-lty commented Jul 9, 2019

Description

This PR makes root nodes of Alembic SfmData file XForms instead of untyped objects. This ensures better interoperability with other 3D graphics applications, because there is no standard way to handle Alembic nodes without type information. This was, for example, resulting in potential crashes or incorrect hierarchies when importing our Alembic files into Blender.
Using XForms guarantees that the generated Alembic file can be properly loaded into other applications, and with the correct hierarchy:

image
Imported Alembic file in current Blender 2.8 beta after this fix

Fix alicevision/Meshroom#170 alicevision/Meshroom#460

Features list

  • [sfmDataIO] AlembicExporter: Make root nodes XForms instead of untyped objects

Implementation remarks

This does not introduce compatibility issues: the AlembicImporter does not require root nodes to be untyped objects to parse an Alembic sfmData file.

…odes

There is no standard way to handle Alembic nodes without type information (OObject). Using OXForm guarantees that the generated Alembic file can be properly loaded in other applications, and with the correct hierarchy.
This does not introduce compatibility issues: the AlembicImporter does not require root nodes to be untyped objects to parse an Alembic sfmData file.
@yann-lty yann-lty requested review from simogasp and fabiencastan July 9, 2019 12:43
@simogasp simogasp added this to the 2019.2 milestone Jul 9, 2019
@simogasp
Copy link
Member

simogasp commented Jul 9, 2019

LGTM

@fabiencastan fabiencastan merged commit f401168 into develop Jul 15, 2019
@fabiencastan fabiencastan deleted the dev/abcRootXForm branch July 15, 2019 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alembic crash when loading in Blender
3 participants