Jump to content

QPic: Difference between revisions

From modding.dev WIKI
Created page with "A simple image of any size. Specific images of this format can be found in these wad files: * cached.wad - The loading screen and the drop-down console background (WON version only) * gfx.wad - The "LOADING" and "PAUSED" images among others = File Structure QPic = {{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 1..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#seo:
|title=Modding.dev | QPic File Format
|keywords=QPic,GoldSrc
|description=A simple image of any size used in WAD3 files.
|image=https://modding-assets.net/_modding-assets/images/engines/goldsrc.png
|image_alt=Wiki Logo
}}
A simple image of any size. Specific images of this format can be found in these wad files:
A simple image of any size. Specific images of this format can be found in these wad files:
* cached.wad - The loading screen and the drop-down console background (WON version only)
* cached.wad - The loading screen and the drop-down console background (WON version only)
Line 8: Line 16:
{{binary_struct|Pixels|type=byte[]|length=width*height|description=The color index within the pallete.}}
{{binary_struct|Pixels|type=byte[]|length=width*height|description=The color index within the pallete.}}
{{binary_struct|ColorsUsed|type=uint16|length=2|description=Number of colors used in the palette (always 256 for GoldSrc).}}
{{binary_struct|ColorsUsed|type=uint16|length=2|description=Number of colors used in the palette (always 256 for GoldSrc).}}
{{binary_struct|Pallete|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.}}
{{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.}}

Latest revision as of 13:24, 1 January 2026


A simple image of any size. Specific images of this format can be found in these wad files:

  • cached.wad - The loading screen and the drop-down console background (WON version only)
  • gfx.wad - The "LOADING" and "PAUSED" images among others

File Structure QPic

[edit | edit source]
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.
Pixels <byte[]> (width*height bytes)
 
The color index within the pallete.
ColorsUsed <uint16> (2 bytes)
 
Number of colors used in the palette (always 256 for GoldSrc).
Palette <color[]> (256 * 3 bytes)
 
Up to 256 RGB colors used in the texture. Each group of 3 uint32 form a R G B color.