The Smallest Star

A fable, path traced live on your graphics card

A small mouse in a red scarf looks at a glowing firefly in tall grass at night

Starting…

Scene
Show
Film
Firefly

samples per pixel 0one sample takes – msrender size –film time 31.6 s

What you are looking at

This is the renderer that made the film, not a recording of it. Your graphics card is tracing rays of light through the scene right now. The picture starts noisy and clears as samples add up; move the camera and it starts again.

There are no 3D models, no textures and no engine underneath. Claude Fable 5.2 wrote the story, the two characters, the meadow, the light transport, the denoiser and the score as code, then rendered the film with it.

  1. Shapes. The mouse, the firefly and the mushroom house are distance functions: spheres, cones and capsules blended like clay. Every blade of grass is one curved ribbon found by solving a quadratic.
  2. Colour. Fur, bark, the spots on the caps and the stars are formulas. Nothing is painted or photographed.
  3. One sample. For each pixel a ray leaves the camera, bounces, and asks the moon, the firefly and the window how much light arrives. One ray per pixel is mostly noise.
  4. Film. Many samples are averaged, a denoiser guided by the shapes cleans what is left, and the result is tone mapped and graded.
  • __GLSL__ lines of shader
  • 0 meshes
  • 0 textures
  • 3 lights
  • 1 quadratic per blade

The fable

Once, a small firefly looked up at the stars. They were so bright, and it was so small.

So it flew up to join them. But however high it climbed, the stars came no closer.

Down in the tall grass, a mouse had lost its way home. The firefly had only a little light. But a little light, close by, goes a long way.

From its doorway, the mouse looked up, and saw the brightest star in the sky.

You don't have to reach the stars to be one.