Difference between revisions of "Sims 3:0x01661233"

From SimsWiki
Jump to: navigation, search
(Object Model)
m (Overview)
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]]
+
{{TS3AdvancedModdingHeader}}
<br/>[[Sims 3:Main Page]] -> [[Sims 3:RCOL]]
+
{{TS3Resource
<hr/>
+
|name=ObjectModel - MODL
==Object Model==
+
|typeid= 0x01661233
 +
|expansion=The Sims 3
 +
}}
 +
<br clear="all">
 +
 
 +
==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.
 
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[3] // Min X/Y/Z for entire object
  (if version>=258) DWORD[3]
+
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 ([[User:PommesTSR|pommes]])
 +
DWORD NumExtraBoundingBoxes
 +
--repeat NumExtraBoundingBoxes
 +
FLOAT[3] Min X/Y/Z
 +
FLOAT[3] Max X/Y/Z
 +
 +
DWORD FadeType
 +
FLOAT CustomFadeDistance
 +
 +
//MLOD References:
 +
--repeat 'count':
 +
DWORD LODModel // [[Sims 3:RCOL#References|RCOL Reference]] of a [[Sims_3:0x01D10F34|MLOD]]
 +
DWORD [[#LOD_Info_Flags|LODInfoFlags]]
 +
DWORD [[#LOD_ID|LOD ID]]//
 +
DWORD MinZValue // defaults to min float32
 +
DWORD MaxZValue // defaults to max float32
 +
===LOD ID===
 +
{| class="wikitable" border="1" ! colspan="3"
 +
|-
 +
!Id
 +
!Description
 +
|-
 +
|0x00000000 || HighDetail
 +
|-
 +
|0x00000001 || MediumDetail
 +
|-
 +
|0x00000002 || LowDetail
 +
|-
 +
|0x00010000 || HighDetailShadow
 +
|-
 +
|0x00010001 || MediumDetailShadow
 +
|-
 +
|0x00010002 || LowDetailShadow
 +
|-
 +
|}
 +
===LOD Info Flags===
 +
{| class="wikitable" border="1" ! colspan="3"
 +
|-
 +
!Flag
 +
!Type
 +
!Description
 +
|-
 +
|0x00000001 || Portal ||
 +
|-
 +
|0x00000002 || Door ||
 +
|-
 +
|}
 +
Based on contributions from karybdis and atavera
  
MLOD Reference
+
{{TS3AdvancedModdingHeader}}
 
+
WORD Index in TGI Index of the MODL RCOL
+
WORD Index Type (0x0000 = Internal resources tgi index , 0x3000 = External resources tgi index)
+
DWORD unknown
+
DWORD LOD (0x00000000, 0x00000001, 0x00010000, 0x00010001)
+
DWORD unknown // appears to be a compressed 3D vector
+
DWORD unknown // appears to be a compressed 3D vector
+
 
+
<hr/>
+
[[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]]
+
<br/>[[Sims 3:Main Page]] -> [[Sims 3:RCOL]]
+
 
+
Based on contributions from karybdis and atavera
+

Latest revision as of 19:09, 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



[edit] 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 FadeType
	FLOAT CustomFadeDistance

//MLOD References:
--repeat 'count':
	DWORD LODModel // RCOL Reference of a MLOD
	DWORD LODInfoFlags
	DWORD LOD ID// 
	DWORD MinZValue		// defaults to min float32
	DWORD MaxZValue		// defaults to max float32

[edit] LOD ID

Id Description
0x00000000 HighDetail
0x00000001 MediumDetail
0x00000002 LowDetail
0x00010000 HighDetailShadow
0x00010001 MediumDetailShadow
0x00010002 LowDetailShadow

[edit] LOD Info Flags

Flag Type Description
0x00000001 Portal
0x00000002 Door

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