Re: Quake Palette
Sat, 9 Mar 1996 16:36:33 +0100 (MET)

Date: Sat, 9 Mar 1996 16:36:33 +0100 (MET)
Message-Id: <>
Subject: Re: Quake Palette

On Fri, 08 Mar 1996, Jim Bucher <> wrote:
> I am working on a .mdl viewer and I need to know the internal format of
> the quake palette. I imagine it uses a look up table, but I don't know
> the format of the table. BTW, does anyone else think it is strange that
> the .mdl textures are variable width? This makes the inner loop a lot
> slower than using a 256 or power of 2 width.

The Quake palette is a simple array of 256 * 3 bytes (RGB). The palette
is stored in gfx.wad. Take a look at "LoadPalette()" in QEU 0.3 (in the
file f_bitmap.c). This should show you how to use it. You can also
compile "unwad2" and see how it saves the palette in BMP files.