Broken Rotation to Deltas for Quaternions and Axis Angle #69314

Closed
opened 2019-08-29 21:44:13 +02:00 by Henrik D. · 10 comments
Member

System Information
Operating system: Linux
Graphics card: -

Blender Version
Broken: 2.79b, 2.80, 2.81 Alpha 2019-08-26
Worked: -

Short description of the bug
Apply Transforms > Rotation to Deltas, does ADD the current rotation values to the existing delta transforms
For Quaternions that should MULTIPLY with the current delta value. Due to the fact that it adds it,
it results in a different transform after that operation.
Also Rotation to Deltas does entirely fail for Axis Angle rotation representation.

Exact steps for others to reproduce the error
Start with the default startup file and rotate the cube randomly.
Set the rotation representation to Quaternion or Axis Angle.
Press Ctrl+A and select Rotation to Deltas.
The Cube now has a messed up non unit quaternion in the transform deltas
or nothing changed at all for the axis-angle case.

**System Information** Operating system: Linux Graphics card: - **Blender Version** Broken: 2.79b, 2.80, 2.81 Alpha 2019-08-26 Worked: - **Short description of the bug** Apply Transforms > Rotation to Deltas, does ADD the current rotation values to the existing delta transforms For Quaternions that should MULTIPLY with the current delta value. Due to the fact that it adds it, it results in a different transform after that operation. Also Rotation to Deltas does entirely fail for Axis Angle rotation representation. **Exact steps for others to reproduce the error** Start with the default startup file and rotate the cube randomly. Set the rotation representation to Quaternion or Axis Angle. Press Ctrl+A and select Rotation to Deltas. The Cube now has a messed up non unit quaternion in the transform deltas or nothing changed at all for the axis-angle case.
Author
Member

Added subscriber: @HDMaster84

Added subscriber: @HDMaster84

Added subscriber: @AbidMaqbool

Added subscriber: @AbidMaqbool

IMO, Not looks like a bug...
I think, Rotation To Deltas works just like this. as tool-tip saying:
image.png
Exact Steps:

  • Rotate Cube -> Z Axis -> 45d
  • Convertto Quaternion
  • Note values there (will be addedwith Rotation To Deltas):
    image.png
  • Ctrl + A Apply -> Rotation To Deltas
    Values are added up to existing transform (cube) & reset to defaults in text-fields
    image.png

Before Applying:
image.png
After:
image.png

Rotation To Deltas.blend
All Blender versions -> Same behavior
Thanks

IMO, Not looks like a bug... I think, **Rotation To Deltas** works just like this. as **tool-tip saying**: ![image.png](https://archive.blender.org/developer/F7710427/image.png) **Exact Steps:** * **Rotate** Cube -> **Z** Axis -> **45**d * **Convert**to **Quaternion** * **Note values** there (will be **added**with `Rotation To Deltas`): ![image.png](https://archive.blender.org/developer/F7710432/image.png) * **Ctrl + A** `Apply` -> **Rotation To Deltas** Values are **added up** to **existing** transform (cube) & reset to **defaults** in **text-fields** ![image.png](https://archive.blender.org/developer/F7710434/image.png) **Before Applying:** ![image.png](https://archive.blender.org/developer/F7710438/image.png) **After:** ![image.png](https://archive.blender.org/developer/F7710436/image.png) [Rotation To Deltas.blend](https://archive.blender.org/developer/F7710440/Rotation_To_Deltas.blend) **All Blender versions -> Same behavior** Thanks
Author
Member

As I understand the apply operators, they should all leave the visuals exactly as is, so this is a bug. It completly not doing anything with axis angle representation is a bug for sure though, but even the problem with the quaternion isn't, that it rotates the cube, the problem is, that the resulting delta quaternion is not a unit quaternion (which all rotation quaternions are unit quaternions)

As I understand the apply operators, they should all leave the visuals exactly as is, so this is a bug. It completly not doing anything with axis angle representation is a bug for sure though, but even the problem with the quaternion isn't, that it rotates the cube, the problem is, that the resulting delta quaternion is not a unit quaternion (which all rotation quaternions are unit quaternions)

Added subscriber: @RobertN

Added subscriber: @RobertN

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

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

In fact it seems that there is an error here.
The code just adds the quartenion values in the delta.
This only works for location.

Axis Angle has no delta support (object.py$751 )

In fact it seems that there is an error here. The code just adds the quartenion values in the delta. This only works for location. `Axis Angle` has no delta support ([object.py$751 ](https://developer.blender.org/diffusion/B/browse/master/release/scripts/startup/bl_operators/object.py$751))

This issue was referenced by e665c2c893

This issue was referenced by e665c2c89326f4b13270d0d5d5082b5368413371

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Germano Cavalcante self-assigned this 2020-01-07 15:56:31 +01:00
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
5 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#69314
No description provided.