28 June 2020, 13:32 | #1 |
Registered User
Join Date: Jun 2020
Location: Australia
Posts: 18
|
AGA 64Px sprites with more colours.
Sorry if this has been discussed but I'm wondering if this is possible.
I have 2 playfields, both 4bpl (16 cols ea ) and using large 64px sprites to display a logo, I can display 16 col sprites easily. Both playfields are built using tiles from data I dumped directly from MAME. I'm basically trying to reproduce the title screen of an arcade game I used to play as a youngster. First screenshot is the Amiga screen from UAE and second is the arcade, the logo on the arcade is 35 colours, black for transparency. Fmode x 4 for sprites and bitmap data. Image is 256x240, so 4 x 64px sprites total. My copper list for the sprites look like this. . . dc.w BPLCON4,%00110010 . . spritePalette: ; Bank 1 - Colors dc.w BPLCON3,%0011000001000000 ; CLR BANK1 - PF2OF16 - LOCT0 - LORES SPR dc.w $0180,$0000,$0182,$0226,$0184,$0448 dc.w $0186,$0555,$0188,$0559,$018a,$0666,$018c,$066a dc.w $018e,$0777,$0190,$077b,$0192,$0888,$0194,$088c dc.w $0196,$099d,$0198,$0aae,$019a,$0bbf,$019c,$0ccf dc.w $019e,$0ddd The problem is I cannot use attached sprites that have more than 4 bpl ( using Piccon to convert from iff to raw ). Is it possible to change/cycle the colours on the fly, using multiple copper lists for the sprites ( I will need at least 3 x 16 cols ) and different colour banks ? Thanks in advance. |
28 June 2020, 15:13 | #2 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,480
|
Quote:
Change with copper, on the right positions, on the fly, OSPRM bits in BPLCON4 register (a color bank selector for sprite, in your case in 16 colors). |
|
29 June 2020, 05:37 | #3 |
Registered User
Join Date: Jun 2020
Location: Australia
Posts: 18
|
Thanks, I totally forgot about BPLCON4. I'll give that a try.
|
02 July 2020, 16:02 | #4 |
Registered User
Join Date: Jun 2020
Location: Australia
Posts: 18
|
Finally figured it out. I did something like this where I switched banks in my copper list and made changes to the colours to match the arcade.
This was quite tedious work, are there any visual tools available that might make this process a little easier ? titleScreenTweaks: dc.w $5c0f,$ff00 dc.w BPLCON3,%0100110001000000 ;COLOR BANK2 - PF2OF8 dc.w BPLCON4,%0000000000110100 dc.w $0192,$0337 ... ... dc.w $6b0f,$ff00 dc.w BPLCON3,%0110110001000000 ;COLOR BANK3 dc.w BPLCON4,%0000000000110110 ... ... dc.w $8c0f,$ff00 dc.w BPLCON3,%1000110001000000 ; COLOR BANK4 dc.w BPLCON4,%0000000000111000 ... |
02 July 2020, 16:25 | #5 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,480
|
Not that I know, but it would be really useful to have some visual tools (possibly in cross-development) for the management of the real-time color changes made with the copper on the tile/bitmap/sprite map.
Just look at the spectacular Metro-Siege what has managed to do with a similar technique (well, in fact with the colors bank switcher on AGA it is really very simple, but the concept could also be expanded by the direct change of colors). |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Re-using AGA sprites on the same scanline? | mcgeezer | Coders. Asm / Hardware | 20 | 27 March 2020 02:04 |
Sprites mutliplexing AGA | mcgeezer | Coders. General | 24 | 29 August 2018 19:20 |
Aga Sprites Attached issue | sandruzzo | Coders. Asm / Hardware | 11 | 28 April 2016 14:17 |
AGA: Using 32 pixel sprites twice per scanline | buzzybee | Coders. Asm / Hardware | 18 | 05 January 2016 20:26 |
AGA border sprites | mark_k | support.WinUAE | 9 | 06 January 2014 14:35 |
|
|