Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

0x01661233

orangemittens edited this page Jul 20, 2014 · 7 revisions

#MODL This is an 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 

 	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 an MLOD
 	DWORD LOD_Info_Flags (see below)
 	DWORD LOD_ID (see below)
 	DWORD MinZValue		// defaults to min float32
 	DWORD MaxZValue		// defaults to max float32

##LOD ID

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

##LOD Info Flags

   
0x00000001 Portal
0x00000002 Door
Clone this wiki locally