[SOLVED] Fit textures to box



I’ve created a box in Blender with six textures (just colors). In PlayCanvas, programmatically, I clone some cubes and try to assign a texture to them. How can I fit the texture to my cube?

My idea is to assign a texture (a part of a bigger image) to each face of the cube, so that as the cubes rotate, you can discover new images.

You can find an example at: PlayCanvas 3D HTML5 Game Engine

Thank you very much.

thanks a lot.


You probably need to play with offset and tiling for the texture of the material.

Hi Albertos,

Thanks for your answer. I found two errors… First one was and error to export from blender. The other was just your solition and worki a little bit with texture transform,


1 Like