nesdev.com
https://forums.nesdev.com/

NTSC emulation test?
https://forums.nesdev.com/viewtopic.php?f=3&t=3393
Page 2 of 5

Author:  Zepper [ Sun Jun 03, 2007 6:43 am ]
Post subject: 

What emu did you use to take that screenshot?
Here what it looks like on RockNES anyways...
Image

Bigger:
Image

Author:  blargg [ Sun Jun 03, 2007 10:30 am ]
Post subject: 

The passing image was a video capture from my NTSC NES. The failing image was from my NES emulator in RGB mode.

Author:  Jagasian [ Sun Jun 03, 2007 10:30 am ]
Post subject: 

Can the test's bit pattern be tweaked to further obfuscate the "PASS!" message, when not displayed under NTSC?

Author:  tepples [ Sun Jun 03, 2007 12:59 pm ]
Post subject: 

Jagasian wrote:
Can the test's bit pattern be tweaked to further obfuscate the "PASS!" message, when not displayed under NTSC?

Not that I can think of right now.

But pixel aspect ratio is another bugaboo of mine, and I've added a second screen to the test program.

Author:  blargg [ Sun Jun 03, 2007 5:25 pm ]
Post subject: 

Nifty update. People so often post about aspect ratio problems for various emulators, and then other people give wrong authoritative answers like "A TV's width is 4:3 the height, therefore pixels are rectangular with the same ratio", even though the width of a pixel depends on the particular console, etc. I'll have to adapt your code to the SNES (including your flashy anti-aliased font heh).

Author:  Jagasian [ Sun Jun 03, 2007 6:55 pm ]
Post subject: 

tepples wrote:
Jagasian wrote:
Can the test's bit pattern be tweaked to further obfuscate the "PASS!" message, when not displayed under NTSC?

Not that I can think of right now.

But pixel aspect ratio is another bugaboo of mine, and I've added a second screen to the test program.


I just tested Nestopia using your latest TV test ROM, and the 1:1 box is definitely not square, but the NTSC box is just a little bit too tall. I actually measured with a ruler. I am using Nestopia's "TV Aspect" setting. Can anybody else confirm that Nestopia's aspect ratio is just slightly off, or is it user error on my part?

Author:  tepples [ Sun Jun 03, 2007 8:05 pm ]
Post subject: 

Nestopia is probably within the tolerance for consumer TV sets, as all CRTs are calibrated slightly different.

Author:  dvdmth [ Sun Jun 03, 2007 8:31 pm ]
Post subject: 

I just tested the Mac version of Nestopia. In full-screen mode, with aspect ratio correction set to 4:3. I took a full-screen screenshot (Command-Shift-3) and drew a diagonal line on the NTSC box from upper-left to lower-right. The line hit at the bottom edge, not even close to the corner. Even without drawing the line, I could tell that the box was wider than it was tall.

I'll post this at the Nestopia message board. The aspect ratio problem was brought up there before, and Richard Bannister claimed that the aspect ratio was correct. So much for that claim. When I first got Emulator Enhancer, I knew its aspect ratio correction was off, but I didn't have evidence to prove it. Now there is proof.

I can't verify the other test, though, because for some reason Nestopia is crashing every time I try to check the NTSC filter option (ugh!).

Author:  tepples [ Sun Jun 03, 2007 8:53 pm ]
Post subject: 

Before you bug Richard Bannister, I'd like to have the second screen tested on NES hardware on a couple different TVs first.

Author:  hap [ Mon Jun 04, 2007 12:59 am ]
Post subject: 

Maybe Nestopia calculates the aspect ratio based on NTSC_OUT_WIDTH from blargg's NTSC library, which width is about 3% too wide in favour of optimisations.
(it's what Sega Li does, with a bit too wide square as result)

*edit* Anyway, nice test tepples, and I agree with:
Quote:
Nestopia is probably within the tolerance for consumer TV sets, as all CRTs are calibrated slightly different.

Author:  dvdmth [ Mon Jun 04, 2007 6:51 am ]
Post subject: 

tepples wrote:
Before you bug Richard Bannister, I'd like to have the second screen tested on NES hardware on a couple different TVs first.
Even without the test ROM, I could tell (by comparing with two different TVs in my household) that the aspect ratio in Nestopia for Mac OS X was stretched too far horizontally (it was enough for me to notice within seconds after I got Emulator Enhancer, which is what adds the aspect ratio correction feature).

That said, testing on real hardware will help validate the test as accurate (at least within a particular margin of error), so I am all for hardware testing.

Author:  blargg [ Mon Jun 04, 2007 10:03 am ]
Post subject: 

Jagasian: did you first measure with a ruler a square box drawn with a graphics program? That'd rule out your monitor itself not being calibrated for the PC's square pixels.

hap: Using nes_ntsc, the NTSC box appears about 163x160 pixels; an emulator should display the output vertically doubled and horizontally unchanged, or some factor for both of those; the number of pixels in the image should have no part in aspect ratio handling.

tepples: Below are some camera shots of a TV connected to an NTSC NES running your latest test. For the aspect ratio test, the boxes were 75 mm high, and 80 mm, 61mm, and 85 mm wide from left to right. I also did a test shot of a square object (not shown) to verify that my digital camera's pixels are square. Oh, and you might want to add an epilepsy warning for the NTSC test, as it flickered a bunch on the TV (probably due to the PPU alternating between two phases between frames, rather than your code slowly shifting the diagonal pattern).

Image Image

(the TV is less warped in the right shot because I moved farther away and zoomed in, exactly for this purpose)

Author:  dvdmth [ Mon Jun 04, 2007 10:22 am ]
Post subject: 

OK, I took the TV image and compared it against the Nestopia screenshot, and the image from Nestopia is obviously wider. If I draw a diagonal line on the NTSC box in the TV image, the line almost hits the corner exactly (it's only slightly to the left of the lower-right corner), but in Nestopia, the line is pretty distant from the corner.

Again, this is the Mac port. The Windows version of Nestopia may have different results.

Author:  Zepper [ Mon Jun 04, 2007 2:26 pm ]
Post subject: 

Only Nestopia is the main point of this discussion? If another test pops, any error on Nestopia will be the main topic? :|

Author:  blargg [ Mon Jun 04, 2007 3:15 pm ]
Post subject: 

Feel free to list any other emulators which fail either test, and one or more of us can bug the author to get it fixed. How does RockNES fare on the aspect ratio test?

Page 2 of 5 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/