Copy Link
Add to Bookmark
Report

Quake Editing Digest Volume 1 : Number 4

eZine's profile picture
Published in 
quake editing digest
 · 7 months ago

quake-editing-digest       Sunday, 10 March 1996       Volume 01 : Number 004 

Quake tools in C++
Re: Quake Palette
Re: Quake Palette
Re: Quake Palette

----------------------------------------------------------------------

From: Steve Simpson <ssimpson@world.std.com>
Date: Sat, 09 Mar 1996 10:23:15 -0500
Subject: Quake tools in C++

I'm interested in writing some Quake tools in C++, preferably using
the C++ Standard Template Library (STL). I'll be developing using
Win95 with memory mapped files. Are there others out there with
similar interests (i.e. using C++ rather than C)?

------------------------------

From: Raphael.Quinet@eed.ericsson.se
Date: Sat, 9 Mar 1996 16:36:33 +0100 (MET)
Subject: Re: Quake Palette

On Fri, 08 Mar 1996, Jim Bucher <jim@gcchem.com> 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.

- -Raphael


------------------------------

From: Jim Bucher <jim@gcchem.com>
Date: Sat, 09 Mar 1996 13:26:21 -0600
Subject: Re: Quake Palette

Raphael.Quinet@eed.ericsson.se wrote:
>
> 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.
>
> -Raphael

I know how the palette is set up, but when I use the palette from the
gfx.wad the textures do not look right. This leads me to believe that they
are using a color look up table for the texture. So, do you know if the
textures reference the palette directly, or is there is an intermediate
color quantization table? It could be that I have just set the palette
wrong.

------------------------------

From: Jim Bucher <jim@gcchem.com>
Date: Sat, 09 Mar 1996 14:05:23 -0600
Subject: Re: Quake Palette

Jim Bucher wrote:
>
> I know how the palette is set up, but when I use the palette from the
> gfx.wad the textures do not look right. This leads me to believe that they
> are using a color look up table for the texture. So, do you know if the
> textures reference the palette directly, or is there is an intermediate
> color quantization table? It could be that I have just set the palette
> wrong.

I just fixed the problem. I was setting the palette wrong. The palette entries
are in the range of 0-255. The VGA DAC only accepts 6-bit entries so I had to
right shift all values by 2 before setting the palette.

------------------------------

End of quake-editing-digest V1 #4
*********************************

← previous
next →
loading
sending ...
New to Neperos ? Sign Up for free
download Neperos App from Google Play
install Neperos as PWA

Let's discover also

Recent Articles

Recent Comments

Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT