Alembic export do scale when rotating more than 360` #55288

Closed
opened 2018-06-01 15:53:58 +02:00 by colin · 5 comments

System Information
Linux and windows

Blender Version
Blender v2.79b

Short description of error
If you rotate a armature's bone with an object parent to it more than 360` and you export the object as alembic file.
If you read the abc file in other software (test with maya, 3dsmax, houdini, guerilla) the object get a scale transformation.
blender_preview.gif
abc_preview.gif

Exact steps for others to reproduce the error
bug_rotation_scale_alembic.blend
bug_rotation_scale_alembic.abc

Thanks !

**System Information** Linux and windows **Blender Version** Blender v2.79b **Short description of error** If you rotate a armature's bone with an object parent to it more than 360` and you export the object as alembic file. If you read the abc file in other software (test with maya, 3dsmax, houdini, guerilla) the object get a scale transformation. ![blender_preview.gif](https://archive.blender.org/developer/F3544554/blender_preview.gif) ![abc_preview.gif](https://archive.blender.org/developer/F3544559/abc_preview.gif) **Exact steps for others to reproduce the error** [bug_rotation_scale_alembic.blend](https://archive.blender.org/developer/F3544571/bug_rotation_scale_alembic.blend) [bug_rotation_scale_alembic.abc](https://archive.blender.org/developer/F3544570/bug_rotation_scale_alembic.abc) Thanks !
Author

Added subscriber: @col-one

Added subscriber: @col-one
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Sybren A. Stüvel was assigned by Philipp Oeser 2018-06-06 12:54:57 +02:00
Member

Dont have access to other software atm., reads back fine into blender though.
abcview shows more or less nothing for me...

Does this also happen when you use the Flatten Hierarchy option in blenders abc exporter?

Dont have access to other software atm., reads back fine into blender though. `abcview` shows more or less nothing for me... Does this also happen when you use the `Flatten Hierarchy` option in blenders abc exporter?

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

I've done some digging, and it seems to be an issue with the reading applications. Both Gaffer and USDView show the wobbling scale issue. Exporting @col-one's file with 24 FPS and then importing into Gaffer or USDView works fine. It's when there is a different frame rate that these programs fail.

It's not so much the large (> 360°) rotation that's the issue here, but rather the big rotational step from frame to frame. This makes it extra visible when programs interpolate incorrectly.

The hard-coded assumption of having 24 FPS can be seen in the USD sources, and I wouldn't be surprised if other software did this as well. It looks like the transformation matrices are linearly interpolated, which can cause these kind of artefacts. I filed bug report #940 at the USD tracker about this.

I've done some digging, and it seems to be an issue with the reading applications. Both Gaffer and USDView show the wobbling scale issue. Exporting @col-one's file with 24 FPS and then importing into Gaffer or USDView works fine. It's when there is a different frame rate that these programs fail. It's not so much the large (> 360°) rotation that's the issue here, but rather the big rotational step from frame to frame. This makes it extra visible when programs interpolate incorrectly. The hard-coded assumption of having 24 FPS can be seen in [the USD sources](https:*github.com/PixarAnimationStudios/USD/blob/32ca7df94c83ae19e6fd38f7928d07f0e4cf5040/pxr/usd/plugin/usdAbc/alembicReader.cpp#L961), and I wouldn't be surprised if other software did this as well. It looks like the transformation matrices are linearly interpolated, which can cause these kind of artefacts. I filed [bug report #940](https:*github.com/PixarAnimationStudios/USD/issues/940) at the USD tracker about this.
Sign in to join this conversation.
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
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#55288
No description provided.