Actions

Object Faces Format

From Populous Wiki

Revision as of 12:48, 8 October 2014 by Brandan Tyler Lasley (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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