English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 18 January 2021, 22:53   #1
WAKD
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?
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	94
Size:	71.9 KB
ID:	70461   Click image for larger version

Name:	abandoned-house.png
Views:	92
Size:	181.6 KB
ID:	70462   Click image for larger version

Name:	IMG_20210117_225127.jpg
Views:	89
Size:	1.00 MB
ID:	70463   Click image for larger version

Name:	IMG_20210118_211413.jpg
Views:	79
Size:	1,017.4 KB
ID:	70464   Click image for larger version

Name:	IMG_20210118_211426.jpg
Views:	81
Size:	965.9 KB
ID:	70465  

WAKD is offline  
Old 19 January 2021, 22:22   #2
Dan
Registered User
 
Dan's Avatar
 
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):
Attached Thumbnails
Click image for larger version

Name:	Image1.jpg
Views:	290
Size:	292.6 KB
ID:	70490  

Last edited by Dan; 19 January 2021 at 22:40.
Dan is offline  
Old 20 January 2021, 00:13   #3
jimbob
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
jimbob is offline  
Old 20 January 2021, 05:52   #4
WAKD
Registered User
 
Join Date: Dec 2020
Location: Grangemouth
Posts: 26
Quote:
Originally Posted by jimbob View Post
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
Hi Dan and thanks for your help. So far this is what I have found:
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.
WAKD is offline  
Old 21 January 2021, 00:39   #5
freakofnature
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"
The result is quite pleasing i must admit.
If i didn't do anything wrong here, then maybe your iff color depth still mismatch to the lowres screen?
Attached Thumbnails
Click image for larger version

Name:	amos_test.png
Views:	79
Size:	112.3 KB
ID:	70512  
freakofnature is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:09.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07590 seconds with 16 queries