How to assign random textures to clusters?

Discussions regarding Materials, Material-Compounds or Shaders, etc.
User avatar
shushens
Posts: 192
Joined: 13 Jun 2009, 05:34
Skype: shushens
Location: Paderborn, Germany

How to assign random textures to clusters?

Post by shushens » 11 Sep 2010, 16:54

Hi fellas!

I often come across situations where I have to texture a tree and all leaves are just one object. I can detach all polygon islands, select them at random, assign materials, etc. but that seems like a very unsophisticated approach. If I can assign every polygon island as a separate cluster in that object (I think there is a script accessible through legacy netview that does it), is there a way I can randomly assign textures from a pool to those clusters using render tree and simple expressions only (which basically means no major scripting)?

Thanks in advance!
My ill-maintained blog: http://visualdeceptions.info/blogger