Discussions

SmileBASIC Community

JosiahSpike4

03/03/2016 9:49 PM ·Spoilers

Open Closed

Mode7

I don't understand how mode 7 works and I would like to make a game with it, can some one please teach me?

Advertisement

Comment

This post has no comments.

  • Mode 7 can be achieved a couple of different ways. One of them is clever zooming of the different horizontal layers of pixels on the screen. That's what produced the effect on the SNES and GBA, but it's hard to implement into SB. Another is using a 3D projection formula to derive some equations that translate 2D coordinates to 3D coordinates assuming constant Y values.

    Yeahs3
    Played
  • The equation I use for 3D projection is X2D=X/Z*ZOOM:Y2D=Y/Z*ZOOM Using algebra, assuming a constant Y you can easily derive the equations Z=Y/Y2D*ZOOM:X=Z*X2D/ZOOM Which should get you 3D coordinates from 2D coordinates and a constant Y value. Using this you can easily use the X and Z coordinates as X and Y coordinates and place pixels accurately on the screen for the mode 7 effect.

    Yeahs3
    Played
  • Thanks, I will be sure to give it a shot.

    Yeahs1
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-BXM-ZM9A-9A8-ARA8

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: