Search found 248 matches
- Fri Oct 28, 2011 4:02 pm
- Forum: NESemdev
- Topic: NTSC color palette emulation, with the square wave modulator
- Replies: 149
- Views: 95797
yay
I think I got quite a good result. It is now much closer to what I see on the tape than it was before. Thanks tepples and lidnariq. Source code (caching code redacted for brevity, performance may be bad): SDL_Surface *s; const int xres=256*1, yres=240*1; void Init() { SDL_Init(SDL_INIT_VIDEO); SDL_I...
- Fri Oct 28, 2011 1:53 pm
- Forum: NESemdev
- Topic: NTSC color palette emulation, with the square wave modulator
- Replies: 149
- Views: 95797
No, because the reconstructed chroma is subtracted from the received composite signal to calculate the true brightness. Hmm... Thanks for the explanation. I did not understand it, though... I am unsure how to phrase a question. I would think this in terms of an algorithm and I cannot figure out how...
- Fri Oct 28, 2011 1:47 pm
- Forum: NESemdev
- Topic: NTSC color palette emulation, with the square wave modulator
- Replies: 149
- Views: 95797
It raises a new one, instead: Would that not mean that a stripe of constant color would appear having a fluctuating brightness? No, because the color phase doesn't reset with every pixel: (hhhhhhll)(llllhhhh)(hhllllll) \_pixel1_/\_pixel2_/\_pixel3_/ Doesn't that only confirm that it would appear to...
- Fri Oct 28, 2011 1:29 pm
- Forum: NESemdev
- Topic: NTSC color palette emulation, with the square wave modulator
- Replies: 149
- Views: 95797
Pixels are eight half-cycles wide, not twelve. Oh! Wow. New information. Thanks for the correction. Does not answer my question, though. It raises a new one, instead: Would that not mean that a stripe of constant color would appear having a fluctuating brightness? hhllllllllhhhhllllllllhhhhllllllll...
- Fri Oct 28, 2011 1:16 pm
- Forum: NESemdev
- Topic: NTSC color palette emulation, with the square wave modulator
- Replies: 149
- Views: 95797
The horizontal position of any given point on the scanline is completely determined by the time difference since the last horizontal sync pulse. Hmm... So let me get this straight. I'll use these simplified representations where the length of sync/black/pulse are irrelevant. A non-shifted scanline:...
- Fri Oct 28, 2011 1:00 pm
- Forum: NESemdev
- Topic: NTSC color palette emulation, with the square wave modulator
- Replies: 149
- Views: 95797
One thing I don't understand about this pixel running phenomenon. If the scanline signal is shifted by 4 clocks every scanline, how come in all NTSC NES recordings I have seen so far, the edges between black and white pixels are completely artifactless while only color edges have artifacts? I am hav...
- Mon Oct 24, 2011 3:23 am
- Forum: NESemdev
- Topic: [My emulator] Graphics glitches - SuperMarioBros
- Replies: 44
- Views: 14874
This algorithm passes the ppu_vbl_nmi test
After spending a lot of CPU time trying to find the combination of timings that passes the ppu_vbl_nmi test, including test 7, in an automated manner, unsuccessfully , I dug up my earlier revision to try and discover what it was that I did earlier that actually worked. Reworking the complicated algo...
- Fri Oct 21, 2011 4:24 pm
- Forum: NESemdev
- Topic: $2007 memory behavior
- Replies: 20
- Views: 7174
I am just wondering whether in my emulator, can I use the same buffer for $2007 reads by the CPU and for VRAM reads triggered by the scanline rendering. Knowing how PPU works either way would be helpful. Using the same buffer would make the emulator a bit shorter and less filled with special cases, ...
- Fri Oct 21, 2011 2:09 pm
- Forum: NESemdev
- Topic: $2007 memory behavior
- Replies: 20
- Views: 7174
- Fri Oct 21, 2011 1:56 pm
- Forum: NESemdev
- Topic: $2007 memory behavior
- Replies: 20
- Views: 7174
- Fri Oct 21, 2011 12:07 pm
- Forum: NESemdev
- Topic: NTSC color palette emulation, with the square wave modulator
- Replies: 149
- Views: 95797
http://savepic.su/440214m.gif Wow! I remember that. Both the title screen (from some pirate cart), and the artifacts on the monochrome display that appeared at least when the channel was not properly tuned. Sorry for being selfish, but I would like to hear feedback on the images in my previous post...
- Fri Oct 21, 2011 11:47 am
- Forum: NESemdev
- Topic: $2007 memory behavior
- Replies: 20
- Views: 7174
- Fri Oct 21, 2011 5:49 am
- Forum: NESemdev
- Topic: NTSC color palette emulation, with the square wave modulator
- Replies: 149
- Views: 95797
Do not forget that the TV smooths out the picture only in the scanline. Vertically, the picture remains clear, each scanline looks are very clear. Do you mean that there are distinctly only 240 scanlines (minus portions rendered outside the visible screen)? Hmm, makes sense. So the dot crawl happen...
- Fri Oct 21, 2011 4:56 am
- Forum: NESemdev
- Topic: NTSC color palette emulation, with the square wave modulator
- Replies: 149
- Views: 95797
Okay. Here is a version in which the lines are merged together. Left: Rendered at 256x720, rescaled to 256x240 with box filter. Middle: Rendered at 3072x720, rescaled to 256x240 with box filter. Right: Rendered at 3072x720, line offset -6 (image moved half pixel to the right), rescaled to 256x240 wi...
- Fri Oct 21, 2011 4:17 am
- Forum: NESemdev
- Topic: NTSC color palette emulation, with the square wave modulator
- Replies: 149
- Views: 95797
On the other end, duration of NTSC frame are not multiple to NTSC masterclok and this make subcarrier dots crawling. Familiar term? Oh, I see. So it looks like this? (+4 offset on each successive scanline, +6 offset on consecutive frame, modulo 12, loop length 2 frames) http://bisqwit.iki.fi/kala/s...