It is currently Sat Nov 18, 2017 3:27 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Palette tools?
PostPosted: Sat Dec 15, 2012 1:42 pm 
Offline

Joined: Sat May 28, 2011 10:30 am
Posts: 97
Hi!

Are there any tools available that would let me reorder the colors of an image's palette without affecting the image itself?

Contrived simplified example: changing the palette of an image from [blue][red][green][yellow] to [yellow][green][red][blue] and still keep the image looking the same.

For extra difficulty, I have two images that have very similar colors but their palettes are in a different order. Are there any tools available that can help unifying them easier than fixing it by hand?

Thanks!
DJCC


Top
 Profile  
 
 Post subject: Re: Palette tools?
PostPosted: Sat Dec 15, 2012 1:46 pm 
Offline
User avatar

Joined: Fri Nov 12, 2004 2:49 pm
Posts: 7265
Location: Chexbres, VD, Switzerland
If your graphics are already in tiled format, YY-CHR can do this very well.

Otherwise I don't know.


Top
 Profile  
 
 Post subject: Re: Palette tools?
PostPosted: Sat Dec 15, 2012 1:51 pm 
Offline

Joined: Sat May 28, 2011 10:30 am
Posts: 97
Bregalad wrote:
If your graphics are already in tiled format


In tiled format? I'm not sure what that means.

Doesn't YY-CHR work with the data inside roms?

In my case, I'm working with bitmaps that get converted to binary when my game gets built.


Top
 Profile  
 
 Post subject: Re: Palette tools?
PostPosted: Sat Dec 15, 2012 1:53 pm 
Offline
Formerly 65024U

Joined: Sat Mar 27, 2010 12:57 pm
Posts: 2257
YY-chr can work on .bin files you include in your ROM easy too. As for making palettes, I just hex editor them myself.


Top
 Profile  
 
 Post subject: Re: Palette tools?
PostPosted: Sat Dec 15, 2012 2:06 pm 
Offline
User avatar

Joined: Wed Apr 02, 2008 2:09 pm
Posts: 1035
Grafx2 will let you reorganize palettes if I remember correctly. (If I'm not remembering correctly, let me know. I'm sure I know of a program that will do this.)

Edit: Yes, Grafx2 will do it. Click the L. Select your image. Click PAL. Click next to the one of the colors you want to swap the order of. Click X-Swap. Click the color you want to swap its position with. Click okay. Save.

Edit2: As a matter of fact, your example would be even easier. Click and drag to select the colors you want to reverse the order of. Then click X-invert. It will make the lowest index number selected the highest, the highest the lowest etc. without changing the image.

For part two, (unifying palettes) ASEPRITE may do that if I'm understanding correctly.

Open the indexed image whose palette you want the other image to use with ASEPRITE.

Open the second image with ASEPRITE. Go to sprite, color mode, RGB color. Then copy it.

Paste into the first image's tab. ASEPRITE will try to match the RGB image's pixels to the nearest colors available in the palette. (But it may not give you the result you want, depending on how close the colors are. You may get two colors that end up with the same index after pasting for instance. In which case, do it by hand.)

(If that doesn't work, open the second image you want to unify with some other program that will copy it to the copy buffer as RGB rather than indexed.)

Save as a new filename.

_________________
https://kasumi.itch.io/indivisible


Last edited by Kasumi on Sat Dec 15, 2012 2:16 pm, edited 3 times in total.

Top
 Profile  
 
 Post subject: Re: Palette tools?
PostPosted: Sat Dec 15, 2012 2:13 pm 
Offline
User avatar

Joined: Fri Nov 19, 2004 7:35 pm
Posts: 3950
Photoimpact lets you re-order the palette without changing the image, but you must save as a BMP file afterwards, otherwise it will automatically re-order the palette again.

_________________
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!


Top
 Profile  
 
 Post subject: Re: Palette tools?
PostPosted: Sat Dec 15, 2012 3:20 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6437
Location: UK (temporarily)
The gimp provides this interface: http://docs.gimp.org/2.6/en/plug-in-colormap-remap.html


Top
 Profile  
 
 Post subject: Re: Palette tools?
PostPosted: Sat Dec 15, 2012 3:24 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19222
Location: NE Indiana, USA (NTSC)
Or in GIMP:
  1. Create a new RGB image of the same size.
  2. Fill it with the first color in the desired palette.
  3. Image > Mode > Indexed and accept the defaults.
  4. Open the colormap: Windows > Dockable Dialogs > Colormap.
  5. For each color in order, choose the color in the color picker, then add it to the new image's colormap.
  6. Paste something into this window.


Top
 Profile  
 
 Post subject: Re: Palette tools?
PostPosted: Sat Dec 15, 2012 6:28 pm 
Offline

Joined: Sat May 28, 2011 10:30 am
Posts: 97
Kasumi wrote:
For part two, (unifying palettes) ASEPRITE may do that if I'm understanding correctly.

Open the indexed image whose palette you want the other image to use with ASEPRITE.

Open the second image with ASEPRITE. Go to sprite, color mode, RGB color. Then copy it.

Paste into the first image's tab. ASEPRITE will try to match the RGB image's pixels to the nearest colors available in the palette. (But it may not give you the result you want, depending on how close the colors are. You may get two colors that end up with the same index after pasting for instance. In which case, do it by hand.)

(If that doesn't work, open the second image you want to unify with some other program that will copy it to the copy buffer as RGB rather than indexed.)

Save as a new filename.


I realized I could do this with Graphics Gale, which is what I use. Thanks for the idea!


Top
 Profile  
 
 Post subject: Re: Palette tools?
PostPosted: Sun Dec 16, 2012 1:56 am 
Offline
User avatar

Joined: Mon Jan 03, 2005 10:36 am
Posts: 2981
Location: Tampere, Finland
Kasumi wrote:
Grafx2 will let you reorganize palettes if I remember correctly. (If I'm not remembering correctly, let me know. I'm sure I know of a program that will do this.)

Thanks, didn't know about this tool.

I'll just add that reorganizing the palette in Photoshop is absolutely painful.

_________________
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: kkfos.aspekt.fi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group