question

Klaus Skovbo avatar image
Klaus Skovbo asked ·

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?





Closest I've gotten is the below network:


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).


Any suggestion would be appreciated.


cheers,

Klaus

arnoldmtoahtoashadinghair
1596304430863.png (151.6 KiB)
1596302851932.png (162.6 KiB)
1596302734596.png (67.8 KiB)
1596302681696.png (643.3 KiB)
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

1 Answer

· Write an Answer
Lee Griggs avatar image
Lee Griggs answered ·

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

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.