Why SNES Mode 7 Looked Like 3D: The Scaling Trick Explained

Stylized abstract illustration of a tilted map grid receding toward a horizon in warm sunset tones with colored pixel blocks, no logos.

SNES Mode 7 looked like 3D by remapping one background layer through a per-scanline scale matrix, and knowing that trick explains both F-Zero and its limits.

The Super Nintendo could not render polygons. What it could do was take one flat background image and remap it, scanline by scanline, so that a tiled plane appeared to recede toward a horizon. That is Mode 7, and it is why F-Zero and Super Mario Kart looked three dimensional on hardware with no 3D hardware at all. I replayed F-Zero on a small CRT recently and the trick still reads, but the flat karts sitting on a rotating floor give it away immediately. This is an explanation of the actual mechanism in the PPU, the matrix registers and the per line changes that fake perspective, plus the limits that the technique could never hide.

Eight background modes and one odd one out

The SNES PPU draws backgrounds as tile maps, and it offers eight numbered modes, 0 through 7. Modes 0 to 6 are ordinary tiled layers that scroll horizontally and vertically but stay square to the screen. Mode 7 is different: it is a single 128 by 128 tile plane, built from 8 by 8 tiles, that the hardware transforms with a two by two matrix before drawing. The CPU behind it is a Ricoh 5A22 based on the 65C816, and the picture that leaves the PPU is 256 by 224 pixels on NTSC, pushed out at about 60 Hz as composite, S-video or RGB. Mode 7 is computed inside that same framebuffer before any video encoder touches it. There is no depth buffer, no Z coordinate and no camera. Everything is a flat map being bent.

The matrix that maps pixels back to tiles

Mode 7 works backwards. For each pixel on the screen at position x and y, the PPU uses four 16 bit registers, usually called M7A, M7B, M7C and M7D, plus a centre offset, to compute which texel of the tile map should be shown there. The relation is an affine transform: the screen coordinate is offset from a centre point, multiplied by the matrix, and mapped into the 1024 by 1024 texel plane. Set the matrix to a rotation and the whole plane spins. Set it to a uniform scale and the plane zooms. This is a texture mapped plane, not a 3D scene. Because the transform is applied to a background layer rather than to sprites, the karts, planes and characters remain flat 2D billboards sitting on top, which is the tell that gives the effect away in every Mode 7 racing game.

How HDMA fakes perspective

A single matrix gives a flat, uniformly scaled plane. A road that narrows toward the horizon needs the scale to change with every row, and that is where HDMA comes in. The SNES has a DMA controller that can rewrite PPU registers during each horizontal blank, between scanlines. A game sets up a table of values and lets HDMA load a different M7A, M7B, M7C and M7D, or a different vertical offset, for each line. Rows near the horizon get a small scale so distant tiles crowd together; rows near the bottom get a large scale so nearby tiles spread out. That changing scale per line is exactly a perspective divide for a flat ground plane. Change the table and the horizon moves, the track banks, or the ground tilts. Without HDMA, Mode 7 can only rotate and zoom uniformly, which is why a flat spinning map and a receding road are the same feature with different per line data.

Rotation without perspective

Set A and D to a cosine, B to minus a sine and C to a sine, and the matrix becomes a pure rotation with constant scale. That is the other half of Mode 7, and it is used for boss rooms that spin, for world maps that turn under the player, and for the rotating stages in Super Castlevania IV from 1991. There is no perspective here because every row keeps the same scale, so the plane stays flat and upright rather than lying down toward a horizon. The same registers also let a game shear or flip the plane, and the tile map wraps, so pushing the view past the edge repeats the pattern. That wrapping is why distant Mode 7 ground often shows a faint repeating texture.

Where the technique showed up

A short list of uses makes the range of the trick clear.

Game Year What Mode 7 did
Pilotwings 1990 Tilting ground plane for the flight and skydiving stages
F-Zero 1990 Per scanline scaling for a track that recedes to a horizon
Super Castlevania IV 1991 Rotation for spinning rooms and the clock tower boss
Super Mario Kart 1992 Scaled and rotated track with flat billboard karts
Final Fantasy VI 1994 World map and airship flights over a curved plane
Chrono Trigger 1995 Race and jetbike sequences over a moving floor

Games layered ordinary scrolling backgrounds above the Mode 7 plane for skies and HUDs, because only one layer can be transformed at a time.

The limits the trick could not hide

Mode 7 fools you only while the scene stays a flat plane. It cannot draw walls, hills or a freely moving camera, so games faked elevation with line scrolling and with sprites placed at different sizes. Sprites themselves are never transformed by the mode, so a big boss on a rotating floor looks pasted on rather than grounded. Real polygon 3D on the SNES came from a different source, the Super FX chip in Star Fox from 1993, which rendered actual polygons in software rather than bending tiles. Mode 7 is cheaper and cleaner for a ground plane, but it is a map, not a world.

One setting that preserves the illusion

If you play these games in an emulator, keep 4:3 integer scaling and leave any widescreen or high resolution Mode 7 patches off. The perspective depends on the original 256 by 224 frame and on the exact per scanline timing, so stretching the view or doubling the internal resolution changes where the horizon sits and exposes the tiling at the edges. The trick is a per line matrix, and a CRT shows it on the terms it was written for.

Related reading

If you want to keep digging into this corner of the library, these two posts on Roms Get go a little further:

Similar Posts