![]() |
![]() |
#1 |
Registered User
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 284
|
[blitz] InitCopList, dual playfield, AGA - palette question
Hi,
Seems like I just cannot figure out how the palette should Look like when using two 16 colors Pictures. Lets start from beginning. The goal is to have 2 Pictures 4 bitplans each. 1. Should InitCopList be given 32 as colors number ? 2. Palette object should have 32 colors, first 16 for back picture, last 16 for fore-picture, right? 3. If I use initPalette 0,32 and then use loadPalette from 16 colors image, will my palette object 'shrink' to 16 colors or remain with initial 32 slots? Thanks |
![]() |
![]() |
#2 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,381
|
That setup sound right (32 colour Coplist, 32-colour palette), but if you're using a dual playfield display, you need to bear in mind that the palettes will overlap by default, since AGA defaults to OCS/ECS compatibility mode. This means that the palette for the second playfield starts at 8, not 16, so your first picture will use pens 0-15, the second will use pens 8-23. Use DisplayControls to adjust BPLCON3 (I can't remember the exact bits) to adjust the offset so that the second playfield uses pens 16-31.
If you load a 16-colour palette using LoadPalette, it will always load into the first 16 pens, regardless of the display setup. The higher pens will be left blank, but will still be present in the palette object. The LoadPalette command has an optional offset parameter - load in your first 16-colour palette as normal, then load the second 16 colour palette with 16 as the offset, and it should be loaded into pens 16-31. |
![]() |
![]() |
#3 |
Registered User
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 284
|
Thanks a lot.
Nów all is working like a charm. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question on dual playfield mode | cbmeeks | Coders. General | 7 | 29 May 2020 21:13 |
AGA Dual Playfield Colour Assignment | mcgeezer | Coders. Asm / Hardware | 21 | 24 January 2020 15:29 |
AGA Sprite + Dual Playfield Limits | Marle | Coders. Blitz Basic | 14 | 12 January 2019 14:14 |
Dual Playfield Palette Assignments | LuMan | Coders. Blitz Basic | 1 | 24 February 2016 15:35 |
Dual playfield colors and AGA | losso | Coders. Asm / Hardware | 1 | 03 December 2013 02:48 |
|
|