Rotozoomer

Version 2 of 8

Three-shear rotation.

Amiga / ST · blitter shifts · 1988

This version

Rotate with three shears: shift every row, then every column, then every row. The three panels show each pass. No multiplications per pixel, just shifted copies a blitter can do. Past 90°, the image is flipped first.

How this version works

A 64×64 indexed image contains a checkerboard, an orange border and a white DL monogram. Rotation is split into horizontal, vertical and horizontal shears, using three cleared 128×128 buffers. Each row or column receives a rounded integer offset derived from minus the tangent of half the angle or the sine of the angle. A half-turn of the source keeps the remaining angle within 90 degrees, limiting shear size. The 384-pixel-wide display places all three intermediate results side by side in a four-colour Amiga-quantised palette.

The trick in this version

Shears replace a full coordinate transform at every pixel with shifted row or column copies. This code performs those copies in CPU loops rather than implementing actual blitter operations.

Historical context · 16-bit

  1. 1990 · The Gigabyte Crew · Syntax Terror (Delta Force)

    An early rotating, zooming image

    The Atari demo encyclopedia identifies this screen as an early rotate-and-zoom image effect. On an 8 MHz 68000 this was done forward: each logo pixel is rotated and zoomed through tables and plotted, the reverse of the later screen-to-texture rotozoom. The trailing logos come from buffering old frames in bitplanes.

  2. 1990 · Nintendo · F-Zero

    Mode 7

    The Super Nintendo's background Mode 7 rotates and scales a tile layer in hardware; changing the matrix per scanline turns it into a perspective floor.

  3. 1992 · Sanity

    World of Commodore

    Its blurred, rotating and zooming picture became a celebrated Amiga example, second place at World of Commodore 1992.

Platform
Amiga / ST · blitter shifts
Era
16-bit
Rendered on
CPU
Tags
shear · HAKMEM / Paeth
Sources
An early rotating, zooming image (1990)Mode 7 (1990)World of Commodore (1992)