amiga.org
     
iconAll times are GMT -6. The time now is 04:31 PM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » Amiga computer related discussion » General chat about Amiga topics » Dual playfield OCS technical explanation/help please

General chat about Amiga topics This forum is for conversations which are specifically "Amiga" related, but don't fit into other categories. Contents of this forum do appear on the main page, unlike Talk About. If a subject appears to be non-related, it will be moved to Talk About.

Reply
 
Thread Tools Display Modes
Old 09-16-2011, 02:58 PM   #1
Digiman
Defender of the Faith
Points: 6,596, Level: 53 Points: 6,596, Level: 53 Points: 6,596, Level: 53
Activity: 12% Activity: 12% Activity: 12%
 
Join Date: May 2010
Posts: 1,045
Default Dual playfield OCS technical explanation/help please

Anyone care to explain how bobs and sprite color palettes relate to definition of the two separately defined 16 colour palette of each playfield? Still any of the 32 colours can be used or just either one pair of each 16 colour palette per playfield?

A good web link for these kind of questions welcome too.
Digiman is offline   Reply With Quote
Old 09-16-2011, 04:02 PM   #2
Zac67
Kindred of Babble-on
Points: 12,421, Level: 72 Points: 12,421, Level: 72 Points: 12,421, Level: 72
Activity: 15% Activity: 15% Activity: 15%
 
Zac67's Avatar
 
Join Date: Nov 2004
Location: Erlangen, Germany
Posts: 2,851
Blog Entries: 4
Default Re: Dual playfield OCS technical explanation/help please

AFAIR OCS dual playfield is 6 bit deep, so it's 8 + 7 colors.
Zac67 is offline   Reply With Quote
Old 09-16-2011, 05:02 PM   #3
james666
Merely Curious
Points: 5,109, Level: 45 Points: 5,109, Level: 45 Points: 5,109, Level: 45
Activity: 1% Activity: 1% Activity: 1%
 
Join Date: Feb 2006
Posts: 19
Default Re: Dual playfield OCS technical explanation/help please

Quote:
Originally Posted by Digiman View Post
Anyone care to explain how bobs and sprite color palettes relate to definition of the two separately defined 16 colour palette of each playfield? Still any of the 32 colours can be used or just either one pair of each 16 colour palette per playfield?

A good web link for these kind of questions welcome too.
OCS displays can have up to 6 bitplanes. In dual playfield mode you can have up to 3 planes for each playfield, which gives up to 2^3 =8 colours per playfield, one of which is used as a transparent colour in the topmost playfield. Your dual playfield display then uses up the first 2*8 = 16 colour registers in total. A bob would have to use of the 8 colours on its own playfield. The sprites always use the second 16 colour registers regardless of the display type. I would Google for a scan of the "Amiga Hardware Reference Manual" or "Mapping the Amiga" if you're interested in this stuff.
james666 is offline   Reply With Quote
Old 09-17-2011, 03:07 AM   #4
Digiman
Defender of the Faith
Points: 6,596, Level: 53 Points: 6,596, Level: 53 Points: 6,596, Level: 53
Activity: 12% Activity: 12% Activity: 12%
 
Join Date: May 2010
Posts: 1,045
Default Re: Dual playfield OCS technical explanation/help please

Quote:
Originally Posted by james666 View Post
OCS displays can have up to 6 bitplanes. In dual playfield mode you can have up to 3 planes for each playfield, which gives up to 2^3 =8 colours per playfield, one of which is used as a transparent colour in the topmost playfield. Your dual playfield display then uses up the first 2*8 = 16 colour registers in total. A bob would have to use of the 8 colours on its own playfield. The sprites always use the second 16 colour registers regardless of the display type. I would Google for a scan of the "Amiga Hardware Reference Manual" or "Mapping the Amiga" if you're interested in this stuff.
OOOPS 2x8 colours yes. AGA is 2x16 colours.

Thanks people. So I can use sprites with 16 independent colours? OK I think it will work fine.

For those wondering why? I want to write a simple little game to get back into coding. So then look at the stage from 2:00 to 3:20 in this video

http://www.youtube.com/watch?v=S9P3Lq8g7ck

I'm going to code that up as a 100% accurate conversion.
Digiman is offline   Reply With Quote
Old 09-19-2011, 11:32 AM   #5
Mrs Beanbag
Technoid
Points: 2,576, Level: 30 Points: 2,576, Level: 30 Points: 2,576, Level: 30
Activity: 49% Activity: 49% Activity: 49%
 
Mrs Beanbag's Avatar
 
Join Date: Sep 2011
Location: Edinburgh, Scotland
Posts: 342
Default Re: Dual playfield OCS technical explanation/help please

also bear in mind that when you start the display data fetch 16 pixels early in order to allow fine sideways scrolling, you lose the last hardware sprite, because the sprite data is fetched during this horizontal blanking period. Some games avoid this by having a slightly narrower playing screen.
__________________
Signature intentionally left blank
Mrs Beanbag is offline   Reply With Quote
Reply

Bookmarks

Tags
dual , explanation or help , ocs , playfield , technical

Thread Tools
Display Modes

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