Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Special pages
modding.dev WIKI
Search
Search
Appearance
Appearance
move to sidebar
hide
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
MipTex
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{#seo: |title=MipTex File Format |keywords=MipTex |description=This is the file type used by world textures and is the typical type of file you find in WAD3 archives. |image=https://modding-assets.net/_modding-assets/images/engines/goldsrc.png |image_alt=Wiki Logo }} 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|type=uint32|length=4|description=Image height, in pixels. Must be divisible by 16.}} {{binary_struct|MipOffsets|type=uint32[4]|length=16|description=Offset from start of this struct to each mipmap level's image.}} {{binary_struct|MipData|type=byte[]|length=?|description=One MipMap for each mipmap level.}} {{binary_struct|ColorsUsed|type=uint16|length=2|description=Number of colors used in the palette (always 256 for GoldSrc).}} {{binary_struct|Palette|type=color[]|length=256 * 3|description=Up to 256 RGB colors used in the texture. Each group of 3 uint32 form a R G B color.}} For the MipMap images, the first image (level 0) is the texture image in its original dimensions. All following levels have dimensions that are a quarter the size of the previous level. For example, for a 16x16 texture: Level 0 is 16x16 (original) Level 1 is 8x8 Level 2 is 4x4 Level 3 is 2x2
Summary:
Please note that all contributions to modding.dev WIKI are considered to be released under the Creative Commons Attribution-ShareAlike (see
Modding-dev-wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:Binary struct
(
edit
)
Search
Search
Editing
MipTex
Add topic