AI Toy Brick Generator
Overview
In the intersection of digital art and tangible creations, I developed a digital platform that transforms generative AI pixel art into LEGO toy brick mosaics. Bridging the gap from AI-generated images to physical mosaics presents some unique challenges. A key hurdle is the generative AI's approach to pixel scale, where the generated "art pixel" doesn't correspond to a single image pixel, and the pixel art resolution is usually unknown. To address this, I created a method for detecting the true pixel resolution of AI-generated pixel art.
The whole process unfolds in a series of steps: beginning with a user's mosaic wish (for instance, "Cute Zombie Head"), generative AI produces "pixel art" which then undergoes resolution detection and conversion into an accurate 1:1 pixel grid. The next phase involves color reduction to match a specified palette, followed by the transformation of this refined pixel art into a visually striking LEGO mosaic via WebGL and a tile map containing the brick shapes desired for the final output.
This platform is not only a proof of concept but also a playground for technological exploration, aiming to evolve into a larger commercial product, or as a part of such. Presently, it serves as a testbed for me to delve into the capabilities of various generative AIs like DALL-E, Stable Diffusion, and Midjourney. My short term ambition is to launch a public-facing site where enthusiasts can experience the magic of turning their prompts into LEGO masterpieces firsthand.