logo80lv
Articlesclick_arrow
Talentsclick_arrow
Events
Workshops
Aboutclick_arrow
profile_login
Log in
0
Save
Copy Link
Share

Making an Animated Mosaic Mural Using Substance 3D & Unreal Engine

Oday Abuzaeed shared a breakdown of his interactive mosaic mural project, explaining how shader lighting, an animated fox, and flowers that react to the player bring a flat mosaic to life in Substance 3D and Unreal Engine.

Overview

The idea behind this project was to make a static mosaic mural feel alive without treating it like a conventional 3D scene. Rather than building separate geometry for every foreground element, I developed a set of material-driven systems that could simulate directional light, integrate a moving character into the painted environment, and trigger procedural flowers in response to the player's position. The project is built around three interconnected systems. Each one is relatively straightforward in isolation; the interesting challenge was getting them to share enough information that the final mural felt like one coherent environment instead of three unrelated effects.

Simulating Directional Sunlight in a Flat Mosaic

The first challenge was creating the impression of sunlight moving through a scene that has essentially no physical depth.

During texture authoring in Substance 3D Designer, I generated two supporting data maps alongside the mural artwork. The first was a depth map, conceptually similar to a mist or Z-depth pass: it encoded the relative placement of elements within the painted scene. The second was a horizontal positional gradient, transitioning from dark on the left to bright on the right, effectively providing a simple UV-space coordinate reference for controlling the light's progression. 

The important detail was how these maps were quantized at the mosaic level. Rather than allowing illumination to change continuously across each small piece, I ensured that every individual tessera carried a consistent value. This allowed the shader to evaluate and illuminate entire mosaic pieces as units, avoiding the visual inconsistency of a light boundary cutting arbitrarily through a tile.

In Unreal Engine, I used custom HLSL nodes to evaluate the encoded depth and positional data against a Vector3 parameter representing the desired light direction.

The shader derives a directional scan and distance-based influence, then converts that evaluation into an illumination mask. A BlackBody node provides a temperature-driven sunlight tint, which is composited over the mural using an Overlay blend.

The result is not physically simulated global illumination; it is a deliberately art-directed approximation. The aim was to preserve the graphic language of the mosaic while borrowing just enough spatial logic from real lighting to make the movement feel plausible.

Integrating the Animated Fox

The fox began as a conventional flipbook texture, but playing the animation was only one part of the problem. The more interesting part was treating the animated character as an element that could be positioned, scaled, and partially hidden within the mural's implied depth.

I wrote a custom HLSL function driven by Time, Start Frame, and End Frame parameters to select and loop a specific range of frames from the flipbook. I then added UV cropping and transformation controls so the entire animation could be translated and scaled independently of its frame indexing. Keeping the frame selection stable while transforming the overall animated region was the main technical challenge in this stage.

To integrate the fox into the scene, I reused the depth information generated for the lighting system. By evaluating that map against an adjustable depth threshold, I could create an occlusion mask that identifies the mural elements intended to sit in front of the character. This made it possible to art-direct the fox's apparent depth and scale without introducing actual foreground geometry.

Finally, the fox is composited into the material before the sunlight pass. This is a small but important ordering decision: the same stylized illumination can affect both the painted environment and the animated character, helping them read as parts of the same surface.

Procedural Flowers & Player-Driven Activation

The flower system required the most experimentation because it combined procedural distribution, per-instance identification, and interaction inside a material.

I started by developing a custom UV distribution function inspired by the logic of Substance 3D Designer's Tile Sampler and Pixel Processor workflows. Two nested loops iterate over an X-by-Y grid, giving each cell a controlled region of the surface. Within that region, the function applies seeded variations to rotation, scale, and placement. This produces a repeatable but irregular arrangement, while the grid-based constraints help keep instances from visually overlapping when their size and placement stay within the assigned bounds.

The next step was generating a usable instance ID representation from the distributed pattern. That ID data allowed the interaction to operate at the level of individual flower locations rather than simply revealing a continuous circular patch of pixels.

For the activation logic, I experimented with screen-space derivatives, using DDX and DDY to analyze local changes and construct a flood-fill-like neighborhood comparison. The player's world position is supplied by Blueprint and projected into the ground plane's coordinate space. From there, the material computes a radial proximity mask beneath the player.

Instead of activating flowers from a single sampled point, the system evaluates multiple samples against that mask. Each flower region is tested using approximately 30 comparison samples, and a flower becomes active once its sampled overlap reaches a threshold of roughly 20%. This gives the effect an instance-level response: the entire flower can appear when enough of its region is reached, rather than being gradually sliced by the edge of the player's proximity circle.

Once an instance is marked active, its local UV information is reused to place the corresponding flower texture at that location. This final step closes the loop between procedural distribution, instance identification, and the interactive reveal.

Of the three systems, this was easily the most demanding. Recreating some of the thinking behind a dedicated procedural texturing tool inside a real-time material took considerably more iteration than I initially expected, but it also became the most rewarding part of the project.

Closing Thoughts

This mural was a fairly niche technical study, but the underlying approach is much more flexible than the final artwork might suggest. The real takeaway is that a flat, authored image can behave like a layered, responsive environment when its supporting data is designed with interaction in mind.

The same principles could drive a lighthouse mural with shifting beams, ships, and moving waves, or an illustrated fantasy scene with a dragon passing behind painted architecture. Once lighting, animated elements, depth ordering, and instance activation are treated as reusable material systems, the artwork becomes the variable rather than the limitation.

For me, the most satisfying part was not any individual effect. It was finding ways to make several small, specialized shader techniques communicate convincingly on a single surface.

Oday Abuzaeed, Senior Technical Material and Shader Artist

Built for the Game & Digital Art Industry
Get Our Media Kit

Comments

0

arrow
Type your comment here
Leave Comment
Built for the Game & Digital Art Industry
Get Our Media Kit