分析 tiny.x 让你彻底了解微软动画的组成!!!

xof 0303txt 0032//文件类型 版本&格式 数值表示方法(32位浮点)
template XSkinMeshHeader {//
 <3cf169ce-ff7c-44ab-93c0-f78f62d172e2>//模板 UUID
 WORD nMaxSkinWeightsPerVertex;
 WORD nMaxSkinWeightsPerFace;
 WORD nBones;
}

template VertexDuplicationIndices {
 <b8d65549-d7c9-4995-89cf-53a9a8b031e3>
 DWORD nIndices;
 DWORD nOriginalVertices;
 array DWORD indices[nIndices];
}

template SkinWeights {
 <6f0d123b-bad2-4167-a0d0-80224f25fabb>
 STRING transformNodeName;
 DWORD nWeights;
 array DWORD vertexIndices[nWeights];
 array FLOAT weights[nWeights];
 Matrix4x4 matrixOffset;
}


Frame Scene_Root {//框架  名称
 

 FrameTransformMatrix { // 变换矩阵
  1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;
 }

 Frame body {
 

  FrameTransformMatrix {
   1.278853,0.000000,-0.000000,0.000000,0.000000,0.000000,1.123165,0.000000,0.000000,-1.470235,0.000000,0.000000,0.135977,2.027985,133.967667,1.000000;;
  }

  Frame {
  

   FrameTransformMatrix {
    1.000000,-0.000000,-0.000000,0.000000,-0.000000,1.000000,0.000000,0.000000,-0.000000,0.000000,1.000000,0.000000,-0.142114,0.000023,-49.556850,1.000000;;
   }

   Mesh {
    4432;点的个数
    -34.720058;-12.484819;48.088928;,
 .....//4432 行,对应每一个点坐标
    -30.350075;-31.719879;45.630089;;
    6841;面的个数
    3;28,62,1;,
.....//6841行,对应每一个面的组成点
    3;61,0,4431;;

    MeshNormals {
     4432;//点的法向量
     -0.989571;-0.011953;-0.143551;,
     -0.914875;-0.152402;-0.373869;;
     6841;//面的法向量,给出计算索引
     3;28,62,1;,
 ......
     3;61,0,4431;;
    }

    MeshTextureCoords {
     4432;//纹理坐标,每个点的
     0.551713;0.158481;,
 .... //共4432行,对应4432点的纹理坐标,因为有可能一个点可能有多个面共享,所有就有多个纹理坐标
     0.551922;0.238188;;
    }

    VertexDuplicationIndices { //重复点索引
     4432;//总点数
     3420;//实际点数
     0,
     1,
     2,
     ......//共4432行,每行对应的实际点
     3419;
    }

    MeshMaterialList {
     1; //材质数量
     6841;//面数量
     0,
     .....共6841行,对应6841个面的材质
     0;

     Material { //材质
      1.000000;1.000000;1.000000;1.000000;;
      0.000000;
      1.000000;1.000000;1.000000;;
      0.000000;0.000000;0.000000;;

      TextureFilename {//纹理贴图
         "Tiny_skin.bmp";
      }
     }
    } //网格定义结束

    XSkinMeshHeader {//蒙皮头
     2; //影响一个点最大骨骼数(变换矩阵)
     4;//影响一个面最大骨骼数(变换矩阵),一个面有3个点,可能是3*上面的数
     35;//骨骼数量,(变换矩阵的数量)
    }

    SkinWeights {//骨骼重量
     "Bip01_R_UpperArm";//名称,与Frame对应
     156;//影响点的个数
     1
     ..... //156个点
     1738;
     0.605239,
     ..... //156个骨重
     0.979129;
    .. //骨骼变换矩阵
     -0.941743,-0.646748,0.574719,0.000000,-0.283133,-0.461979,-0.983825,0.000000,0.923060,-1.114919,0.257891,0.000000,-65.499557,30.497688,12.852692,1.000000;;
    }
    .......共35个SkinWeights  
   }
  }
 }

 Frame Box01 {
 

  FrameTransformMatrix {
   -1.000000,0.000000,-0.000000,0.000000,-0.000000,0.000000,1.000000,0.000000,0.000000,1.000000,0.000000,0.000000,-88.696747,-246.341751,858.815247,1.000000;;
  }

  Frame Bip01 {
  

   FrameTransformMatrix {
    0.186552,-0.974653,0.123489,0.000000,0.982171,0.187991,0.000000,0.000000,-0.023215,0.121288,0.992346,0.000000,-88.977890,-857.346008,247.541595,1.000000;;
   }

   Frame Bip01_Footsteps {
   

    FrameTransformMatrix {
     0.186552,0.982171,-0.023215,0.000000,-0.974653,0.187991,0.121288,0.000000,0.123489,-0.000000,0.992346,0.000000,-31.624149,0.000000,-254.128143,1.000000;;
    }
   }
 }
 .........余下省略
 .......框架矩阵,支撑mesh,与骨骼变换矩阵联合完成蒙皮效果.
}

AnimationSet {
 

 Animation {
 

  AnimationKey {
   4; //变换类型 0-旋转 1-放缩 2-平移 4-变换矩阵
   2; //动画数量
   0;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;,
   4960;16;1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;;
  }
  { Scene_Root }
 }

 Animation {
 

  AnimationKey {
   4;
   2;
   0;16;1.278853,0.000000,-0.000000,0.000000,0.000000,0.000000,1.123165,0.000000,0.000000,-1.470235,0.000000,0.000000,0.135977,2.027985,133.967667,1.000000;;,
   4960;16;1.278853,0.000000,-0.000000,0.000000,0.000000,0.000000,1.123165,0.000000,0.000000,-1.470235,0.000000,0.000000,0.135977,2.027985,133.967667,1.000000;;;
  }
  { body }
 }

 Animation {
 

  AnimationKey {
   4;
   62;
   0;16;-1.000000,0.000000,-0.000000,0.000000,-0.000000,0.000000,1.000000,0.000000,0.000000,1.000000,0.000000,0.000000,-88.696747,-245.951797,351.625824,1.000000;;,
    ....共62行,动画转换矩阵 
   4960;16;-1.000000,0.000000,-0.000000,0.000000,-0.000000,0.000000,1.000000,0.000000,0.000000,1.000000,0.000000,0.000000,-88.696747,-245.951797,351.625824,1.000000;;;
  }
  { Box01 }
 }

 Animation {
 

  AnimationKey {
   4;
   62;
   0;16;0.215193,-0.969920,0.113783,0.000000,0.976260,0.216600,-0.000000,0.000000,-0.024646,0.111082,0.993506,0.000000,-88.995270,-350.280182,247.734116,1.000000;;,
    ....共62行,动画转换矩阵 
   4960;16;0.215193,-0.969920,0.113783,0.000000,0.976260,0.216600,-0.000000,0.000000,-0.024646,0.111082,0.993506,0.000000,-88.995270,-350.280182,247.734116,1.000000;;;
  }
  { Bip01 }
.........余下省略
 }

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
压缩包中包含如下动作列表(共37个目录下500个BIP动作): 01 Sitting in chair and talking 坐在椅子上谈话(4 motions) 02 Sitting in chair and drinking 坐在椅子上饮水 (3 motions) 03 Sitting to standing 从座着到站立(7 motions) 04 Walk in, sit down 行走,坐下(23 motions) 05 Seated Conversations 坐着交谈(6 motions) 06 Walk and run cycles 走和跑圈(44 motions) 07 Transitions 转变-慢到快(4 motions) 08 Walking with Large Box 搬大箱子(4 motions) 09 Walking with limp 上坡(13 motions) 10 Walking with hands in pockets 提着袋子走路(21 motions) 11 Walking with cane 拄着拐杖行走(4 motions) 12 Walking with parasol 撑着阳伞(女)行走(10 motions) 13 Walks with umbrella 撑着雨伞行走(9 motions) 14 Character walks 行走特征(18 motions) 15 Character walks and runs 走和跑特征(34 motions) 16 Walk in, negotiate obstacle, walk out 行走,通过障碍(26 motions) 17 Carrying bags and weights 提着重物行走(49 motions) 18 Blind person 盲人(4 motions) 19 Drunken adults 醉酒-成人(9 motions) 20 Drunken teenagers 醉酒-孩子(8 motions) 21 Disabilities-Crutches 双手拐杖(22 motions) 22 Bunny Girl 可爱女郎(13 motions) 23 Walking and lying down 走路并躺下(6 motions) 24 Sweeping with broom 用扫帚清洗(11 motions) 25 Scrubbing Floor 擦地板(2 motions) 26 Various kneeling and bowing 各种跪和鞠躬(7 motions) 27 Ambient moves 四周移动(35 motions) 28 Picking Things Up 捡东西(9 motions) 29 Opening Doors 开门(16 motions) 30 Standing Conversations, Addresses 站着交谈(9 motions) 31 Office 办公室(3 motions) 32 Dancing 跳舞(6 motions) 33 Sport Moves 运动(15 motions) 34 Driving 驾驶(7 motions) 35 Manual Labor 手工劳动(17 motions) 36 Gym Characters 体育馆项目(12 motions) 37 Throwing and catching 抓和扔(10 motions)
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值