home *** CD-ROM | disk | FTP | other *** search
/ Hot Shareware 35 / hot35.iso / ficheros / VDUKE / DUKEPAL2.ZIP / palettes.txt < prev    next >
Text File  |  1998-02-23  |  3KB  |  66 lines

  1. Duke Nukem Palette Files (Photoshop 3+)
  2. =======================================
  3.  
  4. Filename:    Description:
  5. ===========================================================================
  6.  
  7. duke3d.act    Duke Nukem Standard Palette
  8. realms13.act    3D Realms Title screen palette (version 1.3D - Yellow + Blue)
  9. realms14.act    3D Realms Title screen palette (version 1.4 - Brown (yuk!))
  10. title.act    Duke Nukem Title Screen palette (duke standing on dead guy)
  11. scene1.act    Palette for anim at end of first episode
  12.  
  13. ===========================================================================
  14.  
  15. A Note on palettes in Duke.
  16. ===========================
  17.  
  18. Duke's internal palettes use 64 colour registers per channel, not
  19. 256, so for example white is 63,63,63. Bear this in mind if you'll
  20. be writing to and from palette files.
  21.  
  22. Duke uses the normal palette (duke3d.act) for rendering all in-game
  23. graphics.  All the special effects for giving sprites special colours,
  24. the sector shading with distance, and translucency, are all stored as
  25. lookup tables in PALETTE.DAT.
  26.  
  27. The lookup tables for special effects like underwater (slightly blue),
  28. night sights (slightly yellow), being shot (slightly red), and walking
  29. in slime (slightly green) are stored in the file LOOKUP.DAT.
  30.  
  31. LOOKUP.DAT also stores the hardcoded palettes for the 3D Realms logo
  32. screen and the main Duke Nukem title screen. So if you are intending
  33. to replace these graphics by importing your own into the ART files,
  34. they'll look wrong unless you also included their palette information
  35. in LOOKUP.DAT.
  36.  
  37. The animation at the end of the first episode isn't a .anm file
  38. like the others - it's just a series of frames in the GRP file. This is
  39. why it has a custom palette in LOOKUP.DAT. The other .anm files
  40. contain their own palettes.
  41.  
  42. I wrote a small program to find all the palette offsets in LOOKUP.DAT
  43. and write them out to files. At some point I want to get round to writing 
  44. the reverse program, to write custom palettes into LOOKUP.DAT. I'm not much 
  45. of a programmer so it'll probably take ages.
  46.  
  47. The offsets are:
  48.  
  49. Byte Offset (in decimal)    Palette
  50. =========================================================================
  51. 0-6425                Red/Green element lookup table (unusable)
  52. 6426-7193            Water Palette:    
  53. 7194-7961            NiteSight:    
  54. 7962-8729            TitleScreen    
  55. 8730-9497            3DRealms Logo screen
  56. 9498                Palette for episode 1 completion animation
  57. ==========================================================================
  58.  
  59. Anyway, hope this is useful. If you need any more help drop me a line
  60. or post a message on alt.games.duke3d.editing.
  61.  
  62.  
  63.  
  64. ==============================
  65. gambit@proteus.globalnet.co.uk
  66.