zoukankan      html  css  js  c++  java
  • Unity4.0的新的角色动画系统——MecAnim动画系统

    Unity希望逐步淘汰掉“Legacy animation system”(即4.0以前的版本所使用的动画系统),并将其合并到Mecanim动画系统中。所以建议做新游戏的时候尽量使用MecAnim动画系统。

    一、模型文件资源的制作和导出
    创建人形角色模型(humanoid character)的过程包括以下三步:
    1、建模(制作蒙皮网格)
     建模过程中注意以下几点:(1)注意建模软件和unity的缩放比,可以将模型导入unity后和一个标准cube(1m)进行大小对照
        (2)尽量将角色的根节点放置在脚下
        (3)导出模型的时候,检查并删除一些隐藏的点和面
    2、搭建骨骼
     对于人形模型(humanoid character),至少保证有15根骨骼
    3、蒙皮(将网格、骨骼进行绑定)
     在软绑定的时候,每个顶点最多受4根骨骼影响,因为这是Unity支持的上限。

    二、动作文件的导入方式
    1、模型中自带动作,即将模型和动作一起导出成为一个fbx文件,这种情况下,如果自带了多个动作,可以在unity中对animation进行分割命名;
    2、将模型和动作分开导出,并放在同一目录下,遵循“模型名@动作名”的命名规则;
    3、MecAnim的方式:
     (1)Create a New Animator Controller
     (2)Open the Animator Controller Window
     (3)Drag the desired animation clip into the Animator Controller Window
     (4)Drag the model asset into the Hierarchy.
     (5)Add the animator controller to the Animator component of the asset.

  • 相关阅读:
    最短路径BellmanFord , Dijsktra
    minhash
    eclipse 中使用tomcat
    http 服务
    MongoDB小记
    java post 请求
    hadoop拾遗(五)---- mapreduce 输出到多个文件 / 文件夹
    weka数据挖掘拾遗(二)---- 特征选择(IG、chi-square)
    weka数据挖掘拾遗(一)---- 生成Arff格式文件
    基于SimHash的微博去重
  • 原文地址:https://www.cnblogs.com/sifenkesi/p/3108733.html
Copyright © 2011-2022 走看看