ED534136

From SimsWiki
Revision as of 16:47, 9 March 2005 by Delphy (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
This article is imported from the old MTS2 wiki. You can help Sims2Wiki by cleaning it up. It's original page with comments can be found at http://old_wiki.modthesims2.com/ED534136
LIFO ED534136

This is a full sized texture these files are referenced in txtr files(which seem to be mipmaps) they are refrenced as the largest maps in the txtr files

7BITSTR		block name		; "cLevelInfo"
DWORD 		block ID		; 0xed534136
DWORD 		block version		; 0x9

REF		reference: load a cSGResource

DWORD 		Width
DWORD 		Height
DWORD		Z-level
DWORD		data Length
PRIOR		data

To calculate the format of the image data, use the following formula:

if ([data length] == 4*w*h) 
  format = ARGB 
else if ([data length] == 3*w*h)
  format = RGB
else if ([data length] == w*h)
  if (block name contains "bump")
	format = raw8bit
  else if (first two bytes of raw data are non-zero, and next 12 bytes are zero)
	format = DXT5
  else
	format = DXT3
else
  format = DXT1
Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox