Model: Difference between revisions

1,420 bytes added ,  1 year ago
Update for wiki display.
(Created page with "=== Model === {| class="wikitable" ! Offset !! Size !! Type !! Name !! Description !! More Information !! Comments |- | 0x0 || 0x4 || Renderable * * || mppRenderables || || || |- | 0x4 || 0x4 || uint8_t * || mpu8StateRenderableIndices || Pointer to renderable index || || |- | 0x8 || 0x4 || float32_t * || mpfLodDistances || || || Num same as Num Renderables |- | 0xC || 0x4 || int32_t || miGameExplorerIndex || || || Always null? |- | 0x10 || 0x1 || uint8_t || mu8N...")
 
(Update for wiki display.)
Line 1:
Model resources are the joining type for [[Renderable]] resources, which contain the actual 3D data.
=== Model ===
 
= Structures =
=== CgsGraphics::Model ===
==== Model32-bit ====
{| class="wikitable"
! Offset !! SizeLength !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x4 || [[Renderable ]]* * || mppRenderables || || ||
|-
| 0x4 || 0x4 || uint8_t * || mpu8StateRenderableIndices || PointerRenderable tostate renderable indexindices || See [[#CgsGraphics::Model::State || State]]
|-
| 0x8 || 0x4 || float32_t * || mpfLodDistances || || Same ||value Numas same asnumber Numof Renderablesstates
|-
| 0xC || 0x4 || int32_t || miGameExplorerIndex || || || Always null?
|-
| 0x10 || 0x1 || uint8_t || mu8NumRenderables || || ||
|-
| 0x11 || 0x1 || uint8_t || mu8Flags || 0x01 (Bit 0) = ? || ||
|-
| 0x12 || 0x1 || uint8_t || mu8NumStates || || || Usually same as numnumber of renderablesRenderables
|-
| 0x13 || 0x1 || uint8_t || mu8VersionNumber || || Always 2 ||
|}
 
==== PS464-bit ====
=== Model ===
{| class="wikitable"
! Offset !! SizeLength !! Type !! Name !! Description !! More Information !! Comments
|-
| 0x0 || 0x8 || [[Renderable ]]* * || mppRenderables || || ||
|-
| 0x8 || 0x8 || uint8_t * || mpu8StateRenderableIndices || PointerRenderable tostate renderable indexindices || See [[#CgsGraphics::Model::State || State]]
|-
| 0x10 || 0x8 || float32_t * || mpfLodDistances || || Same ||value Numas same asnumber Numof Renderablesstates
|-
| 0x18 || 0x4 || int32_t || miGameExplorerIndex || || || Always null?
|-
| 0x1C || 0x1 || uint8_t || mu8NumRenderables || || ||
|-
| 0x1D || 0x1 || uint8_t || mu8Flags || 0x01 (Bit 0) = ? || ||
|-
| 0x1E || 0x1 || uint8_t || mu8NumStates || || || Usually same as numnumber of renderablesRenderables
|-
| 0x1F || 0x1 || uint8_t || mu8VersionNumber || || Always 2 ||
|}
 
= Enumerations =
=== CgsGraphics::Model::State ===
{| class="wikitable"
! Name !! Value !! Comments
|-
| E_STATE_LOD_0 || 0x0 ||
|-
| E_STATE_LOD_1 || 0x1 ||
|-
| E_STATE_LOD_2 || 0x2 ||
|-
| E_STATE_LOD_3 || 0x3 ||
|-
| E_STATE_LOD_4 || 0x4 ||
|-
| E_STATE_LOD_5 || 0x5 ||
|-
| E_STATE_LOD_6 || 0x6 ||
|-
| E_STATE_LOD_7 || 0x7 ||
|-
| E_STATE_LOD_8 || 0x8 ||
|-
| E_STATE_LOD_9 || 0x9 ||
|-
| E_STATE_LOD_10 || 0xA ||
|-
| E_STATE_LOD_11 || 0xB ||
|-
| E_STATE_LOD_12 || 0xC ||
|-
| E_STATE_LOD_13 || 0xD ||
|-
| E_STATE_LOD_14 || 0xE ||
|-
| E_STATE_LOD_15 || 0xF ||
|-
| E_STATE_GAME_SPECIFIC_0 || 0x10 ||
|-
| E_STATE_GAME_SPECIFIC_1 || 0x11 ||
|-
| E_STATE_GAME_SPECIFIC_2 || 0x12 ||
|-
| E_STATE_GAME_SPECIFIC_3 || 0x13 ||
|-
| E_STATE_GAME_SPECIFIC_4 || 0x14 ||
|-
| E_STATE_GAME_SPECIFIC_5 || 0x15 ||
|-
| E_STATE_GAME_SPECIFIC_6 || 0x16 ||
|-
| E_STATE_GAME_SPECIFIC_7 || 0x17 ||
|-
| E_STATE_GAME_SPECIFIC_8 || 0x18 ||
|-
| E_STATE_GAME_SPECIFIC_9 || 0x19 ||
|-
| E_STATE_GAME_SPECIFIC_10 || 0x1A ||
| 0x0 || 0x8 || Renderable * * || mppRenderables || || ||
|-
| E_STATE_GAME_SPECIFIC_11 || 0x1B ||
| 0x8 || 0x8 || uint8_t * || mpu8StateRenderableIndices || Pointer to renderable index || ||
|-
| E_STATE_GAME_SPECIFIC_12 || 0x1C ||
| 0x10 || 0x8 || float32_t * || mpfLodDistances || || || Num same as Num Renderables
|-
| E_STATE_GAME_SPECIFIC_13 || 0x1D ||
| 0x18 || 0x4 || int32_t || miGameExplorerIndex || || || Always null?
|-
| E_STATE_GAME_SPECIFIC_14 || 0x1E ||
| 0x1C || 0x1 || uint8_t || mu8NumRenderables || || ||
|-
| E_STATE_GAME_SPECIFIC_15 || 0x1F ||
| 0x1D || 0x1 || uint8_t || mu8Flags || 0x01 (Bit 0) = ? || ||
|-
| E_STATE_INVALID || 0x20 ||
| 0x1E || 0x1 || uint8_t || mu8NumStates || || || Usually same as num renderables
|-
| E_STATE_COUNT || 0x20 ||
| 0x1F || 0x1 || uint8_t || mu8VersionNumber || || Always 2 ||
|}