Difference between revisions of "ED534136"
From SimsWiki
m (Missed a category) |
(Cleaned up and removed duplicate info) |
||
Line 1: | Line 1: | ||
− | + | =ED534136 (LIFO)= | |
− | + | This is a full sized texture these files are referenced in [[TXTR|TXTR files]] (which seem to be mipmaps). They are refrenced as the largest maps in the TXTR files. | |
− | + | ==Format== | |
− | + | ;7BITSTR | |
− | + | :Block name ("cLevelInfo") | |
− | + | ;DWORD | |
− | + | :Block ID (0xED534136) | |
− | + | ;DWORD | |
− | + | :block version (0x9) | |
− | + | ;REF | |
− | DWORD | + | :reference (load a cSGResource) |
− | DWORD | + | ;DWORD |
− | + | :Width | |
− | REF | + | ;DWORD |
− | + | :Height | |
− | DWORD | + | ;DWORD |
− | DWORD | + | :Z-level |
− | DWORD | + | ;DWORD |
− | DWORD | + | :Length D |
− | + | ;D bytes | |
+ | :Data | ||
</pre> | </pre> | ||
+ | ==Image data== | ||
To calculate the format of the image data, use the following formula: | To calculate the format of the image data, use the following formula: | ||
− | + | ;''if ([data length] == 4*w*h)'' | |
− | if ([data length] == 4*w*h) | + | ::format = ARGB |
− | + | ;''else if ([data length] == 3*w*h)'' | |
− | else if ([data length] == 3*w*h) | + | ::format = RGB |
− | + | ;''else if ([data length] == w*h)'' | |
− | 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'' | |
− | else | + | ::format = DXT1 |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | ==Notes== | ||
+ | This file type uses the Resource Collection format [[RCOL]]. | ||
− | + | {{OldWikiEntryCleanedOther}} | |
− | + | {{OldWikiEntryCleanedOther|LIFO}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
[[Category:Modding]] | [[Category:Modding]] | ||
[[Category:InternalFormats]] | [[Category:InternalFormats]] | ||
[[Category:FormatsByTGI]] | [[Category:FormatsByTGI]] |
Revision as of 19:43, 17 July 2006
Contents |
ED534136 (LIFO)
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.
Format
- 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
- Length D
- D bytes
- Data
</pre>
Image 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
Notes
This file type uses the Resource Collection format RCOL.
Template:OldWikiEntryCleanedOther Template:OldWikiEntryCleanedOther