12 September 2015, 21:38 | #1 |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
Query about Extra Half-Brite (EHB)
So OCS/ECS Amigas had this mode which on principle takes the 32 colours of the first five bitplanes and with the extra bits of the sixth bitplane, halves the brightness if the bit is set.
What I've always wondered about is if the halved brightnesses were tied into the 4096 colours of the first 32, or unique accurate shades in their own right. What I mean is, say if a colour register with R01 G02 B03 is used in an image, would the EHB equivalent be R0.5, G01 and B1.5 or would it be the closest colours to be compatible with the 16 levels of RGB that this chipset could produce? |
12 September 2015, 21:56 | #2 | |
Registered User
Join Date: Mar 2012
Location: Norfolk, UK
Posts: 1,157
|
Quote:
|
|
12 September 2015, 22:01 | #3 |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
Thanks, robinsonb5, I figured it would be that. Just wanted confirmation. I assume the same is true for AGA as well?
|
12 September 2015, 22:15 | #4 |
J.M.D - Bedroom Musician
Join Date: Apr 2014
Location: los angeles,ca
Posts: 3,604
|
@foebane
Wish it was so,and have a 512 colors EHB mode for aga, but afaik does not. |
12 September 2015, 23:57 | #5 |
Shameless recidivist
Join Date: Jun 2012
Location: Duluth, Minnesota (USA)
Age: 38
Posts: 266
|
I think he means, does the EHB mode work the same on the AGA chipset, since the DACs there are 6 bits per element?
|
13 September 2015, 00:08 | #6 |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
I thought when it came to EHB in AGA, it was 8 bits per element?
Come to think of it, I'm even more confused now. I'm thinking of five bitplanes in OCS for EHB, so how many are there in AGA? Can someone describe in detail how EHB in AGA works, please? |
13 September 2015, 01:08 | #7 |
Registered User
Join Date: Feb 2015
Location: Sweden
Age: 50
Posts: 2,988
|
Can palette switching be used in AGA? Dividing screen into blocks / slices and modifying palette registers on the fly during vertical scans?
Using this trick it was apparently possible to produce 512 colors on ECS, but with limitations of course (one 32 color palette / block) |
13 September 2015, 01:12 | #8 |
Glastonbridge Software
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,243
|
of course, AGA machines also have copper, you can change any hardware register approximately every 8 pixels. Writing a 24-bit colour value requires 3/4 register writes though.
|
13 September 2015, 08:48 | #9 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,574
|
EHB works exact same in AGA, 6 bit plane mode without BPLCON2 KILLEHB bit set. (KILLEHB was originally introduced in ECS Denise, meant for genlock mode where 6th plane can be genlock transparency mask, it was not AGA-only bit).
BPLCON4 upper 8 bits can be used to make quick color "bank" switches on AGA machines. |
13 September 2015, 10:35 | #10 |
Glastonbridge Software
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,243
|
so what happens if you use EHB on an AGA machine, but use 24-bit colour values in the palette?
|
13 September 2015, 11:07 | #11 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,574
|
|
13 September 2015, 11:14 | #12 |
Glastonbridge Software
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,243
|
|
13 September 2015, 11:17 | #13 | |
Banned
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
|
Quote:
And HAM8 is another query, as well. HAM6 is simple to understand, the first two bits being: 0 - Colour register 1 - Red 2 - Green 3 - Blue (OK, maybe not in that order) and the remaining four bits being used for a value of 0-15 for each one, which makes full use of the OCS 4096 colours, or 12-bit palette. BUT... HAM8 is the first two bits used as described above, but leaving only 6-bit precision (64 levels) of Red, Green, and Blue. So what does AGA do then? Take the colour register with the 24-bit RGB, convert that to the closest 18-bit RGB and then modify the R, G or B in 6 bits? Last edited by TCD; 13 September 2015 at 11:27. Reason: Back-to-back posts merged. |
|
13 September 2015, 11:24 | #14 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,574
|
|
13 September 2015, 11:43 | #15 |
Glastonbridge Software
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,243
|
|
13 September 2015, 12:18 | #16 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,574
|
No
Quote:
You are right, for some reason I thought them as 2 separate 4 bit shifters (which probably isn't right, unless EHB really was designed to be fully OCS/ECS compatible) |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ggc 2015 ehb | obiwanken | support.Apps | 0 | 20 May 2015 19:47 |
EHB problems | Galahad/FLT | Coders. Asm / Hardware | 27 | 25 April 2014 14:39 |
Converting JPG to HAM6/EHB with ImageStudio | jman | support.Apps | 0 | 21 June 2011 17:42 |
C2P Assember update required (6bit EHB hacking!) | NovaCoder | Coders. General | 14 | 16 April 2011 12:26 |
EHB sprites with AGA chipset ? | FrenchShark | Coders. General | 4 | 17 September 2009 06:37 |
|
|