I have a brick wall and I want to assign random colours to all the bricks but from a defined palette of about 15-20 variants.
How would I go about setting this up?
Thanks for any help.
Hey how is your predefined pattern setup? is it textures, or just colors? you can use multi sub texture, give it 20 texture slots and plug your color/textures into that. It will give you most control *setting the get id from random, will randomly assign the colors. If you have them as textures and they have some sort of sane numbering, then you can also do a user attribute like userString or userInteger, so you load one file node, and for example if your texture is named - brick_1.jpg, brick_2.jpg, then you can specify c:\temp\brick_<myId>.jpg, and assign the userString to all your brick objects (randomizing the number), then during load the textures will be assigned a number and render to those specific objects. I believe there are other options like using sampler info and a ramp to randomize colors but imho its less intuitive.
Thanks for that! OK so they are just colours, the brick wall is about 2000 bricks and I have combined all bricks into one poly object. Im guessing that I will need to split out all the bricks to make this work. It’s an historical building so cant change the brickwork layout and some bricks are very different in colour. MIght jump into Substance.
Easy to use Maya MASH and assign random colours, but this can’t be a mash object unfortunatley.
if they had one uv shell per brick you can also do that through multi sub tex. Otherwise yes you have to split them. In 3ds max for example faces can have ids too, but not in maya. In this case, if you want to keep the procedural colors, you can colorize them in substance as rgb masks, for example 3 rgb masks by 3x3 9 color variants. It’s a bit of choir though to load them and split out channels etc.
Yeah this is looking good. With the multisub I can distribute by poly shell!! Isn’t it sad Im sitting on the sofa relaxing of an evening and now excited to try this out tomorrow morning.
Trust me, you love you job! It’s rare…After 20+ year of doing this, I still look forward to checking frames in the morning…![]()