Beispiel #1
0
        public void LoadFromStream(BinaryReader br)
        {
            this.BoneName    = VMDString.ReadString(br, 15);
            this.FrameNumber = br.ReadUInt32();
            this.Translation = PMXVector3.LoadFromStreamStatic(br);
            this.Rotation    = PMXQuaternion.LoadFromStreamStatic(br);

            this.Bezier = new byte[64];
            br.BaseStream.Read(this.Bezier, 0, 64);
        }
Beispiel #2
0
        public void LoadFromStream(BinaryReader br)
        {
            this.FrameNumber = br.ReadUInt32();
            this.Distance    = br.ReadSingle();
            this.Position    = PMXVector3.LoadFromStreamStatic(br);
            this.Rotation    = PMXVector3.LoadFromStreamStatic(br);
            this.Rotation.X *= (-1);

            this.Bezier = new byte[24];
            br.BaseStream.Read(this.Bezier, 0, 24);

            this.ViewAngle   = br.ReadUInt32();
            this.Perspective = (br.ReadByte() == 1);
        }
Beispiel #3
0
 public void LoadFromStream(BinaryReader br)
 {
     this.FrameNumber = br.ReadUInt32();
     this.Color       = PMXColorRGB.LoadFromStreamStatic(br);
     this.Location    = PMXVector3.LoadFromStreamStatic(br);
 }