Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Apply random textures per faces using aiColorJitter

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
sergeyklesov
1187 Views, 8 Replies

Apply random textures per faces using aiColorJitter

Hi all,

Recently I was studying Arnold and came across aiColorJitter page in Arnold's help.

That article has pictures of different examples of using ColorJitter node and particularly has a picture with scattered dices with different numbers on each face of the dice (also included it in attach).

How can I reproduce it using aiColorJitter? Can't find appropriate multi-texture node to drive input of ColorJitter.

I'm using Maya 2019 and Arnold 3.3.0.1

Cheers

4714-dice-flakes-500.jpg

8 REPLIES 8
Message 2 of 9
madsd
in reply to: sergeyklesov

It's the other way around.
You use the Jitter to drive an RGBA Switch pluged into the index, and you make sure that the Jitter has the right data channel to work with, an Integer feed in greytones, based on forexample material ID pr face, or some other construct that generates the face ID for you.
Then you can use a randimize node and hit Shuffle and numbers will randomly populate.
Its same technic to do variated colors or textures on a tree with 1000s of leafs to create randomization.

Message 3 of 9

4716-capture.jpg

right now I just hooked two colors red and green but the more colors i put the more variation you will see...

so i created a probability shader that outputs the probability of any color onto a face....you can hook multi colors(or textures in your case) and can surely replicate that above image....

watch this :

https://www.youtube.com/watch?v=vBZ0WaOl_B8

Message 4 of 9
lee_griggs
in reply to: sergeyklesov

The dice scene uses Jitter Color to alter the hue of the dice. The numbers are modeled and are not textures.

Lee Griggs
Arnold rendering specialist
AUTODESK
Message 5 of 9
lee_griggs
in reply to: sergeyklesov

There is also Master Zaps OSL: Randomized Bitmaps Map

Lee Griggs
Arnold rendering specialist
AUTODESK
Message 6 of 9
sergeyklesov
in reply to: sergeyklesov

Thank you all for the replies, will look in to them.

Lee Griggs, is this OSL map universal and works inside max and maya without need to change anything?

Message 7 of 9
sergeyklesov
in reply to: lee_griggs

Hi,


I was trying to use this shader inside Maya.

When I load this OSL via aiOslShader, everything is compiling well, but I don't have any input slots for textures. Texture inputs work as a simple texture field.

Is there any workaround for that issue?

Thank you


6461-osl.png

Message 8 of 9
lee_griggs
in reply to: sergeyklesov

Add the full pathname of the texture in Filename0,1,2 etc

Lee Griggs
Arnold rendering specialist
AUTODESK
Message 9 of 9
sergeyklesov
in reply to: lee_griggs

Thank you! Works like a charm

Cheers

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report