Orientation Hell- Y-up Z-up makes no difference

I am trying to make all my imported objects so thay are standardised so they can share animations but I am having a complete nightmare.

I am finding that when I export from MAX 2016 using FBX (2014/2015) (and Blender) regardless of whether I export as Z-Up or Y-Up everything comes in to Unity with an x value of -90 when I drag it into the scene.

I have spent days now trying to make everything imported come in with a scale of 1 and an orientation of 0,0,0 and position of 0,0,0 so that I can apply animations that also assume that starting point to anything and everything.

But I cant. Animations I import from MAX assume a starting point of -90, so if for example I create a ‘tree’ in Unity and apply an imported animation to it, the tree ends up horizontal to begin with! Even though I have made the animation in Max 0,0,0 based. And it doesn’t matter whether I export Z-Up or Y-Up :frowning:

I have been struggling with lots of import/export issues over on the UMA forum and apparently the word over there is that this is a UNITY fbx import bug.

Is this the case and if so when will it be fixed? Its going to have major repercussions for my project if I have to make everything so that its got a +90 rotation in MAX at the moment (so it imports as 0 in Unity) - not to mention being a huge pain to do- only to find that at some point Unity fixes this and Y-Up exports import into Unity as x = 0.

So whats the score?

As an example, I have an animation for a lid flying off the top of a box. I have made this so that its center point is 0,0,0 and its starting rotation is 0,0,0.

When I import this animation into Unity, if I try to apply it to a Plane created in Unity at 0,0,0. what the animation does, instead of rotating it from there (which it should as the animation starting position should be 0,0,0 and the plane starting position is 0,0,0) the plane gets flipped to be -90 ( and disappears unless you have a shader on it that shows backfacing) and then the animation plays…

So why does this happen and how do I create stuff in/export stuff from Max/ Import into Unity so that 0,0,0 IS 0,0,0?

UPDATE: It seems that the way to get objects to import into Unity with X= 0 is to make sure x= 90 in your modelling software…
ARRRGH I just spent two days fixing all my objects so that they all == 0 but just imported an old object and noticed that I should have made everything the same as that one- rather than thinking that was one that I had to fix…

This is massively MASSIVELY frustrating, why cant Y-Up equal x= 0? i.e. why can’t the values be fixed on import so that if you have had to make something Z-Up - because thats how Max works- why cant Unity re-interpret those values as 0- why does it make them -90!!!

So I just need to know if I have to go through every object and animation in my scene, ALL OVER AGAIN, and make them all x= 90 (which is a big pain for complex animations) or is there is another way…

So I was just wondering if there was some kind of ‘Standard Strategy’ for dealing with this problem?

As I say you can make objects import into Unity standing up correctly with an X value of 0, so long as in the creation software the objects have an X value of 90 (so you rotate them -90, apply that transform and then rotate them 90 and DONT apply that transform). This means that you can create generic animations that can be applied to any objects with X= 0, except those animations MUST be on the root object (as for nested objects X0 == X90 so they wont retarget). So thats sort of a step forwards… Or is it? Is that a bad idea in the long run?

Is that what people usually do? Or do people just make their objects right in the creation software and just have them so they come in sideways/X= -90 and make any Unity Game Objects -90 too? Or do people just have objects that ‘are how they are’, some X=-90 and some not/ am I being a perfectionist/ worrying about something that doesn’t make alot of practical difference?

Welcome to the nightmare of importing objects rotation. You are not the only one to have issues with it. I still have issues with rotations of imported blender models, and I still haven’t found out the solution to the problem.
I just expect to manually rotate the object in Unity after its imported to get the right 0,0,0 rotation, I dont even worry about changing the rotation in blender anymore.

This has been discussed before, and as far as I am aware it is not possible to change 3ds max’s XYZ directions. Maya can do it, though.

I usually just add all my meshes as children to a parent game object, which allows me to choose any orientation for it, since I tend to think of the art as being separate from the actually object’s logic. I haven’t had any major issues doing this but I don’t use Animator in depth a whole lot.

It would be really great if the importer had an option to swap the Y and Z axis.