Page 1 of 1

OSL technique to randomize texture tiles on the same object

Posted: Fri Apr 24, 2020 1:54 am
by feels
Hi all,

I'm trying to achieve something similar to the Q Tile Pro plugin, but much simplified in engine solution.

I put an ImageTexture node and use Triplanar or Box projection to project it on my model.
I then use the Transform node to shrink the tiles so I get a repeating pattern.
I want to be able to randomize the rotation of those repeating tiles when I shrink the image to avoid having a never-ending pattern.

I found solutions to achieve this randomization on instances or multiple pieces of geometry, but never on the same model.

Can anyone help me with an OSL script that does this, or is this impossible to achieve at the moment? It would save a lot of time when trying to texture something quickly without resorting to Substance Painter and UVing

Thanks!

Re: OSL technique to randomize texture tiles on the same object

Posted: Tue Apr 12, 2022 10:42 am
by atoyuser1
Hi, this is the exact question I was about to ask. So thought I'd bump this thread

Any clues? thanks

Nearest I could find is this: viewtopic.php?f=30&t=75047

Re: OSL technique to randomize texture tiles on the same object

Posted: Tue Apr 12, 2022 2:06 pm
by atoyuser1
Went with this in the end, works great and not too pricey https://3dtools.info/shop/q-tpro-softpatch/

Re: OSL technique to randomize texture tiles on the same object

Posted: Wed Apr 13, 2022 6:39 am
by bepeg4d
Hi,
in the CUDA version there is now this node:
https://docs.otoy.com/cinema4d/ChaosTexture.html

It is going to arrive on macOS with the upcoming 2022.1 SDK.

ciao,
Beppe

Re: OSL technique to randomize texture tiles on the same object

Posted: Wed Apr 13, 2022 7:26 am
by atoyuser1
Great! Is that happening this year?

Re: OSL technique to randomize texture tiles on the same object

Posted: Thu Apr 14, 2022 6:34 am
by bepeg4d
Yes :D

ciao,
Beppe