FBX exporter does not properly position and rotate group instances #41808

Closed
opened 2014-09-13 05:46:43 +02:00 by Arnaud Couturier · 14 comments

System Information
Win7

Blender Version
Blender 2.71 official

Short description of error
Group instances aren't properly positioned and rotated if we export them with different forward axis and up axis.

Exact steps for others to reproduce the error
Very simple to reproduce:

  1. download both very simple .blend files below: "lib.blend" contains 2 mesh objects grouped together. "import.blend" has a linked instance of that group + a local mesh object
  2. export everything from "import.blend" to binary FBX, with the options axis_forward=Z and axis_up=Y
  3. import in Unity game engine => see the obtained result below. The local non-linked mesh is placed and orientated correctly, but the linked group instance is all messed-up
**System Information** Win7 **Blender Version** Blender 2.71 official **Short description of error** Group instances aren't properly positioned and rotated if we export them with different forward axis and up axis. **Exact steps for others to reproduce the error** Very simple to reproduce: 1) download both very simple .blend files below: "lib.blend" contains 2 mesh objects grouped together. "import.blend" has a linked instance of that group + a local mesh object 2) export everything from "import.blend" to binary FBX, with the options axis_forward=Z and axis_up=Y 3) import in Unity game engine => see the obtained result below. The local non-linked mesh is placed and orientated correctly, but the linked group instance is all messed-up

Changed status to: 'Open'

Changed status to: 'Open'
Bastien Montagne was assigned by Arnaud Couturier 2014-09-13 05:46:43 +02:00

Added subscriber: @piiichan

Added subscriber: @piiichan

lib.blend.png

import.blend.png

import.blend_in_Unity.png

![lib.blend.png](https://archive.blender.org/developer/F110066/lib.blend.png) ![import.blend.png](https://archive.blender.org/developer/F110067/import.blend.png) ![import.blend_in_Unity.png](https://archive.blender.org/developer/F110068/import.blend_in_Unity.png)
[example_blend_files.7z](https://archive.blender.org/developer/F110073/example_blend_files.7z)

I just checked, and local non-linked group instances ALSO are exported and imported in Unity INcorrectly.

I just checked, and local non-linked group instances ALSO are exported and imported in Unity INcorrectly.

This issue was referenced by aeb4cb010e

This issue was referenced by aeb4cb010eb497e3c511edcad05e8d8831a1ca12

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit aeb4cb010e.

Closed by commit aeb4cb010e.

I modified my fbx_utils.py, and exported again import.blend to Unity.
The issue is not completely solved

  • the position is now correct
  • BUT the rotation of the group instance is still wrong: compare it with how it is in Blender (2nd screenshot above). Notice also that Unity rotated the group by default, it should have a rotation of (0,0,0), just like the local mesh (the bigger one). Finally, notice also how the group is messed up at the bottom, in the asset view
    import.blend_in_unity_2.png
I modified my fbx_utils.py, and exported again import.blend to Unity. The issue is not completely solved - the position is now correct - BUT the rotation of the group instance is still wrong: compare it with how it is in Blender (2nd screenshot above). Notice also that Unity rotated the group by default, it should have a rotation of (0,0,0), just like the local mesh (the bigger one). Finally, notice also how the group is messed up at the bottom, in the asset view ![import.blend_in_unity_2.png](https://archive.blender.org/developer/F110210/import.blend_in_unity_2.png)

Do not get that result.

I’d suggest you wait for this evening’s testbuild from our buildbot and try with it, just editing a tiny part of 2.71’s addon code won’t make it 2.72 addon… You have three months of changes since then!

Do not get that result. I’d suggest you wait for this evening’s testbuild from [our buildbot](https://builder.blender.org/download) and try with it, just editing a tiny part of 2.71’s addon code won’t make it 2.72 addon… You have three months of changes since then!

Ok, will try. Thanks for the quick replies :)

Ok, will try. Thanks for the quick replies :)

I tested with official Blener 2.72 testbuild, it still doesn't work...
Should I use an even more recent build ?
Sans_titre.png

I tested with official Blener 2.72 testbuild, it still doesn't work... Should I use an even more recent build ? ![Sans_titre.png](https://archive.blender.org/developer/F111012/Sans_titre.png)

Well, Blender 2.72 testbuild is from 2014-09-11, and you made the change the 14th, so of course I should test with a newer version, stupid me
Will try from the buildbot, there is a new release just today.
Sorry for the useless comments...

Well, Blender 2.72 testbuild is from 2014-09-11, and you made the change the 14th, so of course I should test with a newer version, stupid me Will try from the buildbot, there is a new release just today. Sorry for the useless comments...

Ok, I tested it with version 8c3daab (2014-09-17) and it exports fine in Unity now. Excellent!

Ok, I tested it with version 8c3daab (2014-09-17) and it exports fine in Unity now. Excellent!
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#41808
No description provided.