Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 morganimation · Mar 14, 2014 at 01:47 AM · mayaimporting problemsinterpolationkeysdae

Importing animation, how to stop unity adding random interpolation and gimbal lock?

Hi,

I have a show-stopper of a problem with importing animations into Unity.

I'm exporting from maya, I've tried .fbx and .dae files, many different settings, I've got animation baked on single keys, I'm doing everything I can think of by the book, however, my animations are all glitchy once they're imported into Unity.

Upon inspection, I find that unity decides to add random interpolation to the keys at the start and end of each animation. Upon closer inspection (opening the Animation folder and selecting the keys to change their interpolation by hand), I find that it's also added gimbal flip to some of the bones, which I then need to fix.

Is there some setting on import that I haven't been able to find that will fix this?

I've tried changing the wrap mode to loop, but that doesn't change anything. The only thing I can see on the forums is to clean up the animations after import, which, considering the number of animations I have and the time I have to deliver, will harshly effect the quality of the work I am submitting.

Any help would be greatly appreciated.

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 SirCrazyNugget · Mar 14, 2014 at 02:05 AM

Gimbal lock's more of a disease than a feature which occurs when you're trying to rotate around 3 axis at once, quaternions can solve that problem though I'm not sure if you can choose to use them on importing the animations.

The only quick fix I can think of at the moment is rotating the model in Maya around different axis and exporting then localizing it again in Unity. Might hopefully overcome the problem of multiple axis being rotated?

Either way, Good luck!

Comment
Add comment · Show 1 · 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 morganimation · Mar 14, 2014 at 02:19 AM 0
Share

Thanks for this answer.

I believe unity has automatic quarternion curves on import, as they are the reason for the random interpolation in the keys, which is my main issue at the moment.

I included the gimbal issue, as I thought it might point to a solution; suggesting that unity is rebaking the animation on import. Not sure whether this is the reason, cause, symptom, or just another random distraction from the real issue.

Thanks again for the speedy answer and the well wishes. I will post if this works, or I find another solution.

avatar image
0

Answer by morganimation · Mar 18, 2014 at 06:00 AM

workaround

For anybody else who has this problem, here's how I've been able to solve - or reduce - it.

Seems the bug occurs when there are a lot of frames in the export, for example, if you have animated a all your character's animations in the one file.

Exporting the animations individually, starting at frame zero, with each key baked, appears to avoid the issue. Bit of a hassle, but ultimately better than trying to clean up the keys in Unity.

Good luck.

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

20 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

Related Questions

Importing mesh components animations from Maya to Unity. 0 Answers

Deformed imported rigged maya model 0 Answers

Unity wont import my animation from Maya 1 Answer

Can I make animations snap to a frame? 1 Answer

Generate Colliders not workign with Imported Maya 3 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