How did Super Mario Bros. 3 create this tunnel vision effect?
Clash Royale CLAN TAG#URR8PPP
In a certain section of World 8's map, the screen is black except for a small circle surrounding Mario (as seen below during this speedrun).
After doing a little research, I discovered that the game's cartridge contains a special mapper chip. This mapper, labeled MMC3, allows the generation of raster interrupts which are normally unavailable on the NES. In other words, the CPU can be interrupted, at most, once per scanline. Code may then be placed inside this interrupt to adjust certain PPU registers on a per-scanline basis, allowing for visual effects such as (presumably) the tunnel vision effect seen above.
What I don't understand, however, is how this specific effect was achieved (i.e., exactly what PPU registers the raster interrupts modified, if raster interrupts were even used at all).
nintendo nes
add a comment |
In a certain section of World 8's map, the screen is black except for a small circle surrounding Mario (as seen below during this speedrun).
After doing a little research, I discovered that the game's cartridge contains a special mapper chip. This mapper, labeled MMC3, allows the generation of raster interrupts which are normally unavailable on the NES. In other words, the CPU can be interrupted, at most, once per scanline. Code may then be placed inside this interrupt to adjust certain PPU registers on a per-scanline basis, allowing for visual effects such as (presumably) the tunnel vision effect seen above.
What I don't understand, however, is how this specific effect was achieved (i.e., exactly what PPU registers the raster interrupts modified, if raster interrupts were even used at all).
nintendo nes
1
I can't comment, but here's a link to the "source code" to Super Mario Bros. 3, with comments. github.com/captainsouthbird/smb3
– C. Uwakweh
Dec 31 '18 at 7:23
add a comment |
In a certain section of World 8's map, the screen is black except for a small circle surrounding Mario (as seen below during this speedrun).
After doing a little research, I discovered that the game's cartridge contains a special mapper chip. This mapper, labeled MMC3, allows the generation of raster interrupts which are normally unavailable on the NES. In other words, the CPU can be interrupted, at most, once per scanline. Code may then be placed inside this interrupt to adjust certain PPU registers on a per-scanline basis, allowing for visual effects such as (presumably) the tunnel vision effect seen above.
What I don't understand, however, is how this specific effect was achieved (i.e., exactly what PPU registers the raster interrupts modified, if raster interrupts were even used at all).
nintendo nes
In a certain section of World 8's map, the screen is black except for a small circle surrounding Mario (as seen below during this speedrun).
After doing a little research, I discovered that the game's cartridge contains a special mapper chip. This mapper, labeled MMC3, allows the generation of raster interrupts which are normally unavailable on the NES. In other words, the CPU can be interrupted, at most, once per scanline. Code may then be placed inside this interrupt to adjust certain PPU registers on a per-scanline basis, allowing for visual effects such as (presumably) the tunnel vision effect seen above.
What I don't understand, however, is how this specific effect was achieved (i.e., exactly what PPU registers the raster interrupts modified, if raster interrupts were even used at all).
nintendo nes
nintendo nes
asked Dec 29 '18 at 21:14
cschultz2048cschultz2048
30325
30325
1
I can't comment, but here's a link to the "source code" to Super Mario Bros. 3, with comments. github.com/captainsouthbird/smb3
– C. Uwakweh
Dec 31 '18 at 7:23
add a comment |
1
I can't comment, but here's a link to the "source code" to Super Mario Bros. 3, with comments. github.com/captainsouthbird/smb3
– C. Uwakweh
Dec 31 '18 at 7:23
1
1
I can't comment, but here's a link to the "source code" to Super Mario Bros. 3, with comments. github.com/captainsouthbird/smb3
– C. Uwakweh
Dec 31 '18 at 7:23
I can't comment, but here's a link to the "source code" to Super Mario Bros. 3, with comments. github.com/captainsouthbird/smb3
– C. Uwakweh
Dec 31 '18 at 7:23
add a comment |
1 Answer
1
active
oldest
votes
No MMC3 tricks are used for this effect; just standard background and sprite manipulation. Tiles that are completely invisible are replaced with a blank tile, while black sprites forming a circle outline cover the partially-visible tiles.
We can make the effect more obvious by drawing background and sprites separately (and coloring the circle sprites white instead of black):
6
+1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
– cschultz2048
Dec 29 '18 at 22:39
1
+1. Sometimes the answer is much simpler than people imagine. Thanks for reminding us of that.
– cbmeeks
Jan 2 at 20:15
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "648"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fretrocomputing.stackexchange.com%2fquestions%2f8603%2fhow-did-super-mario-bros-3-create-this-tunnel-vision-effect%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
No MMC3 tricks are used for this effect; just standard background and sprite manipulation. Tiles that are completely invisible are replaced with a blank tile, while black sprites forming a circle outline cover the partially-visible tiles.
We can make the effect more obvious by drawing background and sprites separately (and coloring the circle sprites white instead of black):
6
+1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
– cschultz2048
Dec 29 '18 at 22:39
1
+1. Sometimes the answer is much simpler than people imagine. Thanks for reminding us of that.
– cbmeeks
Jan 2 at 20:15
add a comment |
No MMC3 tricks are used for this effect; just standard background and sprite manipulation. Tiles that are completely invisible are replaced with a blank tile, while black sprites forming a circle outline cover the partially-visible tiles.
We can make the effect more obvious by drawing background and sprites separately (and coloring the circle sprites white instead of black):
6
+1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
– cschultz2048
Dec 29 '18 at 22:39
1
+1. Sometimes the answer is much simpler than people imagine. Thanks for reminding us of that.
– cbmeeks
Jan 2 at 20:15
add a comment |
No MMC3 tricks are used for this effect; just standard background and sprite manipulation. Tiles that are completely invisible are replaced with a blank tile, while black sprites forming a circle outline cover the partially-visible tiles.
We can make the effect more obvious by drawing background and sprites separately (and coloring the circle sprites white instead of black):
No MMC3 tricks are used for this effect; just standard background and sprite manipulation. Tiles that are completely invisible are replaced with a blank tile, while black sprites forming a circle outline cover the partially-visible tiles.
We can make the effect more obvious by drawing background and sprites separately (and coloring the circle sprites white instead of black):
answered Dec 29 '18 at 22:08
NobodyNadaNobodyNada
3,1761428
3,1761428
6
+1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
– cschultz2048
Dec 29 '18 at 22:39
1
+1. Sometimes the answer is much simpler than people imagine. Thanks for reminding us of that.
– cbmeeks
Jan 2 at 20:15
add a comment |
6
+1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
– cschultz2048
Dec 29 '18 at 22:39
1
+1. Sometimes the answer is much simpler than people imagine. Thanks for reminding us of that.
– cbmeeks
Jan 2 at 20:15
6
6
+1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
– cschultz2048
Dec 29 '18 at 22:39
+1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
– cschultz2048
Dec 29 '18 at 22:39
1
1
+1. Sometimes the answer is much simpler than people imagine. Thanks for reminding us of that.
– cbmeeks
Jan 2 at 20:15
+1. Sometimes the answer is much simpler than people imagine. Thanks for reminding us of that.
– cbmeeks
Jan 2 at 20:15
add a comment |
Thanks for contributing an answer to Retrocomputing Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fretrocomputing.stackexchange.com%2fquestions%2f8603%2fhow-did-super-mario-bros-3-create-this-tunnel-vision-effect%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
I can't comment, but here's a link to the "source code" to Super Mario Bros. 3, with comments. github.com/captainsouthbird/smb3
– C. Uwakweh
Dec 31 '18 at 7:23