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
1
Question by SpaceJames · Apr 08, 2014 at 06:53 PM · cameramecanimroot motionloopingstutter

Issues with camera and movement stutter on root motion driven looping animations

So I'm having an issue with camera and animation stutter when using root motion driven movement in mecanim. So far we've been using our animations with root motion turned off, and controlled by a script to drive the character, but we decided to try it out with root motion driven animations to see if that worked better. However it seems that our camera is having stuttering issues right at the loop point of the animations.

This is not an issue about the camera wobble that happens when Bake to Pose is not turned on. Bake to Pose IS turned on.

I've recorded a video to show the problem, apologies for the horrible quality, since my video capture software is awful.

https://www.youtube.com/watch?v=1ZAwIay7nbs&feature=youtu.be

Since I went kind of quickly through the example of the actual problem, I recorded another one of me just replicating it.

https://www.youtube.com/watch?v=vpfQ1qXX-Ks&feature=youtu.be

So what exactly happens is that at the loop point of the animation the camera does a quick rotational stutter. Just a small annoying jump. This did NOT happen when we were using script based locomotion.

I'm thinking that it may have something to do with our camera and how it's set up. The camera actually can control the rotation of the character in addition to the root motion, however that functionality is only turned on when the right mouse button is held down, which it is NOT when this problem is occurring. If you look in the video at the position/rotation information for the camera the values are fluctuating all over the place though, so one of our programmers thinks the rotation may be due to some sort of gimbal lock thing going on. I'm not sure WHY those values are fluctuating since the animation has all of the movement Baked to Pose.

The other odd thing I noticed is that when the animation is actually put into a mecanim animator a stutter appears in the looping itself, and is especially evident if you slow the animation down. This stutter is NOT there when you look at the take on it's own, but appears in the preview only when you're looking at it through the animator.

If someone has any suggestions on what might be going on here the help would be much 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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by DerDicke · Oct 30, 2017 at 10:04 PM

old topic, but the answer is probably to update your camera movement in FixedUpdate() when char moves with root motion. At least that worked for me. I know it doesn't look related, but I had the same problem and that fixed it.

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

22 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

Related Questions

Mecanim Root Motion + Networking 2 Answers

How to fix this Mechanim root motion problem? 0 Answers

Rootmotion position issue 0 Answers

Get the root motion at a specific animation frame 1 Answer

Moving Character to exact position using animation. 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