Palette mixed up when I import/How to maintain color ramps?

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Palette mixed up when I import/How to maintain color ramps?

Post by sheamkennedy »

I don't know if this is due to an update but I noticed when importing a custom palette the color ramps were not maintained in the order they appear in the original BMP image. I used PalEdit to make my palette as I normally do.

I've attached pictures showing the palette before and after import. It seems like CUSTOM rearranged the colors maybe based on their hue since there seems to be a distinct pattern. This is undesirable since I work fastest with ramps. Also the top left color has became red so now my transparency color is red.

Maybe theres a new setting I'm missing or something... I haven't imported a custom palette in a long time.
Attachments
Before
Before
Screen Shot 2018-04-06 at 1.27.55 AM.png (11.01 KiB) Viewed 770 times
After
After
Screen Shot 2018-04-06 at 1.27.47 AM.png (10.18 KiB) Viewed 770 times
Last edited by sheamkennedy on Thu Apr 05, 2018 4:45 pm, edited 1 time in total.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
User avatar
Bob the Hamster
Lord of the Slimes
Posts: 7658
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

Make sure you save the palette as a 24 bit bmp.

When you import an 8-bit bmp as a palette, you are getting a copy of its palette, which is usually rearranged in strange ways.

When you import a 16x16 pixel 24-bit bmp file, then custom takes the color from each pixel in-order and uses that as the palette, preserving your intended ramp organization.

In fact, in nightly builds newer than March 3rd, it always uses the pixels, no matter what the bit depth of the imported file is, so this should not be a problem in the future.
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

Okay thanks, I just missed that nightly update. I think I downloaded a few days prior.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
Post Reply