Rotation bug. Export Y up, -Z forward FBX with parenting. #97043

Closed
opened 2022-04-04 20:26:57 +02:00 by warkarma · 6 comments

System Information
Operating system: Windows-10-10.0.19042-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.15

Blender Version
Broken: version: 3.1.2, branch: master, commit date: 2022-03-31 17:40, hash: blender/blender@cc66d1020c
Worked: (newest version of Blender that worked as expected)

Short description of error
Model rotation and sometimes scale bugs out on exporting FBX with parenting and different axis{F12970749}

Screenshot_2.png

Exact steps for others to reproduce the error
Create 3 cubes and 2 empty objects. Make 2 cubes in some meaningful shape such as drawer and place them at the top of the default cube (reset transforms and set origin at the centre of each object). Place 1 empty at the "drawer" cubes location. Parent "drawer" cubes to the top empty. Select only top empty and the default cube and parent them to the 2nd empty which is at the default 0.0.0 location. Export everything as FBX with settings: Apply scallings -> FBX Unit scale, Forward -> -Z, UP -> Y. Deselect Apply unit, Select Use space transform, Select Apply Transform. Leave everything else as default.
The export should have all pivot points at Y Up, -Z forward, but if you would import this FBX, the child objects are rotated and sometimes get scaled down. While the main empty (0.0.0) and the default cube is displayed correctly with correct pivot point.
Attaching the blend file and how it looks on import at Blender and 3dsMax

This work.blend

**System Information** Operating system: Windows-10-10.0.19042-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.15 **Blender Version** Broken: version: 3.1.2, branch: master, commit date: 2022-03-31 17:40, hash: `blender/blender@cc66d1020c` Worked: (newest version of Blender that worked as expected) **Short description of error** Model rotation and sometimes scale bugs out on exporting FBX with parenting and different axis{[F12970749](https://archive.blender.org/developer/F12970749/unknown.png)} ![Screenshot_2.png](https://archive.blender.org/developer/F12970757/Screenshot_2.png) **Exact steps for others to reproduce the error** Create 3 cubes and 2 empty objects. Make 2 cubes in some meaningful shape such as drawer and place them at the top of the default cube (reset transforms and set origin at the centre of each object). Place 1 empty at the "drawer" cubes location. Parent "drawer" cubes to the top empty. Select only top empty and the default cube and parent them to the 2nd empty which is at the default 0.0.0 location. Export everything as FBX with settings: Apply scallings -> FBX Unit scale, Forward -> -Z, UP -> Y. Deselect Apply unit, Select Use space transform, Select Apply Transform. Leave everything else as default. The export should have all pivot points at Y Up, -Z forward, but if you would import this FBX, the child objects are rotated and sometimes get scaled down. While the main empty (0.0.0) and the default cube is displayed correctly with correct pivot point. Attaching the blend file and how it looks on import at Blender and 3dsMax [This work.blend](https://archive.blender.org/developer/F12970747/This_work.blend)
Author

Added subscriber: @Warkarma

Added subscriber: @Warkarma
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Closed as duplicate of #65478

Closed as duplicate of #65478
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Just don't use the Apply Transform as it is known to not work on those cases.

Just don't use the Apply Transform as it is known to not work on those cases.
Author

In #97043#1336577, @OmarEmaraDev wrote:
Just don't use the Apply Transform as it is known to not work on those cases.

It doesn't save the pivot rotation if you don't use Apply Transform. I need it to be Y up on import. Screenshot_1.png

> In #97043#1336577, @OmarEmaraDev wrote: > Just don't use the Apply Transform as it is known to not work on those cases. It doesn't save the pivot rotation if you don't use Apply Transform. I need it to be Y up on import. ![Screenshot_1.png](https://archive.blender.org/developer/F12978502/Screenshot_1.png)
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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-addons#97043
No description provided.