Skip to content
Built on the Blobscape engine

Published

Day and Night

A cabin in a clearing, or a few city blocks, through a whole day in any season. Drag the time and the sun crosses the sky, shadows turn and stretch, the windows come on at dusk, and the birds give way to fireflies and stars. Pick a season and the trees blossom, turn or stand bare under falling snow.

Starting the splat engine…

4:00 pm

Building the scene…The sun is 37° up in the west.

Sunrise 4:15 am, sunset 7:45 pm.

The clock is running.
A whole day

How it's lit

One scene, lit again every frame

Most splat scenes carry their light in their colors: a photo of noon stays noon. These are built with no light at all. Each blob holds only its own paint, and its color on screen is that paint times the light that reaches it right now.

The sun follows its real path for the latitude and the season, and its light crosses more air the lower it stands, so it reddens and fades toward the horizon. The sky gives a second, softer light from everywhere, blue by day and dim at night. For shadows, every blob is dropped into a coarse grid each frame, and each blob looks through that grid toward the sun to see what is in the way. Move the sun and every shadow follows. The moon and the lantern cast theirs the same way.

A season is the same description with a few lines changed: what the leafy trees wear, the grass, and what falls. The petals, leaves and snowflakes each come down somewhere of their own, land on whatever is under them, lie a while and go. The snow on the roofs and the pines is laid where the sky can reach when the scene is cut.

The lit windows, the lamps and the fireflies give their own light, so they stay bright when everything round them goes dark. In the city the windows come on a group at a time, offices empty through the evening and a few rooms burn till morning. The sky behind is painted from the same numbers: the sun and moon sit where the light comes from, and the stars turn about the pole.

Blobscape's own splat engine draws it here on WebGPU or WebGL 2. The lights and their shadows are the ones in Dungeon Run, and the scene is written as data, like the ones in Diorama.