How Oday Abuzaeed lit a flat mosaic one tile at a time in Unreal Engine

In Oday Abuzaeed’s interactive mural, sunlight moves across the mosaic without cutting a tile in half. An animated fox passes behind painted foreground details, and flowers appear whole when a player comes close enough. The material and shader artist built these effects in Unreal Engine using data authored alongside the artwork in Substance 3D Designer, rather than modeling each foreground element separately.

One depth map for the light and the fox

Abuzaeed gave the shader two maps to read: a depth map recording which parts of the picture appear nearer or farther away, and a gradient running from dark on the left to bright on the right. Both assign a single value to each mosaic tile. That lets a moving boundary between light and shade follow the tile edges instead of crossing through them.

How Oday Abuzaeed lit a flat mosaic one tile at a time in Unreal Engine (1)

Custom HLSL nodes in Unreal Engine compare those values with a three-component light direction to determine which pieces to illuminate. A BlackBody node supplies a tint based on color temperature, which the shader blends over the artwork. Abuzaeed describes the result as an art-directed approximation of sunlight, not a simulation of global illumination.

The fox uses the same depth map for a different purpose. An adjustable threshold determines which painted details hide the character. The animation itself is a flipbook: a custom HLSL function loops between chosen start and end frames, while separate texture-coordinate controls let Abuzaeed move or resize the fox without changing which frame is playing. He composites the fox into the picture before the sunlight pass, so the moving light falls on the animal as well as its surroundings.

How Oday Abuzaeed lit a flat mosaic one tile at a time in Unreal Engine (2)

Why flowers appear whole at the edge of the player’s reach

For the flowers, Abuzaeed adapted an approach inspired by Designer’s Tile Sampler and Pixel Processor. The material distributes flowers across a grid, varying their rotation, size and position with seeded values so the arrangement looks irregular but remains repeatable. Each flower region gets an identifier, allowing the material to reveal an individual flower rather than a circular patch of pixels.

How Oday Abuzaeed lit a flat mosaic one tile at a time in Unreal Engine (3)

Unreal’s Blueprint system supplies the player’s position. The material projects it onto the ground plane and defines a circular area beneath the player. It then checks approximately 30 samples per flower region against that area. When roughly 20% of the samples overlap, the material displays the entire flower using the region’s own texture coordinates. The circle thus determines which flowers appear, without clipping their petals at its edge.

Abuzaeed said the flowers took the most experimentation of the three effects. Unlike the fox, which could reuse the lighting system’s depth map, each flower needed a location the shader could generate, identify and test for overlap while the player moved.