![]() |
Using The Palace Color MapWhat the Heck's a CLUT? |
![]() |
The first thing any Photoshop user (or GC user, or Paintshop Pro user...)
should do with Palace is make or get a copy of Palace's custom color map.
All Palace pictures are color mapped, like the GIFs we all know and
love from our web browsers. All Palace images use the same consistent color
palette, so room GIFs and props can be freely intermixed.
Prepackaged CLUT Files for our three hero paint packages are available
through the links at the left.
You can make your own palatte file by opening most any
Palace room GIF ("pgate.gif" is preferred, since it's
guaranteed to have the complete map). They should all have
the same map, and your avs should use the same set of colors.
Once you've opened the GIF, select "Color Table..." under
the Photoshop "Mode" menu. A dialog will pop up, showing you
the color table. Hit the "Save..." button. I saved mine as
"Palace.Clut" ("CLUT" = "Color
LookUp Table").
For Graphic Converter, use "Save As..." and save as a color table.
For Paint Shop Pro, Use Colors->Save Palette.
Once the CLUT is
saved, you can just hit cancel on any open dialogs and close the GIF
file
The chart below shows the Palace color map, rearranged in seven
strips. The top strip shows the map in the order it appears in the
GIFs, and thus in Photoshop (The block of blacks at the end of the
table is unused). Subsequent strips rearrange the color table,
sorting on hue, on saturation, on brightness, on the amount of red,
of green, and finally on the amount of blue. |
![]()
Looking at the Color Map |
![]() |
Clicking on this image will download a copy -- a useful tool for
selecting colors (Photoshop can also load the Palace.Clut
file directly into the on-screen "Swatches" palette).
Of special interest in the color set should be the block of colors at
hues of around 15 degrees or so (easily found in Photoshop by using
the color picker -- about one-third of the way across the image in the
second row). Sadly, this region is not well-represented, and
the colors in it are overly-saturated. Why should we care?
Because that part of the color wheel is where all the skintones
(worldwide) live. That sometimes makes it very hard to nail a good
flat-colored "skin" region on an avatar face |
| Using the Color Map | For any picture you want to use with the Palace, as a room
background or a prop, you need to make sure it uses the Palace's color
map. Unless the picture started as a Palace image (like the room GIF,
or a prop copied from a screen capture), we'll need to convert it to
indexed color using the Palace CLUT. There are essentially three
kinds of pictures we will convert:
Remember: Save Your RGB Image. You may need
it later, for changes or fixes.
To convert an RGB image to the Palace CLUT in Photoshop, you select
"Indexed Color..." under Image->Mode.A dialog will pop up. In the "Palette" box, press the "Custom..." button. In the "Dither" box, press whatever you like
Another dialog will come up, showing you the color table. If it's
still the Palace table (after a while, you'll get to recognize it!),
just press "OK." If not, press
"Load..." and load our "Palace CLUT"
file. Press all the "Okay" buttons. Now, look at your image:
it's living in the Palace world.
For GraphicConverter, load the pgate.PAL under the Picture->Colors->Options...menu, then Picture->colors->Change
to 256 Colors (8 bit)
For Paintshop Pro, simply select Colors->Load Palette...and the conversion will happen in one step, on the spot. |
|
![]() |
Not sure about that "Dither" option? Just hit "Undo" and convert it again in several different ways. Or duplicate the image and convert each copy a different way, to compare side-by-side. Above are three samples, superimposed over a bit of Harry's Bar. |
| Getting the
Most from The Palace Color Map Think Snappy!
|
The Palace color map is a full color wheel, but it's certainly limited
in the choice of colors, compared to "full" 24-bit color
images
Further, many GIF and other images already have their own
color maps
Let's take a sample pic, with a character from the peerless
Giant Robo series (and because no
Palace site can have too many good-looking women with big guns...).
Even without masking (which would obliterate even more of
the picture) we can see that there aren't a lot of
distinct colors in here. Looks like someone was
sloppy with the scanner... or maybe the original image was
part of some larger picture, with its own contrast range.
|
|
To check how things will all turn out...
First, crank up the contrast. I used the Photoshop Image->Adjust->Levels...dialogue, which gives you a great histogram for feedback. You could get similar (or even identical) results using the "Variations" dialogue or any ther sort of contrast-manipulating tool. I forced the hair values all the way down into the black, and the dress highlight all the way up to white. I also cranked the gamma so that more pixels would end up in the region below the middle gray. The on-screen image in my paint program immediately had loads more "snap." |
![]() |
Next, I duplicate the image and do a 132-pixel resize, and
follow it with a pass of "Unsharp Mask." Now,
converting to Palace palette, we get more than twice as many
colors: our convert/convert-back check shows 73 colors
present in this version, a great improvement.
In this X's experience, beating on the original image's
contrast and gamma ranges are the number one line
of defense against muddy and incoherent palace prop images.
The more colors you can get into the final prop, the clearer
it will be.
Shifting from one color map to another can present its own
suite of problems. Fortunately, many indexed-color images
found on the web already use the Netscape palette, which is very
similar to the palette used by The Palace. When in
doubt: call up the original image, duplicate it, convert to
RGB, then convert to the Palace CLUT, and view them all
together.
The most common problem in index-to-RGB-to-index conversions
is dither noise (sometimes a problem with
low-quality JPEGs, too). Functions like "despeckle" and
"blur" can do a lot to solve it
|
| |||||||
![]() Revised 30 Dec 1998 |
The undithering problem is really just a subtle variant of the halftone moiré problem so common in scanning from books and magazines. Despeckling and blurring will smooth-out the colors of the original image, creating new intermediate colors that can subsequently be more effectively re-dithered into the palace palette. You may also find that the problem is more-pronounced in one RGB color channel (say, green) than the others... so sometimes a careful bit of smudging by hand in just that one channel can be in order. | ||||||