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 Maria Chernykh · May 17, 2013 at 01:18 PM · animationmecanimlayersblending

Mecanim layers blending

Hi there, I am using Unity 4.1.2f1 and working with Mecanim. What I'm trying to do is to realize weapon aiming with the help of 2D Blending. My current animator has a layer for LowerBody and a layer for UpperBody alt text. LowerBody layer is responsive for basic locomotion: runnyng, jumping, etc. UpperBody layer is currently responsive for weapon aiming . Also, upper layer has a Body Mask (its configuration is shown on the screenshot alt text). What I'm trying to acheive is that aiming with fixed parameters for 2D blending will give the same result in every locomotion state. But I've got a problem now: the aiming degree is different for different poses (because of the root bone rotation if I understand correctly). Does anybody know how to get this scheme to work? Any help would be appreciated, for me it's the question of life and death! Thanks in advance.

animatorlayerssettings.png (12.3 kB)
upperlayermasking1.png (24.2 kB)
Comment
Add comment · Show 10
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 Maria Chernykh · May 17, 2013 at 01:19 PM 0
Share

This is lower layer state machine alt text this is upeer layer alt text

lowerbodylayer.png (64.4 kB)
upperbodylayersettings.png (39.0 kB)
avatar image Maria Chernykh · May 17, 2013 at 01:19 PM 0
Share

This is 2D blending configuration alt text

2dblendingsettings.png (127.4 kB)
avatar image TonyLi · May 17, 2013 at 02:53 PM 0
Share

Can you show the animation import settings for one of the ai$$anonymous$$g animations? It might work if you set that to Bake into Pose and Original. It might force it to use the original orientation in the source animation file. Then again, it will probably just apply it to the spine rotation because of the upper body mask.

If you have Pro, you could use I$$anonymous$$ to fix up the aim direction in OnAnimatorI$$anonymous$$().

avatar image Maria Chernykh · May 17, 2013 at 03:09 PM 0
Share

Thank you very much, TonyLi, you are always there to help me:) Here are my settings: alt text I think it doesn't work because it's the pose animation, not the movement. So when I check "Bake into pose" the rotation is already there. And what about the ik, can I somehow use it not to destroy my aimpose, just to make it a little bit more precise? I don't know much about ik and I afraid that it can ruin the realistic look of the pose. Am I wrong?

avatar image TonyLi · May 17, 2013 at 03:40 PM 0
Share

The link didn't come through.

If it's just a little bit of adjustment, I$$anonymous$$ should look fine.

Here's an idea. It's not ideal, but it might work. You could define two copies of each aim animation. Both copies would use the same Start and End frame numbers. But you could bake a rotation into the second copy that would counteract the pose rotation of the locomotion state that's causing trouble.

Then, when you're in that locomotion state, you could use the second copy of the aim animations. If you have Pro, you could do this with Sync Layers.

That's all I got. Hopefully someone else has some better ideas. :-)

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

15 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

Related Questions

Mecanim : use mask only in certain conditions 0 Answers

Adding an eyeblink animation layer 0 Answers

Freezing 1 Animation Layer while Another layer is still playing.... 2 Answers

Mecanim and additive animation blending 2 Answers

addmixing Transform frustration. Would appreciate some guidance. 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