English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 13 November 2020, 20:09   #1
peceha
Registered User
 
peceha's Avatar
 
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
peceha is offline  
Old 14 November 2020, 18:25   #2
Daedalus
Registered User
 
Daedalus's Avatar
 
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.
Daedalus is offline  
Old 15 November 2020, 10:33   #3
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 284
Thanks a lot.
Nów all is working like a charm.
peceha 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
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

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 09:20.

Top

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