Announcement

Collapse
No announcement yet.

Shading Houdini Hair

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Shading Houdini Hair

    Hello guys,
    I am struggling with getting to properly shade houdini's hair. Excuse me, I am not sure if it is more question for Houdini or Vray forum but if anyone could point me in the right direction, I would be happy...
    1) I would need to have a ramp along "V" map parameter to have fine control of the strand from tip to top. I can use Hair Sampler to mix different textures but if I would like to have a finer control through gradient?
    2) How to have some control over randomization of hairs? Typically in tutorials for different render engines I can see the technique goes like this: you create ramp with your desired set of colors and plug the randomization number to asses randomly your strands color to the position on the gradient.
    3) This is more specific Houdini question but anyway, maybe I would be lucky here - I have mapped head which is used to generate hair. How to use heads UV texture for mapping the hair?
    Thanks a lot!

  • #2
    Originally posted by woytha View Post
    Hello guys,
    I am struggling with getting to properly shade houdini's hair. Excuse me, I am not sure if it is more question for Houdini or Vray forum but if anyone could point me in the right direction, I would be happy...
    1) I would need to have a ramp along "V" map parameter to have fine control of the strand from tip to top. I can use Hair Sampler to mix different textures but if I would like to have a finer control through gradient?
    2) How to have some control over randomization of hairs? Typically in tutorials for different render engines I can see the technique goes like this: you create ramp with your desired set of colors and plug the randomization number to asses randomly your strands color to the position on the gradient.
    3) This is more specific Houdini question but anyway, maybe I would be lucky here - I have mapped head which is used to generate hair. How to use heads UV texture for mapping the hair?
    Thanks a lot!
    Haha ad 1) Solved - just plug HairSampler distance along strand to "position" in Ramp and change type to "Position"... Do not know how I managed to overlook this.

    Comment


    • #3
      Hello @woytha
      Originally posted by woytha View Post
      1) I would need to have a ramp along "V" map parameter to have fine control of the strand from tip to top. I can use Hair Sampler to mix different textures but if I would like to have a finer control through gradient?
      you are right about HairSampler [out:distance_along_strand] to gradien_position of GradientRamp [modeosition]

      Click image for larger version

Name:	Shading.Houdini.Hair_1.png
Views:	851
Size:	49.0 KB
ID:	1098452

      Originally posted by woytha View Post
      2) How to have some control over randomization of hairs? Typically in tutorials for different render engines I can see the technique goes like this: you create ramp with your desired set of colors and plug the randomization number to asses randomly your strands color to the position on the gradient.
      here setup is similar, but instead "distance_along_strand" use "random_by_strand" output

      Click image for larger version

Name:	Shading.Houdini.Hair_2.png
Views:	811
Size:	48.8 KB
ID:	1098451

      Originally posted by woytha View Post
      3) This is more specific Houdini question but anyway, maybe I would be lucky here - I have mapped head which is used to generate hair. How to use heads UV texture for mapping the hair?
      Thanks a lot!
      be sure the uv attribute is added in Output Attributes of Attributes tab of Hairgen Node and set it as "UV Name" in UV tab of ImageFile VOP or V-Ray Channel Name VOP

      Click image for larger version

Name:	Shading.Houdini.Hair_31.png
Views:	842
Size:	71.5 KB
ID:	1098453Click image for larger version

Name:	Shading.Houdini.Hair_32.png
Views:	819
Size:	81.3 KB
ID:	1098454
      Georgy Chakarov | QA
      www.chaosgroup.com
      georgy.chakarov@chaosgroup.com

      Comment


      • #4
        Originally posted by chakarov View Post
        Hello @woytha

        you are right about HairSampler [out:distance_along_strand] to gradien_position of GradientRamp [modeosition]

        Click image for larger version

Name:	Shading.Houdini.Hair_1.png
Views:	851
Size:	49.0 KB
ID:	1098452


        here setup is similar, but instead "distance_along_strand" use "random_by_strand" output

        Click image for larger version

Name:	Shading.Houdini.Hair_2.png
Views:	811
Size:	48.8 KB
ID:	1098451


        be sure the uv attribute is added in Output Attributes of Attributes tab of Hairgen Node and set it as "UV Name" in UV tab of ImageFile VOP or V-Ray Channel Name VOP

        Click image for larger version

Name:	Shading.Houdini.Hair_31.png
Views:	842
Size:	71.5 KB
ID:	1098453Click image for larger version

Name:	Shading.Houdini.Hair_32.png
Views:	819
Size:	81.3 KB
ID:	1098454
        Perfect. Thanks, thanks, thanks!

        Comment

        Working...
        X