Пример #1
0
 public CompressedMesh(Stream stream, uint version)
 {
     m_Vertices = new PackedBitVector(stream);
     m_UV       = new PackedBitVector(stream);
     if (version < AssetCabinet.VERSION_5_0_0)
     {
         m_BindPoses = new PackedBitVector(stream);
     }
     m_Normals      = new PackedBitVector(stream);
     m_Tangents     = new PackedBitVector(stream);
     m_Weights      = new PackedBitVector2(stream);
     m_NormalSigns  = new PackedBitVector2(stream);
     m_TangentSigns = new PackedBitVector2(stream);
     if (version >= AssetCabinet.VERSION_5_0_0)
     {
         m_FloatColours = new PackedBitVector(stream);
     }
     m_BoneIndices = new PackedBitVector2(stream);
     m_Triangles   = new PackedBitVector2(stream);
     if (version < AssetCabinet.VERSION_5_0_0)
     {
         m_Colors = new PackedBitVector2(stream);
     }
     else
     {
         BinaryReader reader = new BinaryReader(stream);
         m_UVInfo = reader.ReadUInt32();
     }
 }
Пример #2
0
        public void LoadFrom(Stream stream)
        {
            BinaryReader reader = new BinaryReader(stream);

            m_Path         = reader.ReadNameA4();
            m_Times        = new PackedBitVector2(stream);
            m_Values       = new PackedBitVector3(stream);
            m_Slopes       = new PackedBitVector(stream);
            m_PreInfinity  = reader.ReadInt32();
            m_PostInfinity = reader.ReadInt32();
        }
Пример #3
0
        public CompressedAnimationCurve(Stream stream)
        {
            BinaryReader reader = new BinaryReader(stream);

            m_Path         = reader.ReadNameA4U8();
            m_Times        = new PackedBitVector2(stream);
            m_Values       = new PackedBitVector3(stream);
            m_Slopes       = new PackedBitVector(stream);
            m_PreInfinity  = reader.ReadInt32();
            m_PostInfinity = reader.ReadInt32();
        }
Пример #4
0
 public void LoadFrom(Stream stream)
 {
     m_Vertices     = new PackedBitVector(stream);
     m_UV           = new PackedBitVector(stream);
     m_BindPoses    = new PackedBitVector(stream);
     m_Normals      = new PackedBitVector(stream);
     m_Tangents     = new PackedBitVector(stream);
     m_Weights      = new PackedBitVector2(stream);
     m_NormalSigns  = new PackedBitVector2(stream);
     m_TangentSigns = new PackedBitVector2(stream);
     m_BoneIndices  = new PackedBitVector2(stream);
     m_Triangles    = new PackedBitVector2(stream);
     m_Colors       = new PackedBitVector2(stream);
 }
Пример #5
0
 public CompressedMesh()
 {
     m_Vertices     = new PackedBitVector();
     m_UV           = new PackedBitVector();
     m_BindPoses    = new PackedBitVector();
     m_Normals      = new PackedBitVector();
     m_Tangents     = new PackedBitVector();
     m_Weights      = new PackedBitVector2();
     m_NormalSigns  = new PackedBitVector2();
     m_TangentSigns = new PackedBitVector2();
     m_BoneIndices  = new PackedBitVector2();
     m_Triangles    = new PackedBitVector2();
     m_Colors       = new PackedBitVector2();
 }
Пример #6
0
 public CompressedMesh(uint version)
 {
     m_Vertices = new PackedBitVector();
     m_UV       = new PackedBitVector();
     if (version < AssetCabinet.VERSION_5_0_0)
     {
         m_BindPoses = new PackedBitVector();
     }
     m_Normals      = new PackedBitVector();
     m_Tangents     = new PackedBitVector();
     m_Weights      = new PackedBitVector2();
     m_NormalSigns  = new PackedBitVector2();
     m_TangentSigns = new PackedBitVector2();
     if (version >= AssetCabinet.VERSION_5_0_0)
     {
         m_FloatColours = new PackedBitVector();
     }
     m_BoneIndices = new PackedBitVector2();
     m_Triangles   = new PackedBitVector2();
     if (version < AssetCabinet.VERSION_5_0_0)
     {
         m_Colors = new PackedBitVector2();
     }
 }
Пример #7
0
 public void LoadFrom(Stream stream)
 {
     m_Vertices = new PackedBitVector(stream);
     m_UV = new PackedBitVector(stream);
     m_BindPoses = new PackedBitVector(stream);
     m_Normals = new PackedBitVector(stream);
     m_Tangents = new PackedBitVector(stream);
     m_Weights = new PackedBitVector2(stream);
     m_NormalSigns = new PackedBitVector2(stream);
     m_TangentSigns = new PackedBitVector2(stream);
     m_BoneIndices = new PackedBitVector2(stream);
     m_Triangles = new PackedBitVector2(stream);
     m_Colors = new PackedBitVector2(stream);
 }
Пример #8
0
 public CompressedMesh()
 {
     m_Vertices = new PackedBitVector();
     m_UV = new PackedBitVector();
     m_BindPoses = new PackedBitVector();
     m_Normals = new PackedBitVector();
     m_Tangents = new PackedBitVector();
     m_Weights = new PackedBitVector2();
     m_NormalSigns = new PackedBitVector2();
     m_TangentSigns = new PackedBitVector2();
     m_BoneIndices = new PackedBitVector2();
     m_Triangles = new PackedBitVector2();
     m_Colors = new PackedBitVector2();
 }