查看: 2964|回复: 0
打印 上一主题 下一主题

[Unity 组件参考手册]组件:动画组件之Avatar 身体遮罩

[复制链接]
.    

3797

主题

11

听众

5万

积分

首席设计师

Rank: 8Rank: 8

纳金币
32328
精华
41

活跃会员 优秀版主 荣誉管理 论坛元老

跳转到指定楼层
楼主
发表于 2013-1-24 17:23:26 |只看该作者 |倒序浏览
Specific body parts can be selectively enabled or disabled in an animation using a so-called Body Mask. Body masks are used in the Animation tab of the mesh import inspector and Animation Layers. Body masks enable you to tailor an animation to fit the specific requirements of your character more closely. For example, you may have a standard walking animation that includes both arm and leg motion, but if a character is carrying a large object with both hands then you wouldn't want his arms to swing by his sides as he walks. However, you could still use the standard walking animation by switching off the arm movements in the body mask.通过身体遮罩可以对动画里面特定的身体部位进行激活或禁止。在网格导入观察器和动画层的动画标签里面可以设置身体遮罩。身体遮罩让您能根据角色需求精确的裁剪动画。例如,您有一个常见的行走动画,包括手臂和腿的动作,但是如果现在一个角色的双手举着巨大的物体,您当然不会希望她在行走的时候手臂来回摆动。当然,您可以通过身体遮罩的切换,继续使用常规的行走动画。The body parts included are: Head, Left Arm, Right Arm, Left Hand, Right Hand, Left Leg, Right Leg and Root (which is denoted by the "shadow" under the feet). In the body mask, you can also toggle inverse kinematics (IK) for hands and feet, which will determine whether or not IK curves will be included in animation blending.身体部位包括:头、左手臂、右手臂、左手、右手、左腿、右腿、Root (以脚的背面作为标志)。在身体遮罩界面,您可以给手或脚指定是否需要IK(反向运动学),由此可决定在动画混合里面是否包括IK曲线。    Click the avatar section to toggle inclusion or exclusion (green/red)
    点击Avatar部位,以触发包括或不包括(绿色/红色)
    Double click in empty space surrounding the avatar to toggle all
    在avatar周围空白处双击可以翻转所有部位的状态 Body mask in the Body Mask inspector (arms excluded)
在身体遮罩观察器里面的身体遮罩(不包括手臂)In the Animation tab of the mesh import inspector, you will see a list entitled Clips that contains all the object's animation clips. When you select an item from this list, options for the clip will be shown, including the body mask editor.在网格导入观察器的动画标签里,您会看到一个叫做Clips的列表,里面有当前对象的所有动画剪辑。当您从列表中选择一个条目,会显示这个剪辑的选项,其中包括身体遮罩编辑器。You can also create Body Mask Assets (Assets->Create->Avatar Body Mask), which show up as .mask files on disk.您也可以通过Assets->Create->Avatar Body Mask菜单创建身体遮罩资源,在磁盘上的后缀名是.mask。The BodyMask assets can be reused in Animator Controllers, when specifying Animation Layers身体遮罩资源可以在动画控制器中重用,在指定动画层的时候。A benefit of using body masks is that they tend to reduce memory overheads since body parts that are not active do not need their associated animation curves. Also, the unused curves need not be calculated during playback which will tend to reduce the CPU overhead of the animation.使用动画遮罩的益处是可以减少内存消耗,因为不活跃的身体部位就不需要和它关联的动画曲线。同时,没使用的动画曲线也不会在播放动画的时候来计算,这样就减少了动画的CPU消耗。
【来源:互联网】
更多精彩教程,尽在web3D纳金网http://www.narkii.com/college/
分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2024-11-15 08:28 , Processed in 0.296056 second(s), 32 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部