Starfields

Version 3 of 6

3D starfield.

PC · VGA mode 13h · 1993

This version

700 stars, one division each, slowly rolling. Brightness from a 64-step palette, 2×2 pixels when close.

How this version works

This version clears a 320-pixel-wide buffer and projects 700 stars using their decreasing depth. A slowly changing rotation is applied to their horizontal and vertical coordinates before projection, making the field roll around the centre. A 64-entry VGA-quantised palette runs from black through blue-grey to white, with nearer stars selecting brighter entries. Stars closer than a depth of 0.25 become 2×2 blocks, while those passing the near threshold are assigned new positions at the far plane.

The trick in this version

A palette lookup supplies distance shading without calculating a new RGB colour for each star. The implementation uses floating-point arrays and direct perspective divisions, not fixed-point arithmetic or a reciprocal lookup table.

Historical context · PC

  1. 1993 · Phantom / Epical · Hoax #3

    3D stars behind the text

    A diskmag opening with a 3D starfield flying behind a sine scroller: perspective motion gives depth to readable foreground text.

Platform
PC · VGA mode 13h
Era
PC
Rendered on
CPU
Tags
perspective · 256 colours
Sources
3D stars behind the text (1993)