That picture of the video output being quadrupled or multiplied is a bit peculiar though. I once swapped the video (and audio) clock crystal on the N64 motherboard to double the video clock output (or pixel bandwidth in this case) and had a similar result visually on my display (without colors due TV not recognizing "abnormal NTSC video modulation?").
There is a VI register between divot_en and serrate that involves the video bus clock (VBUS_CLK_EN) that should apparently never be activated since it can damage the N64 hardware – or at least that is how a few Github pages describe its function.
Yep, pretty sure most emulators don't emulate the hardware at this level, so changing the VI Status register won't have much of an effect on them.
As for GameShark codes, 80xxxxxx 00yy is an 8-bit write that writes value yy to the address xxxxxxxx, i.e. 803359FD 0000 would change the second byte in the register value (i.e. 01) to zero. 81xxxxxx yyyy is a 16-bit write, so 813359FC 0000 would overwrite the first and second byte in the value (i.e. 0001) with two zero bytes.
The quadrupled Mario 64 image I posted is, as far as I can guess with my limited knowledge, probably the result of setting the hardware up to use a 32-bit framebuffer, but the game still writing 16-bit data there, i.e. one that's, byte-wise, half the size of what the hardware expects. Not sure why exactly it's quadrupled like that, and not just doubled, but the colors are roughly what you get when trying to decode 16-bit RGBA5551 pixel data as 32-bit RGBA8888.
There's a good chance they use the raw framebuffer data instead of converting it like the VI does. VI filters are not simple or straightforward to emulate (much less correctly), but there's more at play than just post-processing.
In response to the person who said it looked like they lost color depth, you did.
Actual output on console is 7bits per channel. In all cases alpha in the framebuffers are ignored.
In 15bit color mode noise dither and gamma correction is added to the five bits of data per channels to produce the output.
In "32bit" color mode only the 24bits of color are used. The least significant bits of the eight bit channels are dropped and said VI effects are added to produce output.
So on real hardware, even before you factor in RGB->YIQ/YUV conversion, there's effectively no difference in quality between the two video modes but there's a significant difference in resources used.
32bit color mode means you eat double the rdram per framebuffer compared to 16bit color. It can operate in two modes though. In single-cycle mode only one framebuffer is needed, but this is usually washed out. There's the potential for a run condition when filling it as well, but mostly it's that it looks bad. Two-cycle mode alternates between framebuffers, which is basically what 16bit output is locked into using. This consumes twice the rdram though, and framebuffers eat a lot of memory: width * height * depth * num.
So, it should be obvious now why you're seeing four images. The first two are simple: you doubled the amount of info you read on each scanline (from 16 to 32 bits). 32bit framebuffers are twice as long so you see double the info at one time. The other two images are due to 32bit framebuffers being twice as long as well. You're actually viewing two 16bit framebuffers at the same time.
Why does c4 becames c5 and 94 becomes 95? why do you add 1 at the end?
And for 013012 you replace with 0000 and for 013016 you replace it for 0032? Is that correct?
The USA Mario 64 rom only has 013016 and no 013012, so I just replace it for 0032?
Haven't been logged in here in awhile. A friend pointed me to this thread. I too have a xrgb-mini.
I think this needs to be wiki-fied somewhere for codes and explanations.
This is a really important thread for those of us with PVMs. Thanks to everyone who has contributed.
For those who wonder why this is something people are so interested, it's because when you play an N64 in RGB on a PVM or CRT, the image looks terrible as a result of the filter. The video that Fandangos linked to shows how bad it looks.
The Xbox flicker/soften filter does the same thing when the Xbox is in SD video mode (RGB and composite). When I applied the FilterFucker patch to my games (similar to what is being done here for the N64), it made the Xbox look downright stunning on my PVM. It looks like this will make as drastic of a difference for the N64.
Ah, I'm not saying that there's no game that uses the setting, just that some games that are not meant for it might look worse than others, objectively or subjectively, when forcing it. Or even worse, while the setting might work for one version of one game, it might not work for a different version of the same game, like my OoT NTSC vs PAL example; I had linked a screenshot of the breakage in my first post in the thread.
Basically, what I'm trying to say, as advice for everyone wanting to experiment with this: Don't expect one game to behave like the next, you might have to tweak the settings a bit.
If you use the original Everdrive 64 OS by Krikzz it's easy. just add using the game select menu.
If you use the Alt64 menu by Saturnu you need to have the cheat files in ED64\Cheats folder in the root of your SD card.
The cheats must be in YALM format, that can be edited by Notepad++ *use notepad++, even textpad didn't work.
There are a bunch of examples in there, so just copy one and rename the cheats and add the values posted in this thread.
EDIT:
I'm still not 100% sure of how this is properly converted to game shark codes but this will cut the finding and digging proccess.
Banjo-Kazooie (USA) (Rev A)
No 00 01 30 12 found
No 00 01 30 16 found.
00 01 30 06 found at:
0x002761FC
0x0027622C
007 - The World Is Not Enough (USA)
00 01 30 12 found at A4400000
00 01 30 12 found at:
0x000D10FC
0x000D112C
No 00 01 30 06 found
No 00 01 30 16 found
Castlevania (USA) (Rev B)
00 01 30 12 found at A4400000
00 01 30 12 found at:
0x000A28CC
0x000A28FC
No 00 01 30 16 found
No 00 01 30 06 found
Castlevania - Legacy of Darkness (USA)
00 01 30 52 found at A4400000
00 01 30 52 found at:
0x000BB8BC
0x000BB8EC
No 00 01 30 16 found
No 00 01 30 06 found
No 00 01 30 12 found
Dr. Mario 64 (USA)
00 01 30 12 found at A4400000
00 01 30 12 found at:
0x000107EC
0x0001081C
No 00 01 30 16 found
No 00 01 30 06 found
Killer Instinct Gold (USA) (Rev B)
00 00 32 42 found at A44000000
00 00 32 42 found at:
0x00006FEC
0x0000701C
No 00 01 30 16 found
No 00 01 30 06 found
No 00 01 30 12 found
Just some observations:
1) What you are modifying- The value that you guys have found appears to be the value that the VI Manager saves when it switches frame buffers. For games that use 2 or more frame buffers, the context of the frame buffer (which includes the 0xA4400000 VI status register) is saved when the frame buffer is swapped out, and restored the next time that buffer is used. Two frame buffers == two saved contexts which is why so many games have the context value appear twice in succession.
2) More AA is possible - Games used anti-aliasing 2 ways (that I know of) - silhouette AA, and internal AA. The VI is responsible for the external silhouette AA, which has been addressed in this thread by changing the saved VI context. However, the blender in the RDP will still perform internal AA on the objects via the gDPSetRenderMode gbi command. If you want to disable internal AA as well, you'll need to modify every instance of this gbi command (there are usually a ton of them!), but I don't know how much of a difference disabling internal AA would make.