Instance List

From Burnout Wiki
Revision as of 07:51, 4 October 2023 by Burninrubber0 (talk | contribs) (Made example image larger and updated description.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
InstanceList
aka {{{othernames}}}

Track unit 203's InstanceList and its
component models viewed in Blender.
Resource names TRK_UNIT*_list
*Track unit ID
Type ID 0x23
Category Generic
Memory
distribution
Main Memory only
Imports 1 Model per instance
Imported by Unknown
Editor
available?
Viewer only
Use Blender addons

Instance lists are lists of models with their location in the world. It is the one of the top-level resource types used for track unit loading.

Structures

CgsGraphics::InstanceList

32-bit

Offset Size Type Name Description Comments
0x0 0x4 Instance* mpaInstances Instances
0x4 0x4 uint32_t muArraySize Total number of Instance entries
0x8 0x4 uint32_t muNumInstances Number of complete Instance entries From 0, the Instances with valid Transform fields.
0xC 0x4 uint32_t muVersionNumber Version number Always 1

64-bit

Offset Size Type Name Description Comments
0x0 0x8 Instance* mpaInstances Instances
0x8 0x4 uint32_t muArraySize Total number of Instance entries
0xC 0x4 uint32_t muNumInstances Number of complete Instance entries From 0, the Instances with valid Transform fields.
0x10 0x4 uint32_t muVersionNumber Version number Always 1

CgsGraphics::Instance

32-bit

Offset Size Type Name Description Comments
0x0 0x4 Model* mpModel
0x4 0x2 int16_t mi16BackdropZoneID
0x6 0x2 uint16_t mu16Pad Padding
0x8 0x4 uint32_t mu32Pad Padding
0xC 0x4 float32_t mfMaxVisibleDistanceSquared Unused?
0x10 0x40 Matrix44Affine mTransform

64-bit

Offset Size Type Name Description Comments
0x0 0x8 Model* mpModel
0x8 0x2 int16_t mi16BackdropZoneID
0xA 0x2 uint16_t mu16Pad Padding
0xC 0x4 uint32_t mu32Pad Padding
0x10 0x4 float32_t mfMaxVisibleDistanceSquared Unused?
0x14 0xC Padding
0x20 0x40 Matrix44Affine mTransform