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 EoinTrainor11 · Mar 06, 2018 at 10:12 AM · animationblenderimportingrigging

Blender animation on rigged character not the same in Unity...

Hey. My issue here is a walking animation I made on a rigged humanoid in Blender that appeared to be working fine in Blender with all the clothing layers, but when I import it as an fbx or blend file in Unity there is a minor difference in how the animated rig affects the clothing in Unity. The only area affected is a little area around the knees as you can see.

I have done a few animations from Blender into Unity and not had this problem yet so I am at a bit of a loss as to what to do here.

Thanks!

alt text

blendertounityanimationissue.jpg (420.0 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
1

Answer by meat5000 · Mar 06, 2018 at 10:30 AM

At that keyframe the cloth simply moves underneath the character mesh. You just need to fine tune it. Try adjusting the allowed error in the import options.

Comment
Add comment · Show 9 · 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 EoinTrainor11 · Mar 06, 2018 at 01:48 PM 0
Share

When you say the "allowed error" do you mean the options like position error found in the animation tab on the import settings? I've been playing about with things like anim.compression and the error values and have not seen any effect so far...

avatar image meat5000 ♦ EoinTrainor11 · Mar 06, 2018 at 07:08 PM 1
Share

Ok, then these things need to be tweaked in Blender. Try adding more keyframes around the problem area so Unity has less to interpret.

avatar image EoinTrainor11 · Mar 07, 2018 at 10:18 AM 0
Share

Ok, I did a bit of tweaking in Blender and added a lot of keyframes into the walking animation with no effect. Although I have a new theory. Is it possible that Unity does not import the weight painting in Blender 100% accurately?

To me it looks like the parts of the mesh intersecting is because the paint strength on it is somehow different in Unity than in Blender, because weight painting this on Blender in this is what I struggled with most in this process, so it is just about ok working in Blender but maybe not in Unity.

Also could it be something to do with the fact that this animation uses foot I$$anonymous$$ movement?

I have not worked much with humanoid animations in Unity as you can probably tell.

avatar image meat5000 ♦ EoinTrainor11 · Mar 07, 2018 at 10:27 AM 0
Share

Blender I$$anonymous$$ will not actually carry through to Unity. Its just a device in Blender to make animating easier. All that gets stripped out and the only thing thats important is the rig+weighting and $$anonymous$$eyframes. Unity will make its own interpretation of $$anonymous$$ost things. Even between keyframes it can end up handling things slightly differently.

If you find that rotations are not working correctly, often you need to check the Bone Axes; in particular to make sure the z-axis is pointing in the general direction of the bend motion e.g backwards out of the knees. You then need to recalculate the bone Roll for each subsequent bone calculated against the topmost parent of the limb. So you do legs, arms, fingers etc separately.

avatar image EoinTrainor11 meat5000 ♦ · Mar 07, 2018 at 12:31 PM 0
Share

I can confirm that the Z axis for the knee area is faxing the right way, I aligned all my bones based on the front view axis so they are all facing that way. alt text

When you say "recalculate the bone roll for each subsequent bone calculated against the topmost parent of the limb", do you mean that you need to have like a consistent bone roll for all the bones in the limb based off the top level bone yes? $$anonymous$$y upper and lower leg bones in both legs have the same bone roll. $$anonymous$$aybe I should play about with that and see if anything happens?

alt text

monkroll.jpg (399.4 kB)
monkroll3.jpg (261.5 kB)
Show more comments
Show more comments
avatar image
0

Answer by EoinTrainor11 · Mar 08, 2018 at 10:42 AM

I do have this working now but I'm not sure exactly how I did it. The thing that changed it was the Skinned Mesh Renderer Component, the quality on it needed to be set to 4. Other factors that I believe also influenced it was the Z axis direction of the bones on Blender as suggested and setting the animation compression off.

I think it just needed a bit of tinkering in a couple of areas but that's what I'd take a look at if you are stuck! alt text


monkroll6.jpg (80.7 kB)
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

210 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 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 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

[HELP] Rigify to Unity in 2022 0 Answers

Proper Unity and Blender Weapon Rigging and Animation 0 Answers

Need help figuring out importing animations from blender 0 Answers

How to fix main camera moving with animation of parent player object? 1 Answer

Good resources for animating game characters 1 Answer


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