Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Random percentage between two inputs based on texture - Hair shading

1 REPLY 1
Reply
Message 1 of 2
Anonymous
163 Views, 1 Reply

Random percentage between two inputs based on texture - Hair shading

Hi,


I have a hair primitives shading question:

I want to use the below black and white texture mask to drive the percentage/chance/probability between two color inputs (this case blue/red). I am using a layer_RGBA and want to use the "mix" input to do this (in case I want to layer other colors on in the future).

Basically if my texture mask has a value of 1.0 , I want input2 to have a 100% chance of appearing, if my texture mask have a value of 0.5 I want a 50% chance of input2 randomly appearing on the hair primitives and so on. I only want 100% of input1 and 100% input2, no mixing between the two. Hope this makes sense.

Is there a way to do this with standard Arnold out the box?


7818-1596302851932.png




Closest I've gotten is the below network:

7817-1596302734596.png


Which results in this, which is not quite what I am after since there are hairs which have a value between the two inputs, e.g either not 100% input1 or 100% input2, but a mix between the two.

As mentioned I want only 100% of input1 and 100% input2, depending on the value of the texture, lets say 0.7, it would then give me 70% blue hairs(input2) and 30% red hairs (input1).

7816-1596302681696.png


Any suggestion would be appreciated.


cheers,

Klaus

Labels (5)
1 REPLY 1
Message 2 of 2
lee_griggs
in reply to: Anonymous

Maybe a color_correct would give you more control over the output?

Lee Griggs
Arnold rendering specialist
AUTODESK

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

Post to forums  

Autodesk Design & Make Report