public override void ReadData(GrnBinaryReader reader, int directoryOffset) { reader.Seek((int)(this.Offset + directoryOffset), SeekOrigin.Begin); this.BoneIndex = reader.ReadInt32(); this.Unknown = reader.ReadSingle(); this.OBBMin = reader.ReadVector3D(); this.OBBMax = reader.ReadVector3D(); }
public override void ReadData(GrnBinaryReader reader, int directoryOffset) { reader.Seek((int)(this.Offset + directoryOffset), SeekOrigin.Begin); this.BoneIndex = reader.ReadInt32(); this.Unknown = reader.ReadSingle(); this.OBBMin = reader.ReadVector3D(); this.OBBMax = reader.ReadVector3D(); }
public override void ReadData(GrnBinaryReader reader, int directoryOffset) { reader.Seek((int)(this.Offset + directoryOffset), SeekOrigin.Begin); for (int i = 0; i < this.GetReadDataLength() / 12; ++i) { this.Normals.Add(reader.ReadVector3D()); } }
public override void ReadData(GrnBinaryReader reader, int directoryOffset) { reader.Seek((int)(this.Offset + directoryOffset), SeekOrigin.Begin); for (int i = 0; i < this.GetReadDataLength() / 12; ++i) { this.Vertices.Add(reader.ReadVector3D()); } }
public override void ReadData(GrnBinaryReader reader, int directoryOffset) { reader.Seek((int)(this.Offset + directoryOffset), SeekOrigin.Begin); this.Unknown = reader.ReadInt32(); // maybe count for whether its UV or UVW for (int i = 0; i < this.GetReadDataLength() / 12; ++i) { this.TextureCoordinates.Add(reader.ReadVector3D()); } }
public override void ReadData(GrnBinaryReader reader, int directoryOffset) { reader.Seek((int)(this.Offset + directoryOffset), SeekOrigin.Begin); this.Unknown = reader.ReadInt32(); // maybe count for whether its UV or UVW for (int i = 0; i < this.GetReadDataLength() / 12; ++i) { this.TextureCoordinates.Add(reader.ReadVector3D()); } }
public override void ReadData(GrnBinaryReader reader, int directoryOffset) { reader.Seek((int)(this.Offset + directoryOffset), SeekOrigin.Begin); this.ParentIndex = reader.ReadInt32(); this.Position = reader.ReadVector3D(); this.Rotation = reader.ReadQuaternion(); this.Scale = reader.ReadMatrix3x3(); if (this.GetReadDataLength() != this.GetWriteDataLength()) throw new Exception("bbb"); }
public override void ReadData(GrnBinaryReader reader, int directoryOffset) { reader.Seek((int)(this.Offset + directoryOffset), SeekOrigin.Begin); this.ParentIndex = reader.ReadInt32(); this.Position = reader.ReadVector3D(); this.Rotation = reader.ReadQuaternion(); this.Scale = reader.ReadMatrix3x3(); if (this.GetReadDataLength() != this.GetWriteDataLength()) { throw new Exception("bbb"); } }
public override void ReadData(GrnBinaryReader reader, int directoryOffset) { reader.Seek((int)(this.Offset + directoryOffset), SeekOrigin.Begin); this.TransformChannelIndex = reader.ReadInt32(); if (this.PreviousSibling != null && ((GrnAnimationTransformTrackKeysNode)this.PreviousSibling).TransformChannelIndex == this.TransformChannelIndex) { return; } // read 5 unknowns for (int i = 0; i < 5; ++i) { this.Unknown[i] = reader.ReadInt32(); } int numPositions = reader.ReadInt32(); int numRotations = reader.ReadInt32(); int numTransforms = reader.ReadInt32(); // read 4 unknowns for (int i = 0; i < 4; ++i) { this.Unknown2[i] = reader.ReadInt32(); } for (int i = 0; i < numPositions; ++i) { this.PositionKeys.Add(reader.ReadSingle()); } for (int i = 0; i < numRotations; ++i) { this.RotationKeys.Add(reader.ReadSingle()); } for (int i = 0; i < numTransforms; ++i) { this.ScaleKeys.Add(reader.ReadSingle()); } for (int i = 0; i < numPositions; ++i) { this.Positions.Add(reader.ReadVector3D()); } for (int i = 0; i < numRotations; ++i) { this.Rotations.Add(reader.ReadQuaternion()); } for (int i = 0; i < numTransforms; ++i) { this.Scales.Add(reader.ReadMatrix3x3()); } }
public override void ReadData(GrnBinaryReader reader, int directoryOffset) { reader.Seek((int)(this.Offset + directoryOffset), SeekOrigin.Begin); this.TransformChannelIndex = reader.ReadInt32(); if (this.PreviousSibling != null && ((GrnAnimationTransformTrackKeysNode)this.PreviousSibling).TransformChannelIndex == this.TransformChannelIndex) { return; } // read 5 unknowns for (int i = 0; i < 5; ++i) { this.Unknown[i] = reader.ReadInt32(); } int numPositions = reader.ReadInt32(); int numRotations = reader.ReadInt32(); int numTransforms = reader.ReadInt32(); // read 4 unknowns for (int i = 0; i < 4; ++i) { this.Unknown2[i] = reader.ReadInt32(); } for (int i = 0; i < numPositions; ++i) { this.PositionKeys.Add(reader.ReadSingle()); } for (int i = 0; i < numRotations; ++i) { this.RotationKeys.Add(reader.ReadSingle()); } for (int i = 0; i < numTransforms; ++i) { this.ScaleKeys.Add(reader.ReadSingle()); } for (int i = 0; i < numPositions; ++i) { this.Positions.Add(reader.ReadVector3D()); } for (int i = 0; i < numRotations; ++i) { this.Rotations.Add(reader.ReadQuaternion()); } for (int i = 0; i < numTransforms; ++i) { this.Scales.Add(reader.ReadMatrix3x3()); } }