Difference between revisions of "Sims 3:0x01661233"

From SimsWiki
Jump to: navigation, search
(Object Model)
m (tidy up)
Line 1: Line 1:
[[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]]
+
[[Tutorials:TS3 Advanced Coding Tutorials]] -> [[Sims 3:PackedFileTypes]]
<br/>[[Sims 3:Main Page]] -> [[Sims 3:RCOL]]
+
<br/>[[Tutorials:TS3 Advanced Coding Tutorials]] -> [[Sims 3:RCOL]]
 
<hr/>
 
<hr/>
 
==Object Model==
 
==Object Model==
 
This is a [[Sims 3:RCOL]] chunk. The .model files that it is found in are essentially object mesh files, with this chunk included. A few meshes have two MODL chunks, purpose unknown.
 
This is a [[Sims 3:RCOL]] chunk. The .model files that it is found in are essentially object mesh files, with this chunk included. A few meshes have two MODL chunks, purpose unknown.
  DWORD     // 'MODL'
+
  DWORD // 'MODL'
  DWORD     version (256 or 258)
+
  DWORD version // 256 or 258 seen
  DWORD     count number of MLOD references
+
  DWORD count // of MLOD references, see below
  FLOAT[6] bounding box for entire object (MinX/MinY/MinZ/MaxX/MaxY/MaxZ)
+
  FLOAT[6] // bounding box for entire object (MinX/MinY/MinZ/MaxX/MaxY/MaxZ)
(if version>=258)
+
// these extra boundingboxes has been seen on city hall and school community objects / pommes
+
DWORD NumExtraBoundingBoxes
+
  repeat NumExtraBoundingBoxes
+
  FLOAT[6] Boundingbox (MinX/MinY/MinZ/MaxX/MaxY/MaxZ)
+
DWORD[2]
+
  
MLOD Reference
+
--if version >=258
 
+
// these extra boundingboxes have been seen on City Hall and School community objects ([[User:Pommes|pommes]])
  WORD Index in TGI Index of the MODL RCOL
+
DWORD NumExtraBoundingBoxes
WORD Index Type (0x0000 = Internal resources tgi index , 0x3000 = External resources tgi index)
+
--repeat NumExtraBoundingBoxes
DWORD unknown
+
FLOAT[6] Boundingbox // (MinX/MinY/MinZ/MaxX/MaxY/MaxZ)
DWORD LOD (0x00000000, 0x00000001, 0x00010000, 0x00010001)
+
DWORD[2]
DWORD unknown // appears to be a compressed 3D vector
+
   
DWORD unknown // appears to be a compressed 3D vector
+
//MLOD References:
 +
--repeat count
 +
WORD MLOD_Index // into TGI Index of the MODL RCOL
 +
WORD Index Type // 0x0000 = Internal resources, 0x3000 = External resources
 +
DWORD
 +
DWORD LOD // 0x00000000, 0x00000001, 0x00010000, 0x00010001
 +
DWORD // appears to be a compressed 3D vector
 +
DWORD // appears to be a compressed 3D vector
  
 
<hr/>
 
<hr/>

Revision as of 19:22, 10 January 2010

Tutorials:TS3 Advanced Coding Tutorials -> Sims 3:PackedFileTypes
Tutorials:TS3 Advanced Coding Tutorials -> Sims 3:RCOL


Object Model

This is a Sims 3:RCOL chunk. The .model files that it is found in are essentially object mesh files, with this chunk included. A few meshes have two MODL chunks, purpose unknown.

DWORD		// 'MODL'
DWORD version	// 256 or 258 seen
DWORD count	// of MLOD references, see below
FLOAT[6]	// bounding box for entire object (MinX/MinY/MinZ/MaxX/MaxY/MaxZ)
--if version >=258
	// these extra boundingboxes have been seen on City Hall and School community objects (pommes)
	DWORD NumExtraBoundingBoxes
	--repeat NumExtraBoundingBoxes
		FLOAT[6] Boundingbox	// (MinX/MinY/MinZ/MaxX/MaxY/MaxZ)
		DWORD[2]

//MLOD References:
--repeat count
	WORD MLOD_Index	// into TGI Index of the MODL RCOL
	WORD Index Type	// 0x0000 = Internal resources, 0x3000 = External resources
	DWORD
	DWORD LOD	// 0x00000000, 0x00000001, 0x00010000, 0x00010001
	DWORD		// appears to be a compressed 3D vector
	DWORD		// appears to be a compressed 3D vector

Sims 3:Main Page -> Sims 3:PackedFileTypes
Sims 3:Main Page -> Sims 3:RCOL

Based on contributions from karybdis and atavera

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox