- Home /
Unity3d 'Top' view has Front on Back and Back on Front?
So, after thinking for quite some time that I had things rotated, or they were importing wrong, I finally realized this is just the top camera.
In Maya, click on Top and you end up with Front on bottom and Back on top.
In Unity3d, click on To and you get Front on top and Back on bottom.
The cameras have a 180 degree rotation difference.
So, 3 questions: 1) is this a bug? 2) is there a way to change it so in Unity3d WYSIWYG in Maya? 3) since in Maya, I can rotate the top view (even though it reads 'top' upside down) and I can't in Unity3d... should I just start making objects upside down in Maya so I can easily hit the 'top' camera in Unity and have it look 'correct'?
Thanks in advance!
Answer by Flynn · Jan 19, 2011 at 01:31 AM
Different modeling programs have different rotations and relative space. I use blender, which has x, and y as Unity's x and z. Unity supports a special import option that automagically fixes this axis difference. This might be what you want.
Worst case scenario, you can't find any importation feature to help, you can always place the mesh inside an empty gameobject, and set the mesh's relative rotation so that it faces where it should. Then, you simply pretend that the empty gameobject IS that mesh.
That gets a little tedious when dealing with collision detecting and mesh manipulation.
It is better to simply rotate your model in Maya by 180 degrees before exporting to Unity. That will fix your problem as well.
So, I just created a test cube with a couple of extra faces so I can delete a hole near the top to see which way was up. Looking top down to top down cam, it is upside down. additionally, translating it +1.0 in the X in maya gives -1.0 in the X in Unity. I'm just suprised because I thought Unity:$$anonymous$$aya was 1:1 btw - I don't want any extra gameObjects or rotations for performance reasons. I can model upside-down in $$anonymous$$aya; just seems like there would be more posts on this if this is really true. looking at the axis gizmo: $$anonymous$$aya's +x is right and +z is down where Unity is +x is left when +z is down
Pretty annoying huh? As someone co$$anonymous$$g from a game dev background and having lots of time with $$anonymous$$AX and $$anonymous$$AYA Unity seems really backwards.
Personally I think having the Y axis being up makes perfect sense. :)
Y up is Fine! But it is rotated 180 degrees around the Y axis in relation to $$anonymous$$aya
Your answer
