WIP: Fix #119404: USD import: Incorrect translation for scaled bones #120328

Draft
Michael Kowalski wants to merge 2 commits from makowalski/blender:usd-skel-import-noisy-translations into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

NOTE: This pull request is not yet ready for review.

This addresses an issue observed in #119404.

Non-unit scales in skeleton bind matrices can cause incorrect
translation values in the bone animation, because when computing
the translation components scaling is ignored.

This commit adds the code to apply the bind matrix scaling to
the translation.

Also added a call to normalize the bind transform when creating the
bones, to avoid an assertion failure in ED_armature_ebone_from_mat4()
when the transform has a non-unit scale.

To test, load the attached USD. Without the fix, very subtle changes in
translation cause big jumps in the animation.

**NOTE: This pull request is not yet ready for review.** This addresses an issue observed in #119404. Non-unit scales in skeleton bind matrices can cause incorrect translation values in the bone animation, because when computing the translation components scaling is ignored. This commit adds the code to apply the bind matrix scaling to the translation. Also added a call to normalize the bind transform when creating the bones, to avoid an assertion failure in ED_armature_ebone_from_mat4() when the transform has a non-unit scale. To test, load the attached USD. Without the fix, very subtle changes in translation cause big jumps in the animation.
Michael Kowalski added the
Interest
Pipeline, Assets & IO
Interest
USD
labels 2024-04-05 23:55:32 +02:00
Michael Kowalski added 2 commits 2024-04-05 23:55:42 +02:00
06c3617a8d USD import: fix for scaled bind transforms
Normalizing the bind matrix.

Scaling bone translation curves by the bind
matrix scale.
Michael Kowalski added this to the USD project 2024-04-05 23:55:46 +02:00
Michael Kowalski changed title from WIP: USD import: Incorrect translation for scaled bones to WIP: Fix #119404: USD import: Incorrect translation for scaled bones 2024-04-06 00:30:09 +02:00
This pull request is marked as a work in progress.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u usd-skel-import-noisy-translations:makowalski-usd-skel-import-noisy-translations
git checkout makowalski-usd-skel-import-noisy-translations
Sign in to join this conversation.
No reviewers
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
1 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#120328
No description provided.