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












27














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



























    27














    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

























      27












      27








      27


      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 yesterday









      cschultz2048

      25325




      25325






















          2 Answers
          2






          active

          oldest

          votes


















          46














          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

















          • 4




            +1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
            – cschultz2048
            yesterday



















          0














          I can't comment, but here's a link to the "source code" to Super Mario Bros. 3, with comments. https://github.com/captainsouthbird/smb3






          share|improve this answer








          New contributor




          C. Uwakweh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















          • I'm surprised this is even legal
            – ChatterOne
            3 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

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          46














          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

















          • 4




            +1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
            – cschultz2048
            yesterday
















          46














          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

















          • 4




            +1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
            – cschultz2048
            yesterday














          46












          46








          46






          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 yesterday









          NobodyNada

          3,0411428




          3,0411428








          • 4




            +1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
            – cschultz2048
            yesterday














          • 4




            +1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
            – cschultz2048
            yesterday








          4




          4




          +1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
          – cschultz2048
          yesterday




          +1 excellent GIF. I was beginning to suspect that this was the case, but I appreciate you confirming my suspicions.
          – cschultz2048
          yesterday











          0














          I can't comment, but here's a link to the "source code" to Super Mario Bros. 3, with comments. https://github.com/captainsouthbird/smb3






          share|improve this answer








          New contributor




          C. Uwakweh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















          • I'm surprised this is even legal
            – ChatterOne
            3 hours ago
















          0














          I can't comment, but here's a link to the "source code" to Super Mario Bros. 3, with comments. https://github.com/captainsouthbird/smb3






          share|improve this answer








          New contributor




          C. Uwakweh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















          • I'm surprised this is even legal
            – ChatterOne
            3 hours ago














          0












          0








          0






          I can't comment, but here's a link to the "source code" to Super Mario Bros. 3, with comments. https://github.com/captainsouthbird/smb3






          share|improve this answer








          New contributor




          C. Uwakweh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          I can't comment, but here's a link to the "source code" to Super Mario Bros. 3, with comments. https://github.com/captainsouthbird/smb3







          share|improve this answer








          New contributor




          C. Uwakweh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          C. Uwakweh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered 4 hours ago









          C. Uwakweh

          1




          1




          New contributor




          C. Uwakweh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          C. Uwakweh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          C. Uwakweh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.












          • I'm surprised this is even legal
            – ChatterOne
            3 hours ago


















          • I'm surprised this is even legal
            – ChatterOne
            3 hours ago
















          I'm surprised this is even legal
          – ChatterOne
          3 hours ago




          I'm surprised this is even legal
          – ChatterOne
          3 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

          Understanding the information contained in the Deep Space Network XML data?

          Ross-on-Wye

          Eastern Orthodox Church