Difference between revisions of "Sims 3:0x01D10F34"
From SimsWiki
(→Object Model LOD) |
|||
Line 29: | Line 29: | ||
[[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]] | [[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]] | ||
<br/>[[Sims 3:Main Page]] -> [[Sims 3:RCOL]] | <br/>[[Sims 3:Main Page]] -> [[Sims 3:RCOL]] | ||
+ | |||
+ | Based on contributions from karybdis and atavera |
Revision as of 06:28, 29 July 2009
Sims 3:Main Page -> Sims 3:PackedFileTypes
Sims 3:Main Page -> Sims 3:RCOL
Object Model LOD
This is a Sims_3:RCOL chunk. LOD means Level of detail. This chunk is found in both .lod and .model files, and it is a the key that maps each mesh group to the appropriate parts of VRTF, VBUF, IBUF, SKIN and MATD chunks. It is the one ring to rule them all.
DWORD // 'MLOD' DWORD type DWORD count
repeat count times:
DWORD subset_bytes // number of bytes after here in this repetition DWORD unknown purpose DWORD MATD // or'd with 0x10000000, is relative to this block index DWORD VRTF // or'd with 0x10000000, is relative to this block index DWORD VBUF // or'd with 0x10000000, is relative to this block index DWORD IBUF // or'd with 0x10000000, is relative to this block index DWORD VBUF type QWORD VBUF offset // in bytes QWORD IBUF offset // in facepoints (three per polygon) DWORD VBUF count // vertex count DWORD IBUF count // face count (one per polygon) FLOAT[6] BoundingBox // MinX/MinY/MinZ/MaxX/MaxY/MaxZ for this group DWORD SKIN // or'd with 0x10000000, is relative to this block index DWORD DWORD DWORD MATD // or'd with 0x10000000, is relative to this block index FLOAT[6] .... // depending on type value, additional data may be present, purpose undetermined
Sims 3:Main Page -> Sims 3:PackedFileTypes
Sims 3:Main Page -> Sims 3:RCOL
Based on contributions from karybdis and atavera