home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hot Shareware 35
/
hot35.iso
/
ficheros
/
VDUKE
/
DUKEPAL2.ZIP
/
palettes.txt
< prev
next >
Wrap
Text File
|
1998-02-23
|
3KB
|
66 lines
Duke Nukem Palette Files (Photoshop 3+)
=======================================
Filename: Description:
===========================================================================
duke3d.act Duke Nukem Standard Palette
realms13.act 3D Realms Title screen palette (version 1.3D - Yellow + Blue)
realms14.act 3D Realms Title screen palette (version 1.4 - Brown (yuk!))
title.act Duke Nukem Title Screen palette (duke standing on dead guy)
scene1.act Palette for anim at end of first episode
===========================================================================
A Note on palettes in Duke.
===========================
Duke's internal palettes use 64 colour registers per channel, not
256, so for example white is 63,63,63. Bear this in mind if you'll
be writing to and from palette files.
Duke uses the normal palette (duke3d.act) for rendering all in-game
graphics. All the special effects for giving sprites special colours,
the sector shading with distance, and translucency, are all stored as
lookup tables in PALETTE.DAT.
The lookup tables for special effects like underwater (slightly blue),
night sights (slightly yellow), being shot (slightly red), and walking
in slime (slightly green) are stored in the file LOOKUP.DAT.
LOOKUP.DAT also stores the hardcoded palettes for the 3D Realms logo
screen and the main Duke Nukem title screen. So if you are intending
to replace these graphics by importing your own into the ART files,
they'll look wrong unless you also included their palette information
in LOOKUP.DAT.
The animation at the end of the first episode isn't a .anm file
like the others - it's just a series of frames in the GRP file. This is
why it has a custom palette in LOOKUP.DAT. The other .anm files
contain their own palettes.
I wrote a small program to find all the palette offsets in LOOKUP.DAT
and write them out to files. At some point I want to get round to writing
the reverse program, to write custom palettes into LOOKUP.DAT. I'm not much
of a programmer so it'll probably take ages.
The offsets are:
Byte Offset (in decimal) Palette
=========================================================================
0-6425 Red/Green element lookup table (unusable)
6426-7193 Water Palette:
7194-7961 NiteSight:
7962-8729 TitleScreen
8730-9497 3DRealms Logo screen
9498 Palette for episode 1 completion animation
==========================================================================
Anyway, hope this is useful. If you need any more help drop me a line
or post a message on alt.games.duke3d.editing.
==============================
gambit@proteus.globalnet.co.uk