Jump to content

MipTex

From modding.dev WIKI
Revision as of 22:19, 31 December 2025 by XBLAH (talk | contribs) (Created page with "This is the file type used by world textures and is the typical type of file you find in WAD3 archives. The structure is similar to what's used to describe textures in the BSP format. = File Structure = {{binary_struct|FileName|type=string|length=32|description=File name, with up to 16 characters. The unused trailing characters are null.}} {{binary_struct|Width|type=uint32|length=4|description=Image width, in pixels. Must be divisible by 16.}} {{binary_struct|Height|ty...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the file type used by world textures and is the typical type of file you find in WAD3 archives. The structure is similar to what's used to describe textures in the BSP format.

File Structure

FileName <string> (32 bytes)
 
File name, with up to 16 characters. The unused trailing characters are null.
Width <uint32> (4 bytes)
 
Image width, in pixels. Must be divisible by 16.
Height <uint32> (4 bytes)
 
Image height, in pixels. Must be divisible by 16.
MipOffsets <uint32[4]> (16 bytes)
 
Offset from start of this struct to each mipmap level's image.
MipData <byte[]> (? bytes)
 
One MipMap for each mipmap level.
ColorsUsed <uint16> (2 bytes)
 
Number of colors used in the palette (always 256 for GoldSrc).
Pallete <color[]> (256 * 3 bytes)
 
Up to 256 RGB colors used in the texture. Each group of 3 uint32 form a R G B color.