How did Super Mario Bros. 3 create this tunnel vision effect?












37














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).










share|improve this question


















  • 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
    2 days ago
















37














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).










share|improve this question


















  • 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
    2 days ago














37












37








37


5





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).










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 29 '18 at 21:14









cschultz2048

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
    2 days ago














  • 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
    2 days ago








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
2 days ago




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
2 days ago










1 Answer
1






active

oldest

votes


















57














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):



enter image description here






share|improve this answer

















  • 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. Sometimes the answer is much simpler than people imagine. Thanks for reminding us of that.
    – cbmeeks
    7 hours ago











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
});


}
});














draft saved

draft discarded


















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









57














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):



enter image description here






share|improve this answer

















  • 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. Sometimes the answer is much simpler than people imagine. Thanks for reminding us of that.
    – cbmeeks
    7 hours ago
















57














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):



enter image description here






share|improve this answer

















  • 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. Sometimes the answer is much simpler than people imagine. Thanks for reminding us of that.
    – cbmeeks
    7 hours ago














57












57








57






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):



enter image description here






share|improve this answer












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):



enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 29 '18 at 22:08









NobodyNada

3,1511428




3,1511428








  • 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. Sometimes the answer is much simpler than people imagine. Thanks for reminding us of that.
    – cbmeeks
    7 hours ago














  • 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. Sometimes the answer is much simpler than people imagine. Thanks for reminding us of that.
    – cbmeeks
    7 hours ago








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. Sometimes the answer is much simpler than people imagine. Thanks for reminding us of that.
– cbmeeks
7 hours ago




+1. Sometimes the answer is much simpler than people imagine. Thanks for reminding us of that.
– cbmeeks
7 hours ago


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Сан-Квентин

8-я гвардейская общевойсковая армия

Алькесар