Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Tarrag · Jan 13, 2018 at 04:09 PM · importaxisexportmayaz-axis

May export: transform at export to Unity facing incorrectly

Hey,

I set the z-axis facing to the front of a model in Maya but at export in Unity Z-axis faces the opposite direction.

Maya before export: alt text Imported into Unity: alt text

Provided Y-axis is also up in Unity, changing z-world axis in Maya for Y does not solve this problem.

Can you please help?

Thank you, Sergio

mayatransform.png (276.5 kB)
unitytransform.png (464.6 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Bunny83 · Jan 13, 2018 at 09:47 PM

As you can see when looking close at the handles in maya and in Unity they are not the same. Maya uses a right-handed coordinate system (R-G-B / X-Y-Z --> thumb, index finger, middle finger on the right hand) while Unity uses a left-handed coordinate system (R-G-B / X-Y-Z --> thumb, index finger, middle finger on the left hand). There is no general or unique way to convert between a left handed and a right handed system. You always have to invert at least one axis. In most cases it's the z axis that gets inverted.


If you want to have the z axis pointing "forward" when imported in Unity you probably want the z axis pointing backwards in maya.


Though in most cases you shouldn't really care about how the model got imported. You can simply create a new empty gameobject in Unity and add your model as child object. You can rotate the child by 180° around the y-axis. Now just use the empty gameobject as your root object for your ship. You can create a prefab out of the new root object by dragging it into the project panel.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Tarrag · Jan 14, 2018 at 05:48 PM

Hey @Bunny83 , thank you for your answer, this now makes sense.

Interestingly I exported the model from maya with the z-axis facing backwards but the model's axis come into Unity still the same, i.e. z-axis facing backwards. Maya allows to to set the y or z axis facing up, but regardless how it's set it always goes into Unity the same, z-axis facing backwards, y-up.

I used parenting for the model but was trying to avoid it particularly if every moving maya-exported object needs parenting. I hear parenting can slow down unity because of cache positions, every time you access anything in transform, it has to calculate the position based on the current location of it’s parent objects (if you are accessing the position of many nested objects this can get quite expensive). Also heard that when you change one of a child transforms, it needs to tell every other object in the tree.

Cheers, Sergio

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

85 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Rotation conversion from Unity to Maya question 0 Answers

Torus imported from maya not showing 0 Answers

Maya import help 0 Answers

no matter what i do i can't import an animation from maya 0 Answers

Why is unity crashing when I import an FBX file exported from maya? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges