Skip to content

Release 0.7.0

Sharp pixel art: a new renderer for Diorama and Scene Creator

A windmill with striped sails on a small floating island as crisp pixel art, with apple trees, three sheep, a wheat field, hay bales and a wooden fence under a blue sky.

Diorama and Scene Creator have a new renderer. The old one drew soft blobs small and then cleaned the picture up into pixel art. The new one never blends: every scene is cut into hard little discs that each know their material, and the picture is worked out one art pixel at a time. Mortar lines, book spines and the stripes of a rug stay a pixel wide where they used to break up.

Painted and lit a pixel at a time

Bricks, floorboards, speckle and stone are no longer baked into the blobs. Each pixel asks its material what color it is at that spot, so a pattern is as fine as the picture. Light is worked out the same way: the sun through its own shadow map, lamps that cast shadows, corners that darken, sunbeams through a window, and glass you can see through, with a colored shadow behind it.

Weather that is simulated

Clouds are soft heaps that drift on the wind, shade the ground under them and light up from inside in a thunderstorm. Rain falls from under the clouds, stops at a roof and splashes where it lands. Snow goes where the air goes. Ponds and seas have swells, foam and spray, fires answer the wind and the rain, and the aurora and the meteor shower move as real ones do. A scene now says where it is, so a cave has no weather, a room keeps its snow outside the window, and a reef only darkens under a storm.

Over thirty styles

Pixel art is the first style, and every other one is drawn from the same picture: cel shading, paper cutout, oil and gouache, engraving, woodcut and stipple, Blocks, halftone print, text, watercolor, neon, stained glass, an ugly sweater, risograph, linocut, pencil, cross-stitch, chalkboard and more. Each has its own settings, and any of them can play in stop motion.

In Scene Creator too

Scene Creator sets props down, lights them and plays them on the same renderer, with the same styles and weather, lamps of your own, a camera path to export a flight, and scenes kept in your browser as before. Both pages are tidier on a phone: four tabs, and lists in place of rows of chips.

The old pages are still there for now: add ?engine=old to either address. The other experiments still draw with the old renderer and will move over in turn.

In the engine package

@blobscape/engine 0.7.0 carries the renderer as a new entry, @blobscape/engine/pixel. It is new and likely to change. The package also has a guide for assistants writing their own scenes, and scene descriptions gain named materials, settings and lava, potion and fire recipes. The full list of changes has the rest.