Vehicle Graphics

From Burnout Wiki
Revision as of 06:33, 17 January 2021 by Burninrubber0 (talk | contribs) (Created page with "The Graphics resource is the central part of vehicle graphics bundles, superseded only by the GraphicsStub resource in the event a GraphicsStub exists. Its primary purpose...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Graphics resource is the central part of vehicle graphics bundles, superseded only by the GraphicsStub resource in the event a GraphicsStub exists. Its primary purpose is to import Model resources and set them up as vehicle parts.

Layout

GraphicsSpec
Offset Length Type Name Description Comments
0x0 0x4 uint32_t muVersion Spec version
0x4 0x4 uint32_t muPartsCount
0x8 0x4 Model** mppPartsModels Model indices Little endian indices on PS3/360?
0xC 0x4 uint32_t muShatteredGlassPartsCount
0x10 0x4 ShatteredGlassPart* mpShatteredGlassParts Shattered glass parts indices
0x14 0x4 Matrix44Affine* mpPartLocators
0x18 0x4 uint8_t* mpPartVolumeIDs
0x1C 0x4 uint8_t* mpNumRigidBodiesForPart
0x20 0x4 Matrix44Affine** mppRigidBodyToSkinMatrixTransforms
ShatteredGlassPart
Offset Length Type Name Description Comments
0x0 0x4 Model* mpModel
0x4 0x4 uint32_t muBodyPartIndex
0x8 0x4 uint32_t muBodyPartType