# Randomized tiles per mesh instance with "static" material?

**URL:** <https://forums.unrealengine.com/t/randomized-tiles-per-mesh-instance-with-static-material/310720>\
**Category:** Rendering\
**Tags:** tiles, unreal-engine, editor, UE4, question\
**Created:** [March 12, 2015, 9:56pm UTC](https://forums.unrealengine.com/t/randomized-tiles-per-mesh-instance-with-static-material/310720 "2015-03-12T21:56:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vadok\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vadok\_1](https://forums.unrealengine.com/u/Vadok_1)\
**Post date:** [March 12, 2015, 9:56pm UTC](https://forums.unrealengine.com/t/randomized-tiles-per-mesh-instance-with-static-material/310720/1 "2015-03-12T21:56:29Z")

</div>

Hello there.  
There is something i noticed when reverse engineering MatineeFightingScene example: tiles on walls/pillars are all use the same material but look completely different!  
If you open mesh or material in editor you will see that after Vertex color blend magic some tiles are broken. The exact same picture you see when putting new “Hallway” meshes in the level.

 ![33916-statictexture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/e/a2e3d0fc9ab621167f8fac5ced92e3e63fd99e94.jpeg)

That is how SM\_Hallway\_Wall134 looks like… almost. And it is nothing like, for instance, SM\_Hallway\_Wall21! The same is for pillars and curved walls.  
I didn’t find anything in construction or matinee scripts that affects M\_Tiles\_Wall\_Mesh\_Paint material for any of wall meshes. Light does not affect material, I checked.

 ![33917-randomtexture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/7/b9787f5c4ce77373a68482f77db3849f09f29a79.jpeg)

So the same mesh with the same material without any visible inputs looks the same if newly created, but existing instances in MatineeFightingScene look different. Question: HOW?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9985c79a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9985c79a](https://forums.unrealengine.com/u/anonymous_user_9985c79a)\
**Post date:** [October 18, 2015, 4:49pm UTC](https://forums.unrealengine.com/t/randomized-tiles-per-mesh-instance-with-static-material/310720/2 "2015-10-18T16:49:35Z")

</div>

I would really want to see an answer to this one.

---

<div class="post-metadata">

**Author:** ![mjspaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mjspaz](https://forums.unrealengine.com/u/mjspaz)\
**Post date:** [April 18, 2018, 4:51pm UTC](https://forums.unrealengine.com/t/randomized-tiles-per-mesh-instance-with-static-material/310720/3 "2018-04-18T16:51:14Z")

</div>

I know this is a super old thread, but I was researching how to do this and came across it.

I opened up the scene, and this is done by vertex painting the mesh, and blending between two materials (broken and non-broken tiles). It’s worth noting the mesh needs to be quite dense to support this well. (In this case the number of vertical/horizontal loops match the small white tiles exactly.

If you want to see exactly how they executed this, open up the material!
