Frame List Struct (RW Section)

From GTAMods Wiki
Revision as of 23:06, 1 August 2008 by Nikolayz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
{{{NAME}}}
RenderWare Stream Section
Vendor {{{VENDORNAME}}}
Module {{{MODULENAME}}}
Module ID 0x{{{MODULEID}}}
Identifier 0x{{{IDENTIFIER}}}
Chunk ID 0x{{{MODULEID}}}{{{IDENTIFIER}}}
Versions All
Hierarchy
Parents:
None
Children:
None
Extensions:
None
File Format

This article is about the Struct section accompanied by a Frame List parent section.

The Frame List Struct section can usually be found in model files used by the GTA III game trilogy. It provides information about the transfomations of the geometry parts.

Header

There is a 4 byte header which contains number of frames:

 4b - DWORD    - Number of frames

Frame Data

The header is followed with the specified number of frame descriptors (56 bytes each):

36b - FLOAT[3][3] - Rotation matrix
12b - FLOAT[3]    - Translation vector (X, Y, Z)
 4b - DWORD       - Index of the parent frame (0xFFFFFFFF means this frame has no parent)
 4b - DWORD       - Flags (undiscovered)