C4DtoA - Hair color from texture

C4DtoA - Hair color from texture

Anonymous
Not applicable
3,795 Views
11 Replies
Message 1 of 12

C4DtoA - Hair color from texture

Anonymous
Not applicable

Hey all,

I'm using Arnold core 5.0.1.4, C4DtoA 2.1.2, and the method to color hair was different in older versions of the plugin.

I've added an Arnold Parameters tag to my Hair object with 'Export UVs' checked. In the Hair object, I plugged in the geometry's UV tag to the UV parameter in the 'Advanced' tab. But the hair still renders black when I plugin an image texture to Base color or diffuse color of the 'standard_hair' shader.

Am I missing a step? Could you please outline the steps to generate hair, colored based on the texture of a given object?

Thanks!

0 Likes
Accepted solutions (1)
3,796 Views
11 Replies
Replies (11)
Message 2 of 12

peter.horvath6V6K3
Advisor
Advisor
Accepted solution

That should be it. Enable 'Export UVs', set Diffuse weight to 1.0 in the hair shader and connect the texture to the Diffuse color.

0 Likes
Message 3 of 12

Anonymous
Not applicable

Ah, I hadn't set Diffuse Weight to 1.0. Thank you Peter!

0 Likes
Message 4 of 12

gremmler
Participant
Participant

I'm trying to do this with a vertex map instead of a bitmap. the vertex map comes from the same surface as the hair. But it's not showing any color change of the hair. Maybe there is a node that can convert the vertex map node output into a bitmap/texture format which can be interpreted correctly by the hair? It has to be on the fly (no texture baking), because the vertex map is changing gradually.

0 Likes
Message 5 of 12

peter.horvath6V6K3
Advisor
Advisor

Right, vertex maps don't work at the moment, because they are exported to the polymesh and not the curves node. I can fix that, but note that the number of data in the vertex map has to match the number of curves.

0 Likes
Message 6 of 12

gremmler
Participant
Participant

Thanks for the prompt feedback Peter! So each hair needs one polygon, right? That would require a pretty dense mesh. But for in some cases, it would be really helpful. Btw, could this feature also be applicable to clones? It would be great to have the possibility to colorize clones or hairs more selectively 🙂

0 Likes
Message 7 of 12

peter.horvath6V6K3
Advisor
Advisor

Each hair needs one vertex.

You mean colorize clones by a vertex map? You can access the display color of the clones in an Arnold material, so you can do what C4D allows. Maybe there's already a solution to control the display color by a vertex map? Or could be achieved with a custom Effector maybe?

0 Likes
Message 8 of 12

gremmler
Participant
Participant

Cloner display color to Arnold material? How is this possible? Btw, just tried to colorize the hair with a noise, but this doesn't work either. So for now only texture can be used for topologically coloring hair, right?

0 Likes
Message 9 of 12

peter.horvath6V6K3
Advisor
Advisor

Use a user_data_rgb shader with the display_color attribute. Check out this tutorial:

https://vimeo.com/139620806

The noise (or any other texture shader) should work fine until it operates in the UV space.

0 Likes
Message 10 of 12

gremmler
Participant
Participant

Perfect, many thanks!

0 Likes
Message 11 of 12

Anonymous
Not applicable

thanks so much for the post it really saved me 🙂

0 Likes
Message 12 of 12

Anonymous
Not applicable

...and thanks for the answer 🙂

0 Likes