Exemplo n.º 1
0
            public Joints_3D(BinaryStream s)
            {
                Keys_Parent = s.Read<uint>();
                Keys_Child = s.Read<uint>();
                Keys_03 = s.Read<uint>();
                Keys_04 = s.Read<uint>();
                TypeCommands = s.Read<uint>();
                NameJoints = new string32(s);
                Joints_Parent_ROOT = new VertexAni4[Keys_Parent];
                Joints_Child = new VertexAni5[Keys_Child];
                Joints_Kadrs_03 = new VertexAni5[Keys_03];
                Joints_Kadrs_04 = new VertexAni5[Keys_04];

                for (int i = 0; i < Keys_Parent; i++)
                    Joints_Parent_ROOT[i] = new VertexAni4(s);

                for (int i = 0; i < Keys_Child; i++)
                    Joints_Child[i] = new VertexAni5(s);

                for (int i = 0; i < Keys_03; i++)
                    Joints_Kadrs_03[i] = new VertexAni5(s);

                for (int i = 0; i < Keys_04; i++)
                    Joints_Kadrs_04[i] = new VertexAni5(s);

                if (s.Position != s.Length)
                    Vertex = new Vertex4_6(s);
            }
Exemplo n.º 2
0
            uint Zero; //

            #endregion Fields

            #region Constructors

            public IMAGE_BONE_3D(BinaryStream s)
            {
                NumberOfBlock = s.Read<uint>();
                SizeOfBlock = s.Read<uint>();
                NameXSM = s.ReadRange<byte>(3);
                NumOfBlocks = s.Read<uint>();
                TypeOf3DRedactor = new RedactorMAX_MAYA(s);
                DataUnknow0 = s.Read<uint>();
                DataUnknow1 = s.Read<uint>();
                DataUnknow2 = s.Read<uint>();
                DataUnknow3 = s.Read<uint>();
                DataUnknow4 = s.Read<uint>();
                DataUnknow5 = s.Read<uint>();
                DataUnknow6_1 = s.Read<short>();
                DataUnknow6_2 = s.Read<byte>();
                DataUnknow6_3 = s.Read<byte>();
                Name3D_Redactor = new string32(s);
                PathFileOfWork = new string32(s);
                DateFileOfWork = new string32(s);
                Zero = s.Read<uint>();
                Command202 = s.Read<uint>();
                DataUnKnown = s.Read<uint>();
                Num_01 = s.Read<uint>();
                numJoints = s.Read<uint>();
                Primitive3D_Setup = new Vertex4_6(s);
                SkeletalAnimation = new Joints_3D[numJoints];
                for (int i = 0; i < numJoints; i++)
                    SkeletalAnimation[i] = new Joints_3D(s);
            }