Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: motorollin on September 14, 2008, 05:04:17 PM

Title: Making two images use the same palette
Post by: motorollin on September 14, 2008, 05:04:17 PM
I'm creating some preview images for use with AGS (http://www.paradroid.net/ags/), and the pictures have to be the same palette as the background image. How can I convert the preview image I'm using to the same palette as the background without the colours changing? I currently have PPaint installed if that helps.

--
moto
Title: Re: Making two images use the same palette
Post by: motorollin on September 14, 2008, 05:27:21 PM
I loaded the background image in to PPaint then loaded the preview image as a brush. Of course, the colours were all wrong. I then selected Brush > Color > Remap and it seemed to fix the brush to look correct in that palette, but when I displayed it with the background in AGS, the colours were still wrong :-(

--
moto
Title: Re: Making two images use the same palette
Post by: pVC on September 14, 2008, 05:39:32 PM
Use Color->Merge... menu option in PPaint. Hmmm.. or actually if you have lots of preview images, maybe the remap way is better... I think it should work as you tried.. you remembered to save brush too? :)
Title: Re: Making two images use the same palette
Post by: motorollin on September 14, 2008, 06:17:01 PM
Yes I did re-save the brush once I had remapped the palette. I will try it again.

--
moto
Title: Re: Making two images use the same palette
Post by: motorollin on September 14, 2008, 06:35:39 PM
Just tried it again and had the same problem. Here is exactly what I did:

1. Load the background image (SelectorBKG.iff) in to PPaint. Accept its dimensions and colour depth (640x256x256)
2. Load the preview image (nebulus.png) as a brush, which appears with incorrect colours
3. Remap the colours of the brush, and it appears with correct colours
4. Save the brush as an ILBM using:
a. Compression
b. Screen Format
c. Both Compression and Screen Format
d. Neither Compression nor Screen Format

In all cases, it turns out something like this:

(http://i298.photobucket.com/albums/mm244/motorollin/ags.png)

The image appears correctly if I open it in Multiview.

I'm wondering whether PPaint is saving in a format that AGS doesn't like? According to the AGS instructions, "name.iff should be a 320x128x8 bits image using the same palette as the background image". As far as I can tell, that's exactly what it is. :-?

--
moto
Title: Re: Making two images use the same palette
Post by: skurk on September 14, 2008, 06:43:21 PM
I remember PicCon (http://de4.aminet.net/gfx/conv/PicCon250.readme) having this feature.
Title: Re: Making two images use the same palette
Post by: motorollin on September 14, 2008, 07:45:20 PM
I can't work out how to do the palette matching in that software. I'm sure it should work in PPaint, but I can't figure out what's going wrong. Is an IFF brush identical to an IFF image? Maybe AGS doesn't like brushes :-?

--
moto
Title: Re: Making two images use the same palette
Post by: jmbattle on September 14, 2008, 10:21:28 PM
If you open the saved brush as an image, does it have the same colour depth and palette as the original background?

It has been a while since I last used PPaint, but I believe there are some save options for both IFF images and brushes (compression?) - perhaps you could experiment with the checkboxes and see if anything changes.

Cheers,
James
x
Title: Re: Making two images use the same palette
Post by: chris on September 14, 2008, 10:57:48 PM
Quote
Is an IFF brush identical to an IFF image?


Not exactly, but it should be close enough.  You could load it into Multiview and resave, that might tweak it into a marginally differently constructed IFF.
Title: Re: Making two images use the same palette
Post by: motorollin on September 15, 2008, 03:40:05 PM
Quote
jmbattle wrote:
If you open the saved brush as an image, does it have the same colour depth and palette as the original background?

Yes.

Quote
jmbattle wrote:
It has been a while since I last used PPaint, but I believe there are some save options for both IFF images and brushes (compression?) - perhaps you could experiment with the checkboxes and see if anything changes.

See above. Steps 4-a to 4-d encompassed all of those options.

--
moto
Title: Re: Making two images use the same palette
Post by: motorollin on September 15, 2008, 03:46:20 PM
Quote
chris wrote:
You could load it into Multiview and resave, that might tweak it into a marginally differently constructed IFF.

I don't have a save option in Multiview when I open that file, but your suggestion did give me an idea. I used GfxCon to import the ILBM file PPaint created and export it to another ILBM. This one displays fine in AGS!

The only problem is that the image is stretched in AGS. It all fits, but the image has been doubled in height. I have checked this by taking a screenshot and checking the size of the displayed image, and it is exactly double the height. Is this just a symptom of the resolution of the image compared to the screenmode?

--
moto