Exemplo n.º 1
0
 internal void Read(BinaryReader reader)
 {
     FaceName = MMDMotion2.GetString(reader.ReadBytes(15));
     FrameNo  = BitConverter.ToUInt32(reader.ReadBytes(4), 0);
     //Wait = BitConverter.ToUInt32(reader.ReadBytes(4), 0);
     Rate = BitConverter.ToSingle(reader.ReadBytes(4), 0);
 }
Exemplo n.º 2
0
 internal void Read(BinaryReader reader, float CoordZ, float scale)
 {
     BoneName = MMDMotion2.GetString(reader.ReadBytes(15));
     FrameNo  = BitConverter.ToUInt32(reader.ReadBytes(4), 0);
     for (int i = 0; i < 3; i++)
     {
         Location[i] = BitConverter.ToSingle(reader.ReadBytes(4), 0) * scale;
     }
     for (int i = 0; i < 4; i++)
     {
         Quatanion[i] = BitConverter.ToSingle(reader.ReadBytes(4), 0);
     }
     for (int i = 0; i < 4; i++)
     {
         for (int j = 0; j < 4; j++)
         {
             for (int k = 0; k < 4; k++)
             {
                 Interpolation[i][j][k] = reader.ReadByte();
             }
         }
     }
     Location[2]  *= CoordZ;
     Quatanion[0] *= CoordZ;
     Quatanion[1] *= CoordZ;
 }