Bake action result unexpected since 2.92 #86193

Closed
opened 2021-03-02 14:35:49 +01:00 by celpec · 17 comments

System Information
Operating system:
win10
Graphics card:
gtx1050ti

Blender Version
Broken: 2.92 stable, 2.93.0-c4ef90f5a0b1 master
Worked: 2.83 stable, 2.91 stable
Behavior changed in 0e85d701c6

Short description of error
there are 2 error from this issue.
1, the bake action handle bone's rotation as euler, then the bake result are not as expected, in frame 1 to 2 will have a large rotation.
2, change bone or armature's rotation mode from euler to quaternion then bake will cause error (this has still to be reproduced)

Exact steps for others to reproduce the error
1, open file, bones already selected
2,bake the action use visual keying, then the action will have a incorrect rotation in 1-2 frame.
3, change mode from euler to quaternion
4, bake again and will give an error " ValueError: Matrix.to_euler(): invalid euler order 'QUATERNION' ", but this has its own report in #88359

Based on the default startup or an attached .blend file (as simple as possible).
daz_test.blend

from #88378:

** Baking animation just dont work properly in blender 2.92, it give incorrect baking starting at frame 2 ( even if you clean curves and clear parents and constraint). baking works perfectly and smoothly in blender 2.91
bakeproblem2.92.blend

2.91.jpg

2.92.jpg

**System Information** Operating system: win10 Graphics card: gtx1050ti **Blender Version** Broken: 2.92 stable, 2.93.0-c4ef90f5a0b1 master Worked: 2.83 stable, 2.91 stable Behavior changed in 0e85d701c6 **Short description of error** there are 2 error from this issue. 1, the bake action handle bone's rotation as euler, then the bake result are not as expected, in frame 1 to 2 will have a large rotation. 2, change bone or armature's rotation mode from euler to quaternion then bake will cause error (this has still to be reproduced) **Exact steps for others to reproduce the error** 1, open file, bones already selected 2,bake the action use visual keying, then the action will have a incorrect rotation in 1-2 frame. 3, change mode from euler to quaternion 4, bake again and will give an error " ValueError: Matrix.to_euler(): invalid euler order 'QUATERNION' ", but this has its own report in #88359 Based on the default startup or an attached .blend file (as simple as possible). [daz_test.blend](https://archive.blender.org/developer/F9860172/daz_test.blend) from #88378: ** Baking animation just dont work properly in blender 2.92, it give incorrect baking starting at frame 2 ( even if you clean curves and clear parents and constraint). baking works perfectly and smoothly in blender 2.91 [bakeproblem2.92.blend](https://archive.blender.org/developer/F10123408/bakeproblem2.92.blend) ![2.91.jpg](https://archive.blender.org/developer/F10123419/2.91.jpg) ![2.92.jpg](https://archive.blender.org/developer/F10123420/2.92.jpg)
Author

Added subscriber: @celpec

Added subscriber: @celpec

#88378 was marked as duplicate of this issue

#88378 was marked as duplicate of this issue
celpec changed title from bake bone rotation error, and change euler to quaternion then Bake bone action error to bake action result incorrect, and change euler to quaternion then Bake action error 2021-03-02 14:38:43 +01:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

It is always preferable to not have full rigs as example files.
These of course are more complex to debug, please always try to put together a minimal example file:

  • does this also happen without visual keying?
  • does it only happen with these kinds of constraints?
  • ...

I can confirm a difference in the bake though:
2.92
image.png
2.91
image.png

4, bake again and will give an error " ValueError: Matrix.to_euler(): invalid euler order 'QUATERNION' "

havent been able to reproduce this one though

Will see which commit caused this.

It is always preferable to not have full rigs as example files. These of course are more complex to debug, please always try to put together a minimal example file: - does this also happen without visual keying? - does it only happen with these kinds of constraints? - ... I can confirm a difference in the bake though: 2.92 ![image.png](https://archive.blender.org/developer/F9865431/image.png) 2.91 ![image.png](https://archive.blender.org/developer/F9865436/image.png) > 4, bake again and will give an error " ValueError: Matrix.to_euler(): invalid euler order 'QUATERNION' " havent been able to reproduce this one though Will see which commit caused this.
Member

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren
Member

So this changed in 0e85d701c6, not sure what is intended here, @dr.sybren would have to comment here.

So this changed in 0e85d701c6, not sure what is intended here, @dr.sybren would have to comment here.
Philipp Oeser changed title from bake action result incorrect, and change euler to quaternion then Bake action error to bake action result unexpected (and change euler to quaternion then Bake action error) 2021-03-04 12:17:35 +01:00
Member

Added subscribers: @zuraxe, @iss

Added subscribers: @zuraxe, @iss
Member

The quaternion error might be related, but it has also been reported separately in #88359 (Bake of animation keyframes are fail when object is quaternion define but bones is Eular define), will clean up the report description here

The quaternion error might be related, but it has also been reported separately in #88359 (Bake of animation keyframes are fail when object is quaternion define but bones is Eular define), will clean up the report description here
Philipp Oeser changed title from bake action result unexpected (and change euler to quaternion then Bake action error) to Bake action result unexpected since 2.92 2021-05-19 11:26:40 +02:00
Member

Will raise prio, since this might be a regression (looks like one)

Will raise prio, since this might be a regression (looks like one)
Member

Added subscriber: @wbmoss_dev

Added subscriber: @wbmoss_dev
Member

Looks like D11282: Fix #88359: Issue of object matrix order use in pose bake fixes this and the quaternion problem. Will let @dr.sybren handle the commit since we're in bcon4 and I'm not sure how all that stuff is handled.

Simple single bone repro file:
T86193_simple.blend

The object euler rotation mode doesn't match the bone's euler rotation mode. When you bake, the discontinuity occurs. If you change the object's rotation mode to match, it's fixed.

Looks like [D11282: Fix #88359: Issue of object matrix order use in pose bake](https://archive.blender.org/developer/D11282) fixes this and the quaternion problem. Will let @dr.sybren handle the commit since we're in bcon4 and I'm not sure how all that stuff is handled. Simple single bone repro file: [T86193_simple.blend](https://archive.blender.org/developer/F10128653/T86193_simple.blend) The object euler rotation mode doesn't match the bone's euler rotation mode. When you bake, the discontinuity occurs. If you change the object's rotation mode to match, it's fixed.

Added subscriber: @DreamertTooth

Added subscriber: @DreamertTooth

Thanks for finding the cause of this, @wbmoss_dev and @DreamertTooth !

Thanks for finding the cause of this, @wbmoss_dev and @DreamertTooth !

This issue was referenced by a1954e3807

This issue was referenced by a1954e380730ae9d116245343d9296d587907673

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sybren A. Stüvel self-assigned this 2021-05-20 12:59:02 +02:00
https://i.kym-cdn.com/entries/icons/original/000/022/628/Screen_Shot_2017-04-05_at_2.58.07_PM.png
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
6 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#86193
No description provided.