Announcement

Collapse
No announcement yet.

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

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

  • 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!
    Last edited by evanerichards; 04-01-2013, 10:37 AM.

  • #2
    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
    I only act like I know everything, Rogers.

    Comment


    • #3
      Originally posted by vlado View Post
      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.
      www.deex.info

      Comment


      • #4
        And that works? Interesting

        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
        I only act like I know everything, Rogers.

        Comment


        • #5
          Originally posted by vlado View Post
          And that works? Interesting

          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.
          www.deex.info

          Comment


          • #6
            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.

            Comment


            • #7
              Im wondering if this will work for shave hair/hair mtl 3
              Dmitry Vinnik
              Silhouette Images Inc.
              ShowReel:
              https://www.youtube.com/watch?v=qxSJlvSwAhA
              https://www.linkedin.com/in/dmitry-v...-identity-name

              Comment


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

                Comment


                • #9
                  Originally posted by FSGFX View Post
                  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://www.spot3d.com/vray/scenes/shave_uvs_sample.zip

                  http://forums.chaosgroup.com/showthr...t=hair+sampler
                  Dmitry Vinnik
                  Silhouette Images Inc.
                  ShowReel:
                  https://www.youtube.com/watch?v=qxSJlvSwAhA
                  https://www.linkedin.com/in/dmitry-v...-identity-name

                  Comment


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

                    Comment


                    • #11
                      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
                      Last edited by Morbid Angel; 03-02-2014, 03:17 PM.
                      Dmitry Vinnik
                      Silhouette Images Inc.
                      ShowReel:
                      https://www.youtube.com/watch?v=qxSJlvSwAhA
                      https://www.linkedin.com/in/dmitry-v...-identity-name

                      Comment

                      Working...
                      X