Alembic import - Incorrect object pivots #70408
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#70408
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Darwin-18.7.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon R9 M370X OpenGL Engine ATI Technologies Inc. 4.1 ATI-2.11.20
Blender Version
Broken: version: 2.81 (sub 12), branch: master, commit date: 2019-09-22 20:38, hash:
52bdf522af
Worked: (optional)
Short description of error
Alembic import places pivots of objects at origin, ignoring object pivot data in the file.
Exact steps for others to reproduce the error
Import pivot_debug.abc in Blender
Observe pivots of all objects at 0, 0, 0
Compare to pivot_debug_expectedresult.jpg
When pivot_debug.abc is imported back into Maya, the pivots are in their expected locations.
pivot_debug.abc
Added subscriber: @Frand
Added subscribers: @dr.sybren, @lichtwerk
Not sure about this.
Blender seems to be able to preserve pivot points just fine.
If I import
pivot_debug.abc
into an empty scene, select all meshes, doObject
>Set Origin
>Origin To Geometry
and export as alembic again, I end up with#70408.abc
We can also remove the parent empty for clarity:
T70408_no_parentempty.abc
If I import that, pivots are preserved just fine.
Now what is the difference between
pivot_debug.abc
and#70408.abc
?We can look at it with
abcls
@dr.sybren: I assume this is about the different XFormOps ? Is there a resource where we can find out about these used values [we: 48, them: 19, 19, 17, 17]
(couldnt find anything on https://docs.alembic.io/search.html?q=Xform)
The objects are exported from Maya 2019.1, please let me know if there are specific test objects you'd like me to generate.
Attached is the case of a cube with the pivot manually set to the center of its top face. The file imports back to Maya with the pivot in the same location.
testCube.abc
This is
abcls
for that file (still assume it has to do with the.ops
part of the XForm?)Only thing I can think of is we are not hadling (more or less a stab in the dark...)
Alembic::AbcGeom::kScalePivotPointHint
Alembic::AbcGeom::kRotatePivotPointHint
https://github.com/alembic/alembic/blob/master/maya/AbcImport/XformHelper.cpp
@dr.sybren: does this ring a bell?
Changed status from 'Open' to: 'Archived'
Blender simply uses the transformation matrix of each object, which is constructed from the Alembic file by the Alembic library itself (source). The Alembic file can contain various separate operations, or the final matrix. In the case of this Maya-generated file, it contains a sequence of operations. This is such a sequence:
As you can see, the transformations cancel each other out, and result in a unity matrix. The same you can see in the cube example.
Maya has a pivot point that is separate from the object origin, and it encodes this pivot point in the transform operations. Blender doesn't have a separate per-object pivot point, so we cannot load this information. To use the pivot point as object origin, bake the pivot points in Maya and then export to Alembic.
Closing this as 'Invalid' as this does not constitute a bug in Blender.
In Maya, I do notice the pivot point referred to as RotationPivot, so this may very well be it.
thx for learing that up @dr.sybren
Thank you for the explanation, baking pivots in Maya resolves our problem.