How did Super Mario Bros. 3 create this tunnel vision effect?
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
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 2 hours ago
cschultz2048
1283
1283
add a comment |
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):
+1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
– cschultz2048
55 mins ago
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):
+1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
– cschultz2048
55 mins ago
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):
+1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
– cschultz2048
55 mins ago
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 1 hour ago
NobodyNada
2,7611027
2,7611027
+1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
– cschultz2048
55 mins ago
add a comment |
+1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
– cschultz2048
55 mins ago
+1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
– cschultz2048
55 mins ago
+1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
– cschultz2048
55 mins ago
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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