Object Faces Format: Difference between revisions
From Populous Wiki
(Created page with " Int16 CurrNormalIdx Int16 TextureIdx UInt16 Flags Byte NumPoints SByte PolyDrawMode Single X1 Single X2 Single X3 Single X4 S...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
All numbers are stored in big-endian format! | |||
Object data is split into 60 bytes each block contains these parameters. | |||
=== Block Format === | |||
Int16 CurrNormalIdx | Int16 CurrNormalIdx | ||
Int16 TextureIdx | Int16 TextureIdx | ||
Line 5: | Line 10: | ||
SByte PolyDrawMode | SByte PolyDrawMode | ||
Single X1 | Single X1 | ||
Single Y1 | |||
Single X2 | Single X2 | ||
Single Y2 | |||
Single X3 | Single X3 | ||
Single Y3 | |||
Single X4 | Single X4 | ||
Single Y4 | Single Y4 | ||
SByte PointOffsets1 | SByte PointOffsets1 | ||
Line 24: | Line 29: | ||
SByte BucketAdj | SByte BucketAdj | ||
Byte BldgConstructFlags | Byte BldgConstructFlags | ||
All parameters must be read in this exact order |
Latest revision as of 13:48, 8 October 2014
All numbers are stored in big-endian format!
Object data is split into 60 bytes each block contains these parameters.
Block Format
Int16 CurrNormalIdx Int16 TextureIdx UInt16 Flags Byte NumPoints SByte PolyDrawMode Single X1 Single Y1 Single X2 Single Y2 Single X3 Single Y3 Single X4 Single Y4 SByte PointOffsets1 SByte PointOffsets2 SByte PointOffsets3 SByte PointOffsets4 Byte BaseNormalIdxs1 Byte BaseNormalIdxs2 Byte BaseNormalIdxs3 Byte BaseNormalIdxs4 Byte UVCursorInfo Byte General SByte BucketAdj Byte BldgConstructFlags
All parameters must be read in this exact order