Sine scrollers

Version 4 of 5

Scroller over stars.

PC · VGA mode 13h · 1993

This version

Like the Hoax #3 opening: a 3D starfield flies at you while a 3× scroller bounces in front, in a 256-colour gradient.

How this version works

This 320-pixel-wide version stores 380 stars in three floating-point arrays and projects their horizontal and vertical coordinates by dividing by depth. Stars move towards the viewer, brighten through a 64-entry grey ramp and become 2×2 pixels at close range before being recycled with new positions. Whole characters scroll at 100 pixels per second, enlarged threefold and placed individually on a sine wave near the lower part of the image. A separate 32-entry gradient shades the letters from white through blue to pink, and drawing the text last places it over the stars.

The trick in this version

The code uses a low-resolution CPU framebuffer and precomputed VGA-quantised colour ramps rather than a hardware indexed display. Star movement uses elapsed time capped at 0.05 seconds per frame, limiting depth jumps after a delay.

Historical context · PC

  1. 1993 · Phantom / Epical · Hoax #3

    Scroller over a starfield

    A diskmag opens with a sine scroller in front of a 3D starfield: the effect as a reusable presentation device.

  2. 1992 · The Phoney Coders · Even Better Than the Real Thing

    The PC adopts the vocabulary

    Its effect list reads like an Amiga demo, sine scroller, vector balls, rotating 3D, showing the 16-bit language moving to the PC.

Platform
PC · VGA mode 13h
Era
PC
Rendered on
CPU
Tags
starfield · 256 colours
Sources
Scroller over a starfield (1993)The PC adopts the vocabulary (1992)