Copy Rotation object constraint not working in local space #91117

Closed
opened 2021-09-01 18:34:52 +02:00 by Demeter Dzadik · 7 comments
Member

System Information
Operating system: Linux-5.8.0-7642-generic-x86_64-with-glibc2.32 64 Bits
Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.56

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-08-31 17:17, hash: 838b6ec48a
Worked: Not sure actually.

Short description of error
While trying to theorize about how rigging nodes would work, I realized I either have no idea how constraints work, or there is a bug where "Local Space" doesn't work for object constraints. I'm still a bit unsure.

Exact steps for others to reproduce the error

  • cubes.blend
  • Cube A has a local Copy Rotation constraint targetting Cube B, yet it's not copying the rotation at all.
  • Disable the Copy Rotation and enable the Copy Location constraint. It copies the location, but when rotating Cube A, it seems that the copied location is applied after the rotation, which seems at the very least inconsistent with how bones do it.

Perhaps this was always like this... but I can't wrap my head around how any of this makes sense!

**System Information** Operating system: Linux-5.8.0-7642-generic-x86_64-with-glibc2.32 64 Bits Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.56 **Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-08-31 17:17, hash: `838b6ec48a` Worked: Not sure actually. **Short description of error** While trying to theorize about how rigging nodes would work, I realized I either have no idea how constraints work, or there is a bug where "Local Space" doesn't work for object constraints. I'm still a bit unsure. **Exact steps for others to reproduce the error** - [cubes.blend](https://archive.blender.org/developer/F10360915/cubes.blend) - Cube A has a local Copy Rotation constraint targetting Cube B, yet it's not copying the rotation at all. - Disable the Copy Rotation and enable the Copy Location constraint. It copies the location, but when rotating Cube A, it seems that the copied location is applied after the rotation, which seems at the very least inconsistent with how bones do it. Perhaps this was always like this... but I can't wrap my head around how any of this makes sense!
Author
Member

Added subscriber: @Mets

Added subscriber: @Mets
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Works if the cubes have parents:
cubes parented.blend

I think it is related to 7728bfd4c4 / f881162f81 (but still trying to figure out what is happening)

Works if the cubes have parents: [cubes parented.blend](https://archive.blender.org/developer/F10362619/cubes_parented.blend) I think it is related to 7728bfd4c4 / f881162f81 (but still trying to figure out what is happening)
Member

Yep, have a build where this was not reverted (da6929488a) and there it works (without parents).

Now what does the manual say [not very helpful since it doesnt really tell us what the behavior is ;)]:

For objects without a parent Local Space has a special meaning, different from the
normal behavior of local space for bones or objects that have a parent. This behavior is
kept for backward compatibility, but may be removed in the future and shouldn't be used.

This is from the release notes https://wiki.blender.org/wiki/Reference/Release_Notes/2.82/Rigging#Constraints

Previously Local Space of parentless objects was interpreted as "World Space but then with the object's own rotation also applied"

From 599c8a2c8e

... special case we are doing here re 'Local'
space of parent-less objects. In that case, local space should be the same as
world one, but instead we apply the object rotation to it...

Eh, I think that means that own rotation pretty much cancels itsef out (if it is already applied to the local space?)

Yep, have a build where this was not reverted (da6929488a) and there it works (without parents). Now what does the manual say [not very helpful since it doesnt really tell us what the behavior is ;)]: ``` For objects without a parent Local Space has a special meaning, different from the normal behavior of local space for bones or objects that have a parent. This behavior is kept for backward compatibility, but may be removed in the future and shouldn't be used. ``` This is from the release notes https://wiki.blender.org/wiki/Reference/Release_Notes/2.82/Rigging#Constraints ``` Previously Local Space of parentless objects was interpreted as "World Space but then with the object's own rotation also applied" ``` From 599c8a2c8e ``` ... special case we are doing here re 'Local' space of parent-less objects. In that case, local space should be the same as world one, but instead we apply the object rotation to it... ``` Eh, I think that means that own rotation pretty much cancels itsef out (if it is already applied to the local space?)
Member

@Mets : if this explains it for you, I think we have to close, since

...but may be removed in the future and shouldn't be used

@Mets : if this explains it for you, I think we have to close, since > ...but may be removed in the future and shouldn't be used
Author
Member

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

Changed status from 'Needs Triage' to: 'Archived'
Author
Member

Thanks a lot for hunting this down! Yeah I suppose it can be closed, I will add this to my notes and try to nudge some devs to clean this up sometime. It sounds like the currently existing "Local Space" option should become a legacy option, and a new option added that works consistently with how bones do.

Thanks a lot for hunting this down! Yeah I suppose it can be closed, I will add this to my notes and try to nudge some devs to clean this up sometime. It sounds like the currently existing "Local Space" option should become a legacy option, and a new option added that works consistently with how bones do.
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
2 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#91117
No description provided.