Can vray hair mtrl 3 color propagate from underlying mesh material?

I’m doing some hair tests. Is there any way to take the hair color (which is set in the vray hair material) and have the color propagate from the color of the underlying mesh?

Please advise.
Thanks!

Unfortunately no. For Maya Hair, we don’t have any information that would allow us to make a connection between the hairs and their source geometry.

It should work for VRayFur though.

Best regards,
Vlado

It works with me, or i am wrong ?
I use the “hairColor” from the “VRayHairSampler” node, and connect the same texture in the “hair color” of the hairSystem and the sphere.

And that works? Interesting :slight_smile:

It’s a bit manual setup though; I thought evanerichards wanted the color to be automatically taken from the diffuse color of the sphere material… or am I wrong?

Best regards,
Vlado

If i understand my trick/hack :
There are FollicleShape which put the hairs. Each follicle have “parameter U” and “parameter V”, based of the UV of the sphere.
When you connect a 2d texture in the hair color of the hairSystem, the hair will take the color of the 2d texture based of the U and V of the follicle. So, the hair will take the same color that the sphere.
So, if i connect the “hairColor” of a “VRayHairSampler” node on the VRayHairMtl, the “VRayHairSampler” will take the color of the hair color of the hairSystem (so, the color of the mesh).

I am not 100% sur.

Yeah, this is what I ended up doing and it worked. I connected the R G B channels from the color out of my image to the R G B of the VrayMaterialHair 3 primary colors and overall colors and BAM! It works.
good stuff.

Im wondering if this will work for shave hair/hair mtl 3

i cant get it to work… could someone explain the workflow a bit further..?
or post an example scene..?

I found a post where vlado made an example here is the post and example:

http://forums.chaosgroup.com/showthread.php?69922-Shave-6-0-70-and-Vray-2-21-VRayMtlHair3&highlight=hair+sampler

thanks Dimitry but i dont use shave here… it does not look like the same workflow..

So I think I made this work. Its based around the same example as I posted in post before, however I modified it to work with maya hair. I didnt test it on 2.4 branch but in 3.0 it works. Give it a try.
vray_maya_hair_example.zip (13.7 KB)