IanSB / RGBtoHDMI

Bare-metal Raspberry Pi project that provides pixel-perfect sampling of BBC Micro video and conversion to HDMI
GNU General Public License v3.0
129 stars 6 forks source link

Apple IIc colors inverted/wrong with Beta54 #14

Closed jma7x closed 1 year ago

jma7x commented 1 year ago

I just tried Beta54 with my Apple IIc (TTL interface) with a Pi 3 B, and the colors are somehow inverted/wrong. I see the Artifact Type defaults to "Apple (Zero 2W)". If I change it to "Simple (Old Code)", then it seems fine. This affects both text and graphics. (Note: I also tried Beta53 and it seemed to only have the issue with graphics)

So I guess the question is, should the new artifact color work with the Pi 3 B (from the release notes, it sounds like it?)

capture1

Thanks

IanSB commented 1 year ago

@jma7x

It looks like the new artifact code can't handle the inverted video on the IIc's digital output. I don't have a IIc but I can pick up the same signals internally on the IIe so I will have a look at that when I have made up a lead. The new code should work on the analog video output which is not inverted but would require an analog board.

jma7x commented 1 year ago

Unfortunately I don't have an analog board, so I can't try that. I can test any updates you make though for the digital output if that would help. Would it be feasible to just have the cpld invert the signal?

IanSB commented 1 year ago

@jma7x

Would it be feasible to just have the cpld invert the signal?

No, the fix would have to be be done in software.

IanSB commented 1 year ago

@jma7x

FYI I've just made up a lead so there should be a fix soon now that I can test it

IanSB commented 1 year ago

@jma7x

There is a new beta 55 with a fix for Apple IIc colors here: https://github.com/IanSB/RGBtoHDMI/releases

Let me know if it works for you

jma7x commented 1 year ago

Looks good with beta 55! Switching back and forth between the old code and the new, solid blocks of color seem the same, but I do see the subtle improvements on edges with the new code. Thanks!

IanSB commented 1 year ago

@jma7x

Looks good with beta 55! Switching back and forth between the old code and the new, solid blocks of color seem the same, but I do see the subtle improvements on edges with the new code.

Thanks for confirming. The new code is mainly meant for CGA sources as it works properly in 320x200 4 colour modes and also displays the >1000 colours generated by the 8088mph demo. The old code only works in mono mode mode on CGA (i.e. similar to the Apple II) and displays a maximum of 16 colours.