Actions

Object Faces Format: Difference between revisions

From Populous Wiki

No edit summary
No edit summary
 
(One intermediate revision 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.  
Object data is split into 60 bytes each block contains these parameters.  


Line 8: 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 Y1
    Single Y2
    Single Y3
     Single Y4
     Single Y4
     SByte PointOffsets1
     SByte PointOffsets1

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