Difference between revisions of "Sims 3:0x01661233"

From SimsWiki
Jump to: navigation, search
m (Overview)
Line 12: Line 12:
 
  DWORD version // 256 or 258 seen
 
  DWORD version // 256 or 258 seen
 
  DWORD count // of MLOD references, see below
 
  DWORD count // of MLOD references, see below
  FLOAT[6] // bounding box for entire object (MinX/MinY/MinZ/MaxX/MaxY/MaxZ)
+
  FLOAT[3] // Min X/Y/Z for entire object
 +
FLOAT[3] // Max X/Y/Z for entire object
 
   
 
   
 
  --if 'version' >=258
 
  --if 'version' >=258
Line 18: Line 19:
 
  DWORD NumExtraBoundingBoxes
 
  DWORD NumExtraBoundingBoxes
 
  --repeat NumExtraBoundingBoxes
 
  --repeat NumExtraBoundingBoxes
  FLOAT[6] Boundingbox // (MinX/MinY/MinZ/MaxX/MaxY/MaxZ)
+
  FLOAT[3] Min X/Y/Z
  DWORD[2]
+
  FLOAT[3] Max X/Y/Z
 +
 +
DWORD
 +
DWORD
 
   
 
   
 
  //MLOD References:
 
  //MLOD References:
 
  --repeat 'count':
 
  --repeat 'count':
  WORD MLOD_Index // into TGI Index of the MODL RCOL
+
  DWORD MLOD_Index // into the either the internal - or external when or'd with 0x30000000 -
WORD Index Type // 0x0000 = Internal resources, 0x3000 = External resources
+
// [[Sims 3:Key table|TGIBlock Index]] of the containing [[Sims 3:RCOL|RCOL]] resource
 
  DWORD
 
  DWORD
  DWORD LOD // 0x00000000, 0x00000001, 0x00010000, 0x00010001
+
  DWORD LOD // 0x00000000, 0x00000001, 0x00010000, 0x00010001 (like ResourceGroup)
 
  DWORD // appears to be a compressed 3D vector
 
  DWORD // appears to be a compressed 3D vector
 
  DWORD // appears to be a compressed 3D vector
 
  DWORD // appears to be a compressed 3D vector

Revision as of 15:41, 25 November 2010

Modding Reference by Category

Sims 3 :DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS3 Programmer's Reference 

ObjectModel - MODL
TypeID:0x01661233
Game Version:The Sims 3



Overview

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[3]	// Min X/Y/Z for entire object
FLOAT[3]	// Max X/Y/Z for entire object

--if 'version' >=258
	// these extra boundingboxes have been seen on City Hall and School community objects (pommes)
	DWORD NumExtraBoundingBoxes
	--repeat NumExtraBoundingBoxes
		FLOAT[3] Min X/Y/Z
		FLOAT[3] Max X/Y/Z

	DWORD
	DWORD

//MLOD References:
--repeat 'count':
	DWORD MLOD_Index // into the either the internal - or external when or'd with 0x30000000 -
			 // TGIBlock Index of the containing RCOL resource
	DWORD
	DWORD LOD	// 0x00000000, 0x00000001, 0x00010000, 0x00010001 (like ResourceGroup)
	DWORD		// appears to be a compressed 3D vector
	DWORD		// appears to be a compressed 3D vector

Based on contributions from karybdis and atavera

Modding Reference by Category

Sims 3 :DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS3 Programmer's Reference 

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox