apply a palette from external .pal file

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
elypter
Posts: 2
Joined: 2011-02-03T11:12:41-07:00
Authentication code: 8675308

apply a palette from external .pal file

Post by elypter »

i want to make a script to convert gta1 cars to gta2 cars. I already have a working script for generating deltas(which define how the car changes with damage or lights) The problem is that gta2 textures use 8 bit palettes to save space and to allow remaps (eg: to allow cars in different colors). These palettes are fixed so i have to export one of them and then apply it to the car/texture i want to import.

So my question is: how can i apply a 8bit(with 24bit color depth) palette from an external .pal file to a .bmp image? the palette must stay unchanged. no rearrangement or removal of unused colors

i hope this is possible.
thanks
elypter
Posts: 2
Joined: 2011-02-03T11:12:41-07:00
Authentication code: 8675308

Re: apply a palette from external .pal file

Post by elypter »

so, that nobody answers means that it is impossible?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: apply a palette from external .pal file

Post by fmw42 »

elypter wrote:so, that nobody answers means that it is impossible?
Not necessarily. Just means no one knows how to do it or has had experience doing such.
Post Reply