18 January 2021, 22:53 | #1 |
Registered User
Join Date: Dec 2020
Location: Grangemouth
Posts: 26
|
Still Struggling with Images & Amos
So, loading an IFF file into Amos is ok but, the problem I am having is that Amos is changing the colour palette affecting other graphics with colour in my program.
You can see from the images that all of the colours that have red and so on are changed as soon as they are loaded into Amos. I've tried saving to different resolutions and the number of colours. What am I doing wrong or missing please? |
19 January 2021, 22:22 | #2 |
Registered User
Join Date: Nov 2004
Location: Germany
Posts: 629
|
Well, depending on the color depth, you have a very limited color possibilities on the amiga.
2,4,8,16,32, 64 colors and the HAM (4096 i think) mode. When you load a 32 color image, to display it right, amos has to change the color palette. When you convert the pictures from the pc, convert them to either 32 or less colors and see how they look like. (so far i know, the 64 color mode is the same as 32 color mode with additional 32 colors, which are the same as the 1st 32 colors, just a bit darker or brighter) What you can do, is to open a new screen at the bottom of the image (if there is space of course) with just enough space to write the text, and this screen can hold the colors which you would use. Or, if the color conversion to 16 colors looks ok, then you can manually change the colors 17-31 and use them to write the text. Or (idk if this can be done) convert the image to 28~29 colors and set and use the remaining colors to draw the text. edit: I'v just converted the image to 16 colors, and this is how it looks like (in amos pro): Last edited by Dan; 19 January 2021 at 22:40. |
20 January 2021, 00:13 | #3 |
Registered User
Join Date: May 2006
Location: Kilmacolm
Age: 46
Posts: 632
|
I think you can use imagemajick colour quantise function to reduce your image to 28/29 colours leaving you a few free in the 32 colour palette for your interface colours.
Something like - magick convert yourimage.png +dither -colors 28 yourimage28colour.iff You'll need to check this works with iff files, probably imagemajick can do the conversion in the same step as shown. I think you'll also have to check the palette is ordered the way you need, ie. which palette entries are left unused for you to use freely. The +dither option turns dithering off, you may want to experiment with this to get the best result. https://imagemagick.org/index.php https://imagemagick.org/script/comma...ons.php#colors https://imagemagick.org/script/comma...ons.php#dither |
20 January 2021, 05:52 | #4 | |
Registered User
Join Date: Dec 2020
Location: Grangemouth
Posts: 26
|
Quote:
Easy Amos will not do what I want graphics wise Amos Pro does display the IFF correctly and the buttons colours are now there apart from green and white is missing. I have tried Personal Paint and although the procedures work for that program, AMOS still doesnt give me the button colours. I even re-drew the button bobs under 32 resolution on the bob editor. Again, no change. I then tried changing the colour in the code i.e. screen open 0,320,256,16,lowres or screen open 0,320,256,32,lowres and still no change. |
|
21 January 2021, 00:39 | #5 |
Registered User
Join Date: Jan 2021
Location: Darksideofthemoon
Posts: 69
|
I tried your small script with that amos compilation for windows, but moved all and everything into a working WB3.1 setup.
Code:
Load Screen 0,320,240,32,Lowres Flash Off Load Iff "avengers_320x240.iff" If i didn't do anything wrong here, then maybe your iff color depth still mismatch to the lowres screen? |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Saving Images in Easy Amos | WAKD | Retrogaming General Discussion | 0 | 22 December 2020 04:06 |
WinUAE,AMOS & Fastram | volvo_0ne | Coders. AMOS | 1 | 13 March 2018 23:38 |
Floppy images & speed issues (Mac OS X) | ameath | support.FS-UAE | 8 | 27 August 2013 08:07 |
f/s Amiga Amos Programming books / Disks / Easy Amos & other Books *mega collection!* | fitzsteve | MarketPlace | 4 | 23 May 2012 04:35 |
Amiga Basic & loading images | Ze Emulatron | Coders. General | 16 | 22 November 2011 18:50 |
|
|