Kr0tki Posted April 6, 2009 Share Posted April 6, 2009 Hello, I'm trying to recreate the colours generated by NTSC Ataris, in order to improve the Atari800 emulator's video output quality; and I want to make it as accurate as possible. I am well aware of previous threads in this topic; I've even contributed to some of them. I'm also aware of a routine posted in this thread, that aims to recreate the NTSC colours. However that routine was based on only one NTSC screenshot, and that's not enough to consider it accurate. Additionally, the aforementioned screenshot contains a certain irregularity in its colours, and I'm not able to develop a mathematical basis for it. So I'd like to ask those of you who own NTSC Ataris and have access to a video capture device, to make some screenshots for me I've attached a program (in BASIC and as a DOS file) that generates a 256-colour screen. Please make a screen-grab of that program running and post it here. Now I've heard that modern PC video capture cards may not synchronise properly to Atari video output, and may produce unstable display. As long as some colour info is retained, such display would still be useful for me, so please post it anyway. Also provide some additional information if possible: computer model, whether it's GTIA or CTIA (yeah right), was it modified to S-VIDEO output, ClearPic or whatever. Based on gathered screenshots, it might then be possible to develop an accurate colour generation. Colors.zip Quote Link to comment Share on other sites More sharing options...
SeaGtGruff Posted April 6, 2009 Share Posted April 6, 2009 However that routine was based on only one NTSC screenshot, and that's not enough to consider it accurate. Additionally, the aforementioned screenshot contains a certain irregularity in its colours, and I'm not able to develop a mathematical basis for it. I think I had provided the only NTSC screenshot in that thread. I know what you mean about the irregularity, because I'd tried to get the grainy color blocks down to solid colors in a graphics program (by averaging or blending the pixels in each color block), then read off the RGB and HSL/HSV values for the solid colors, but I could never get values that conformed to an obvious pattern-- e.g., the different shades for hue 1 would come out with a wide divergence in the HSL hue values, and this was in the central shades, so I don't think it was due to clipping. That screenshot was from many years ago, using a VCR and Snappy capture device. I'll try recording a 256-color image to DVD and then transfer it to my computer. Michael Quote Link to comment Share on other sites More sharing options...
Kr0tki Posted April 6, 2009 Author Share Posted April 6, 2009 Yep, it was you who provided the only NTSC screenshot I could find on the whole Internet I've tried to develop a pattern for each of the 16 luminances, and every time it was diffrerent. Moreso, hues 1 and 15 looked almost the same, and that contradicted (well it's subjective) the GTIA.PDF document, in which those 2 hues are called "Gold" and "Light-Orange". So an additional screen capture would be extra cool, thanks. Quote Link to comment Share on other sites More sharing options...
+poobah Posted April 7, 2009 Share Posted April 7, 2009 Hmmm. Gonna be hard to do... Every camera has a different response curves (and lots of settings to muck about with), no guarantee that your display is going to accurate either (well, maybe you've got a mac with a colorometer) Good luck with the project. Quote Link to comment Share on other sites More sharing options...
Kr0tki Posted April 7, 2009 Author Share Posted April 7, 2009 (edited) Camera? I was actually thinking about connecting Atari to a TV card in a PC; making a photo would indeed not be accurate enough. SeaGtGruff's method is also practical. Edited April 7, 2009 by Kr0tki Quote Link to comment Share on other sites More sharing options...
HiassofT Posted April 7, 2009 Share Posted April 7, 2009 Camera? I was actually thinking about connecting Atari to a TV card in a PC; OK, here's a first try. I've only got a single, stock NTSC 800XL (I'm living in PAL world, too :-) and connected it via composite to my Hauppauge WinTV (BT878 chip). BTW: the COLORS.COM didn't work for me (tried with MyDOS and MyPicoDos), after loading it displayed the color screen for a short time and then the display broke down - MPlayer and xawtv only showed a blue screen (I never had this before, and I use my WinTV card all the time when testing Atari stuff). Anyways, here's the picture from COLORS.LST: so long, Hias Quote Link to comment Share on other sites More sharing options...
Rybags Posted April 7, 2009 Share Posted April 7, 2009 Capture cards also have the problem that you can have custom settings for gamma, brightness, contrast and hue shift. I think an "ideal" situation might be where we could sample the actual hue phase shift with a 'scope or some other fast measurement method. Luma is simple enough, since you can generate a static voltage that lasts near enough to 50 milliseconds. Then again, is the relationship between actual perceived brightness and the voltage on the luma signal exactly linear? Quote Link to comment Share on other sites More sharing options...
Allas Posted April 7, 2009 Share Posted April 7, 2009 Other way, I modified the bottom knob of my Ataris to get the most near to screenshots I seen on PC. Quote Link to comment Share on other sites More sharing options...
Kr0tki Posted April 7, 2009 Author Share Posted April 7, 2009 (edited) BTW: the COLORS.COM didn't work for me Strange. I've tested it under Atari800. I've got the program from the emulator's source package, I'd believe it to be error-free. Anyway, thanks for the screenshot. Then again, is the relationship between actual perceived brightness and the voltage on the luma signal exactly linear? Does you eye perceive brightness linearly? Well, I've found an article from which I don't understand too much, but it states that: - CRT displays don't display luminance linearly; they have a gamma of approx. 2.5; - NTSC cameras are designed to assume the above, and use gamma correction of 1/2.2 to correct the CRT's gamma. So I think the answer should be "no". But anyway I'd like to leave the gamma setting user-configurable. Problem solved Edited April 7, 2009 by Kr0tki Quote Link to comment Share on other sites More sharing options...
+Larry Posted April 7, 2009 Share Posted April 7, 2009 Here's a capture from my ATI PC video card -- my A8 display. -Larry Quote Link to comment Share on other sites More sharing options...
AB Positive Posted April 7, 2009 Share Posted April 7, 2009 All I have is RF connection to a regular TV but if a pic from that setup would help I'd be happy to take a few screenies. I have a SIO2PC cable to load the program. -AB Quote Link to comment Share on other sites More sharing options...
HiassofT Posted April 7, 2009 Share Posted April 7, 2009 Here's another capture of my NTSC 800XL, this time I used a Fast AV Master card (brightness, contrast, color set to 50%, color phase set to 0%). Interesting sidenote: COLORS.COM worked with this card. so long, Hias BTW: the video output of this 800XL is really crap compared to my other PAL 800XLs with the SuperVideo mod - I think I'll have to do the mod to the NTSC 800XL as soon as possible. Quote Link to comment Share on other sites More sharing options...
Allas Posted April 7, 2009 Share Posted April 7, 2009 Here's another capture of my NTSC 800XL, this time I used a Fast AV Master card (brightness, contrast, color set to 50%, color phase set to 0%). Interesting sidenote: COLORS.COM worked with this card. so long, Hias BTW: the video output of this 800XL is really crap compared to my other PAL 800XLs with the SuperVideo mod - I think I'll have to do the mod to the NTSC 800XL as soon as possible. Could you send a screenshot capture from your Supervideo XL? Quote Link to comment Share on other sites More sharing options...
Cybernoid Posted April 7, 2009 Share Posted April 7, 2009 All pics are from my old school Hauppaugge WinTV capture card via composite. From 800XL #1 | From 800XL #2 | From 130XE #1 | From 130XE #2 (has clear-pic video mod) Quote Link to comment Share on other sites More sharing options...
HiassofT Posted April 7, 2009 Share Posted April 7, 2009 (edited) Could you send a screenshot capture from your Supervideo XL? Here are some more screenshots, done with my Fast AV Master. BTW: I just noticed that they contain some JPEG artifacts, this card seems to do always JPEG compression (it also grabs movies in MJPEG only). Stock NTSC 800XL, no SuperVideo mod: My main PAL 800XL: Another PAL 800XL: My PAL 600XL: so long, Hias Edited April 7, 2009 by HiassofT Quote Link to comment Share on other sites More sharing options...
SeaGtGruff Posted April 7, 2009 Share Posted April 7, 2009 It's interesting that the PAL screenshots show definite (i.e., large) hue jumps at certain spots, like from red to purple, or from blue to green-- whereas the NTSC screenshots tend to have more gradual transitions. Michael Quote Link to comment Share on other sites More sharing options...
Rybags Posted April 8, 2009 Share Posted April 8, 2009 NTSC has much better colour graduation... the especially annoying thing with PAL is Colour 4 which many games assume to be a nice Red but on PAL you get an annoying purple. Similar with Colour 10, on PAL it's green with a hint of blue but on NTSC it's predominantly blue. Going by these shots though, PAL seems to have a nicer luma spread. Quote Link to comment Share on other sites More sharing options...
Allas Posted April 8, 2009 Share Posted April 8, 2009 Thanks for the screenshots, I take in consideration the next time i do some software for Atari. It's great to have the register PAL on Atari. Quote Link to comment Share on other sites More sharing options...
SeaGtGruff Posted April 8, 2009 Share Posted April 8, 2009 NTSC has much better colour graduation... the especially annoying thing with PAL is Colour 4 which many games assume to be a nice Red but on PAL you get an annoying purple. Similar with Colour 10, on PAL it's green with a hint of blue but on NTSC it's predominantly blue. Going by these shots though, PAL seems to have a nicer luma spread. I don't know about the luma spread on a TV screen. When I view the 2600's or 7800's NTSC color palette on a TV, the colors seem pretty bright. If I record it to a DVD, and play it back on the TV, it still seems bright. But if I view the DVD on my computer, the picture is hopelessly darkened, and no amount of fiddling with gamma corrections or brightness and contrast seems to give an adequate reproduction of what the TV shows. The screenshot I posted a while back-- in the other thread that's referred to in the first post-- was made many years ago from a 130XE connected to a VCR, which was connected to a Snappy, which was plugged into my computer. I had adjusted the brightness and contrast quite a bit in the Snappy software to try to get a decent luma spread, ranging from a pretty dark black to a pretty bright white. And back when the Atari 8-bit was my only computer (well, other than a VIC-20), I always displayed the 256-color palette and then adjusted my TV set's brightness, contrast, color saturation, and tint to get the best-looking colors. Michael Quote Link to comment Share on other sites More sharing options...
Rybags Posted April 8, 2009 Share Posted April 8, 2009 There's guidelines around somewhere... pretty sure with TVs, the assumption is that black equals a value of about 16, and maximum white 240 (of a 0-255 scale). Quote Link to comment Share on other sites More sharing options...
Cybernoid Posted April 8, 2009 Share Posted April 8, 2009 (edited) There's guidelines around somewhere... pretty sure with TVs, the assumption is that black equals a value of about 16, and maximum white 240 (of a 0-255 scale). Actually, if you are talking about the 8-bit codes in Rec. 601, then black is at 16 and white is at 235. The color difference components range from 16 to 240. Luma component has a range/excursion of ~220 and chroma components ~225. Wow, very limited information at Wikipedia... http://en.wikipedia.org/wiki/CCIR_601 For NTSC analog video, black should be at ~ 53 4/7 mV, White at ~714 2/7 mV, Blanking at 0 mV, and Sync at -285 5/7 mV. I guess that means since we have 16 luma values available on the Atari, they should be ~(660 5/7)/16 mV apart. Edited April 8, 2009 by Cybernoid Quote Link to comment Share on other sites More sharing options...
Kr0tki Posted April 8, 2009 Author Share Posted April 8, 2009 All I have is RF connection to a regular TV but if a pic from that setup would help I'd be happy to take a few screenies. Thanks, but I doubt that a photo would preserve colours with needed accuracy. It's interesting that the PAL screenshots show definite (i.e., large) hue jumps at certain spots, like from red to purple, or from blue to green-- whereas the NTSC screenshots tend to have more gradual transitions. Michael Yes, it looks strange. Hias, do the PAL colours really look like that on a real TV? Anyway, thanks for the screenshots. I'll analyse them when I get home. Quote Link to comment Share on other sites More sharing options...
AB Positive Posted April 8, 2009 Share Posted April 8, 2009 I didn't think it would help but I thought I'd offer. Thankfully some folk have TV capture cards Quote Link to comment Share on other sites More sharing options...
Rybags Posted April 8, 2009 Share Posted April 8, 2009 (edited) Yes, it looks strange. Hias, do the PAL colours really look like that on a real TV? In my experience they're usually less saturated than that, and the colours blend into each other a bit more smoothly. But of course it can vary hugely dependant on settings, whether you have video mods and which output you're using. I'll have to try my 400 out... it's got the nicest colour representation of my machines, although maybe not the sharpest picture. Edited April 8, 2009 by Rybags Quote Link to comment Share on other sites More sharing options...
atariksi Posted April 9, 2009 Share Posted April 9, 2009 NTSC has much better colour graduation... the especially annoying thing with PAL is Colour 4 which many games assume to be a nice Red but on PAL you get an annoying purple. Similar with Colour 10, on PAL it's green with a hint of blue but on NTSC it's predominantly blue. Going by these shots though, PAL seems to have a nicer luma spread. I saw some picture of Atari 2600 Palette on the internet resolved into RGBs. It looks same as Atari 800 palette (not including GTIA modes). A better approach (although more complex) would be to know the schematic of how the colors are outputted and model them using the behavior of the circuit. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.