Skip to content
Built on the Blobscape engine

Published

Shape Shifter

Two creatures built with nothing in common, and one slider between them. Every blob of the first finds a partner in the second and travels to it, changing its size, facing and color on the way. Pick the pair, the path and the order.

Starting the splat engine…

Cutting the frog and the dragon…
Path

Each blob goes straight to its partner.

Order

The lowest blobs go first.

Partners

Paired by place, then near blobs swap partners wherever that makes trips shorter or keeps colors closer, so paths don't cross. An idea from Silicon Jungle's Ink Studio.

How it works

Every blob needs a partner

A morph reshapes one creature, and its blobs stay the same blobs throughout. Two creatures share nothing: each was cut on its own, with its own number of blobs in its own order. Here they are also brought to one size, so a frog and a dragon meet as equals. Then the first job is to pair them up. Both creatures are cut in half across their longest way, half matched with half, and each half is cut again until one blob is left on each side. That keeps tops with tops and fronts with fronts, even when one creature is tall and the other long. Matched partners go one step further: each blob looks at the blobs near it and swaps partners with one wherever that makes the two trips shorter together, or keeps each blob nearer its own color, so paths stop crossing and an eye tends to become an eye.

Then each blob blends the five kinds of number it is made of. Its center follows the path you picked, its sizes change by ratio, its facing turns the short way round, and its color and opacity go straight across. Set the partners to random and the same blend still arrives, but every blob crosses the whole creature to get there, and halfway is a cloud.

No bone moves here. The blobs are blended in plain JavaScript and handed to Blobscape's own splat engine again every frame, which sorts and draws them on WebGPU or WebGL 2. The creatures are the ones in Splat Creatures, standing still.