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
1
Question by ronniell4063 · Apr 10, 2010 at 01:40 PM · animationtransformlayersblendingaddmixing

addmixing Transform frustration. Would appreciate some guidance.

Before I get trashed please understand that I'm a farmer by trade, not a programmer. The last full program I wrote was in the 1980's in DOS on an Apple IIe. I don't have a problem with animation where it just involves blending from one animation to another but additive animations are killing me. I have a character model in Blender containing a simple armature. I have deleted all IK constraints. Nothing left but a-bone connected to b-bone... etc. with COG being base of the spine. I have gotten close using additive blending but things still get "floppy", or don't animate fully so I would like the try using the addmixing Transform.

What I'm asking is for someone who really understands the concept, to assume the usage of a simple armature and, to write a short, simple, generic script example of how to use the addmixing Transform function to allow an upper body animation to over-ride a full body animation. I have studied the script reference but have been unable to incorporate it into a full script.

As an alternative, if anyone knows of a good example, a point in the right direction would be much appreciated. I have found example scripts for many things, but not this specifically.

"Thanks" in advance for any input.

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

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Molix · Apr 12, 2010 at 04:36 PM

Assign the armature animation to a higher layer than the full body animation. Animations in higher layers get their weight applied when blending.

e.g.

animation["MyArmAnim"].layer = 2; animation["Walk"].layer = 1;

animation["MyArmAnim"].wrapMode = WrapMode.Once; animation["Walk"].wrapMode = WrapMode.Loop;

animation.Play("Walk"); animation.Blend("MyArmAnim");

The walk cycle should start playing (and keep playing), but the arm animation should override whatever bones/verts it affects (presumably the arms) until it has played once, at which point the walk cycle should continue.

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 Paulius-Liekis · Apr 12, 2010 at 01:48 PM

This resource is a good start: http://unity3d.com/support/resources/example-projects/3rdpersonshooter

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 MaDDoX · Jul 22, 2010 at 11:51 AM

The main point to keep in mind for dealing with animations is that no type of animation blending will give you "IK compensation" inside Unity, so it's easy to get things looking wrong very easily, as you mix animations. One option to alleviate this is to use the Locomotion system for Unity which has its own IK system, it's free, very easy to setup and offer really amazing results. As for your specific question, check if my reply here helps:

http://answers.unity3d.com/questions/9368/how-to-make-an-animation-at-a-higher-layer-only-affect-the-upper-body/16091#16091

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 phakscion · Aug 24, 2011 at 03:26 PM 0
Share

$$anonymous$$aDDoX link changed, new one's here in case it's needed.

http://answers.unity3d.com/questions/16626/how-to-make-an-animation-at-a-higher-layer-only-af.html

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

1 Person is following this question.

avatar image

Related Questions

Chaining Animations Above Layer Zero 0 Answers

Add mixing transform to some parent transforms but not specific children? 0 Answers

AddMixingTransform Help 0 Answers

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

Mecanim layers blending 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