Raytracing

Version 1 of 3

Juggler-style balls.

Amiga · 4096 colours · 1986

This version

Mirror spheres over a checkerboard, quantised to the Amiga's 12-bit palette. The original was precalculated; this one is live.

How this version works

This version reuses the CPU raytracer at a configured width of 120 pixels and runs its animation at half speed. Three coloured spheres orbit and bob above a checkerboard floor, with analytic intersections and one reflection bounce. The floor receives hard shadows and distance fading, while the spheres have diffuse shading and bright specular highlights. After rendering, it reads back the canvas pixels, quantises their RGB values through the Amiga colour helper to 12-bit colour, and writes the image back.

The trick in this version

The colour conversion emulates four bits per RGB channel, not HAM encoding or an Amiga display pipeline. Unlike the precalculated original Juggler animation, this code calculates its scene live.

Historical context · 16-bit

  1. 1986 · Eric Graham

    The Juggler

    A raytraced robot juggling mirror balls over a checkerboard, precalculated frame by frame and played back as an animation. It became the Amiga's calling card and the image people meant by 'raytracing'.

Platform
Amiga · 4096 colours
Era
16-bit
Rendered on
CPU
Tags
12-bit colour · mirrors
Sources
Recursive raytracing (1980)Heaven Seven (2000)