How to texture hair length when you "Export UV" in C4D?

How to texture hair length when you "Export UV" in C4D?

edenexposito
Enthusiast Enthusiast
1,768 Views
4 Replies
Message 1 of 5

How to texture hair length when you "Export UV" in C4D?

edenexposito
Enthusiast
Enthusiast

How I can control hair color from root to tip (Texture along V) at same time when I had applied a texture to create a color fur pattern ("Export UV")?. Here an image

57-hair.jpg

0 Likes
1,769 Views
4 Replies
Replies (4)
Message 2 of 5

peter.horvath6V6K3
Advisor
Advisor

The position along the length (from 0 to 1) is stored in the barycentric v coordinate (bv) which you can read via the state_float shader.

For example in the following network a ramp shader is controlled by bv (select 'custom' type in the ramp) to interpolate between a static color and a texture (Export UVs is enabled):

64-hair-texture.png

0 Likes
Message 3 of 5

edenexposito
Enthusiast
Enthusiast

Thanks! Works like a charm

0 Likes
Message 4 of 5

lamarKPDHG
Participant
Participant

>>>For example in the following network a ramp shader is controlled by bv (select 'custom' type in the ramp) to interpolate between a static color and a texture (Export UVs is enabled):<<<

If you wanted to simply use the entire color of the image would you then plug the image into both ramp colors?

Also, What happens to the base color in the standard hair shader in this type of setup?

I ask because I'm trying to do this with grass and following your advice to the letter brings some dark roots and results that aren't as good as the previous technique in Arnold.

0 Likes
Message 5 of 5

peter.horvath6V6K3
Advisor
Advisor

> If you wanted to simply use the entire color of the image would you then plug the image into both ramp colors?

The ramp setup interpolates between Color 1 and Color 2 from root to top. If you just want to use the texture through the whole curve then no need for the ramp, simply connect the texture to the Diffuse Color.

> What happens to the base color in the standard hair shader in this type of setup?

In this setup the the Diffuse Weight controls the diffuse contribution. 1 means fully diffuse scattering and the Base color has no effect.

0 Likes