Random Multiple Decals

Random Multiple Decals

Tim_Whiteman
Participant Participant
388 Views
3 Replies
Message 1 of 4

Random Multiple Decals

Tim_Whiteman
Participant
Participant

Similar to the random UVW question earlier, I was wondering if there is a way of having multiple decal image textures randomly distributed around a single objects surface? Hopefully a single seed value could change the position, rotation (90° increments) and image texture from selection of around 10 decal images.

 

I'm sure this could be achieved. I have tried different approaches using jitter with UV transform, but I have no idea how to randomise the image textures, rotation by 90° increments.

 

Any thoughts or knowledge very much appreciated.

 

Thank you!

0 Likes
389 Views
3 Replies
Replies (3)
Message 2 of 4

peter_horvath
Autodesk
Autodesk

Probably the easiest way is to use osl shaders, like the RandomBitmap from 3ds Max: https://github.com/ADN-DevTech/3dsMax-OSL-Shaders/tree/master/3ds%20Max%20Shipping%20Shaders

Here's a tutorial showing it in max: https://www.youtube.com/watch?v=bqS9ynW-TdU


// Peter Horvath
// C4DtoA developer
0 Likes
Message 3 of 4

Tim_Whiteman
Participant
Participant

Thank you @peter_horvath I appreciate your suggestion, however, since successfully compiling and attempting to use the OSL, it looks like it is completely incompatible with C4DtoA? The video shows 3dsMax and whilst I know some OSL's are cross software compatible, this one does not seem compatible at all.

Message 4 of 4

Tim_Whiteman
Participant
Participant

Is there anything else I can try to achieve this please? Any help or advice greatly appreciated.

0 Likes