# Picture Dice Puzzle Cubes

**URL:** <https://forums.unrealengine.com/t/picture-dice-puzzle-cubes/1162309>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 11, 2023, 8:38am UTC](https://forums.unrealengine.com/t/picture-dice-puzzle-cubes/1162309 "2023-05-11T08:38:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 11, 2023, 11:01am UTC](https://forums.unrealengine.com/t/picture-dice-puzzle-cubes/1162309/4 "2023-05-11T11:01:54Z")

</div>

> [@JCarrick](#):
>
> apply a new selection of textures / materials to each of the 6 sides to each block

- export the mesh with materials slots (here is old 3ds Max whose fbx exporter makes a mess out of names 😑 ):

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/8/f082d9d27d7f923947ba964587fb385f21f7758f.jpeg)

- make a material:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/5/1a517bbe2ace61116f9069319101cfd4bca59769.png)

- create dynamic instances, pipe in the texture:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/3/033f2f000f5767ae598902619fae16e56581c05e.png)

> ensuring that 1 Material from each of the 6 arrays (sets of 18 for each sides of the cube) are applied.

Add a second loop and pipe in a new texture array to assign texture params on others cubes (not entirely sure how the texture sets are supposed work here, tbh - treat it like pseudoscript for demo purposes only)

Namely:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/9/f59dd72b593fb812d76f9f3ad145f31f440e205e.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/7/9/a79f6759576b94fb8c933f2c16a6a45dc9b0be9c.jpeg)

* * *

> not looking to slice an image up

In case someone else does in relation to the above:

> [@can blueprints be used to chop an image into pieces?](https://forums.unrealengine.com/t/can-blueprints-be-used-to-chop-an-image-into-pieces/104930/2):
>
> See if you can adapt the following to your needs: A material for the actors. It takes 3 scalar values - U, V and Size. UV is going to shift the coordinate and Size dictates the number of pieces. A \*PuzzlePiece \*actor that has a simple cube (with Z scaled down to make it flat), a Dynamic Material Instance is going to be fed data when the actor is spawned - the U, V and Size are variables ExposedOnSpawn The \*LevelBlueprint \*spawns PuzzlePieces. The 2D …

You could make arrays of UV coords and have a set of 6 images distributed across the faces in random order.

---

_[View the full topic](https://forums.unrealengine.com/t/picture-dice-puzzle-cubes/1162309)._
