Website powered by

Bitmap To Lego Substance

There have been some amazing LEGO substances on this site, so rather than make another LEGO material, I thought I'd try to make a substance that would LEGO-ify an input bitmap, either a picture or a grayscale height map. The idea is it will best-fit the image with a few different sizes of LEGO to generate the final image. There are only three LEGO pieces currently, 4x2, 2x2 and 1x1. All in Substance Designer apart from the source image and LEGO logo.

A simple conversion of a Mario sprite. I like the weird way it attempts to 'anti-alias' some edges.

A simple conversion of a Mario sprite. I like the weird way it attempts to 'anti-alias' some edges.

Clouds filter LEGO-ified. Colours chosen by height rather than colour input.

Clouds filter LEGO-ified. Colours chosen by height rather than colour input.

Gaussian 1 pattern LEGO-ified. Colours chosen at random. Newer LEGO.

Gaussian 1 pattern LEGO-ified. Colours chosen at random. Newer LEGO.

A simple shape.

A simple shape.

Another bitmap, random colours. Shiny new LEGO.

Another bitmap, random colours. Shiny new LEGO.

It fits the largest bricks first, then subtracts the result from the original mask to make a new mask for the next smallest bricks.

It fits the largest bricks first, then subtracts the result from the original mask to make a new mask for the next smallest bricks.