Rotozoomer

Version 5 of 8

VGA rotozoomer.

PC · VGA mode 13h · 1993

This version

Full 320×200, a 256×256 texture with an XOR pattern, a ring and a monogram, two additions per pixel.

How this version works

The 320-pixel-wide renderer samples a 256×256 indexed texture containing an XOR pattern, a ring and a DL monogram. Rotation advances steadily while sampling scale oscillates and the texture origin drifts horizontally and vertically. Each scanline starts with transformed texture coordinates, then advances them with two constant additions per pixel. A 256-entry VGA-quantised palette maps the pattern through dark purple, red, orange and cream, with the brightest indices held at white.

The trick in this version

Incremental affine mapping removes coordinate multiplications from the inner pixel loop, and eight-bit masks wrap the power-of-two texture. Although this resembles a fixed-point software rotozoomer, the code uses floating-point increments and integer coercion when indexing.

Historical context · PC

  1. 1993 · Psi / Future Crew

    Second Reality's LNS&ZOOM

    A famous software rotozoomer, documented down to its executable and source directory, that set the look of the tiled spinning image.

  2. 2010 · Marnix Kok · Hugi 36

    Step by step in Hugi

    ‘A blast from the past!’ derives a bump-mapped rotozoom from scratch, preserving the software technique.

Platform
PC · VGA mode 13h
Era
PC
Rendered on
CPU
Tags
256 colours · fixed point
Sources
Second Reality's LNS&ZOOM (1993)Step by step in Hugi (2010)