예제 #1
0
파일: Mesh.cs 프로젝트: kkdevs/sb3u
 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
파일: Mesh.cs 프로젝트: kkdevs/sb3u
 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
파일: Mesh.cs 프로젝트: hejob/SB3Utility
 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
파일: Mesh.cs 프로젝트: hejob/SB3Utility
 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();
 }