Re: Palette Problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

Message text written by Lucius:
>Hello Colin:
  This is Lucius,  Remapping palettes does work great MOST of the time bu=
t
after working with several images I have found several problems with it.
1. If it does work and work well you would want to save a copy of the ima=
ge
   with the new palette.  Remapping on the fly is a little slow.
2. 1 reason it may not work is that you have an image that has abundance =
of
   1 color in the palette. Example: an image of Lava would have a palette=

   consumed with different shades of red. And an image of the sky would
   have many blues.  These 2 images won't simply remap very well from the=
ir
   palette to the others palette.  You may have to Build a new palette th=
at
   is a partial mixture of the 2 and remap both images to it.
3. I doubt Colin took this into account but I may be wrong.  I know I too=
k
   it into account when writing my rountines and gave up before solving
   the problem of drastically different palettes.  I think Pete Eberlein
   wrote some excellent routines in this area.  NOT SURE.

   Lucius L. Hilley III
<

If the palettes are very different, both images can be remapped to a comm=
on
palette such as a windoze or web palette or even a mac palette.  Remappin=
g
on the fly is very fast for small images.  For better-looking results, th=
e
images can be dithered to a new palette which is also fairly fast (usuall=
y
less tha 1 second for a 320x240 image on my machine).

Colin

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu