Collada export "Global Orientation" setting does not work properly for child nodes #69491
Labels
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#69491
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 416.81
Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash:
f6cb5f5449
Worked: (optional)
Short description of error
Collada export "Global Orientation" setting does not work properly for child nodes.
Global orientation transformation should only be applied to root nodes, but it is applied to child nodes as well, causing corruption of hierarchical objects.
For example assume you have a tank chassis mesh with a turret mesh attached to it. We want to export it using Global Orientation setting to re-orient the axes for a game engine. If we do so, the chassis object will be correctly re-oriented. However, also the turret object will be re-oriented by the exporter, causing the turret to be rotated relative to the chassis.
Child nodes should not be re-oriented by the "Global Orientation" setting. Only root nodes should be affected.
Exact steps for others to reproduce the error
The exported scene is now corrupt. The child object is wrongly rotated relative to the parent.
Added subscriber: @kaalus
Added subscriber: @JacquesLucke
Changed status from 'Needs Triage' to: 'Needs User Info'
Thanks for the report.
Please prepare a simple .blend file that allows us to reproduce this issue more easily. This way everyone is on the same page about what the issue is.
It would also help if you could describe more exactly what you see in the file and what you would expect (for those who don't really know the Collada format).
Added subscriber: @dfelinto
Keeping this open for another week since we took so long to start triaging it. But anyone feels free to close it in case of no reply if another week goes by.
Attaching .blend file demonstrating the issue:
ExportOrientationTestCase.blend
The blend file contains two cones side by side, one a parent of the other:
To demonstrate the problem, export the scene to collada format. In the export settings, change Global Orientation setting to "Z Forward" and "Y Up".
The exporter will produce a .dae file. Now start from a blank scene and import the .dae file. This is the result:
You will notice that the relative orientation of the cones has changed. The child cone is no longer pointing in the same direction as the parent cone. If this was a complex model with many parts, it would now be completely mangled.
What is the expected outcome: the cones stay in the same relative orientation.
What causes the problem: The "Global Orientation" setting of the exporter should only be changing orientation of root objects. Child objects should be left unchanged. They are already affected by their parents' orientation. As it stands, they are transformed twice: first by the "global orientation" setting on export, second by their parent orientation, which was also transformed by the same "global orientation" setting.
Changed status from 'Needs User Info' to: 'Confirmed'
I can reproduce the behavior in you screenshots. It is unexpected indeed.
Added subscriber: @Bloop