- Home /
Tiling material with multiple textures.
Is there a way to have a tiled material that chooses randomly from a list of textures I decide?
I have a couple inter mixing seamless textures and itd be cool if I could use them all at once to make my surfaces look a bit more different.
Can a custom material be made to be able to do this?
Answer by bugmagnet · May 12, 2014 at 08:40 PM
I have never seen someone do this with a material (doesn't mean it isn't possible).
Anyway, the most commmon way to fight tiled repetition is to have multiple textures layered at different frequencies.
However if you must stay tiled, I think a more optimized and feasible approach would be to put all your texture variants onto a single texture sheet, and UV them onto variant geometry tiles, and variate the geometry. Check out the 'tiled' editor (mapeditor.org) too, maybe it would suit your purpose? There are various pipelines to Unity.
Thanks! What do you mean by layered at different frequencies?
Well you layer semi-transparent textures one on top of the other, (each has transparency of some kind, either alpha or multiply or add or whatnot), then you tile them at different rates. For example, for every UV space of 1 maybe texture A tiles 1.3 times, while texture B tiles 2.1 times, while texture C tiles 10 times. Whatever looks good, but the textures will interact in surprising ways: http://xbox360media.ign.com/xbox360/image/article/889/889122/gears-of-war-2-20080714033209098.jpg
See the ground? It has a tile texture, one or maybe two grime textures, and then at least 2 interacting normal maps. They tile at different rates over the surface. Hope this helps :)
Your answer
Follow this Question
Related Questions
How to match texture Scaling/offset to UV coordinates 1 Answer
Repeating a texture over an object 2 Answers
Material tiling unique to object 1 Answer
Texture is Tied to Two Cubes 1 Answer
Real Sized Texture Tiling 2 Answers