Announcement

Collapse
No announcement yet.

Control hair color along lenght

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

  • Control hair color along lenght

    Hi,

    I know there is the Hairinfotex that make a gradient with a bias along hair length but is possible to have more control on the color along the length of a hair strand like with a gradient ramp? Or maybe using vertex painting?

    I am trying to make a skunk tail like you can see here the tip is black and base is white but transition is sharper that what I can do with the vrayHairInfoTex...

    and by the way I saw in the doc that hair have no diffuse (and we chouls leave it black unless the hair has dirt) so to get that color in the hair I would put the texture in the transmission alone [do I have to copy it to the specular too? or do I leave the spec linked to the transmission (in that case I guess the spec color has no effect anymore???)]
    Last edited by jstrob; 02-09-2016, 11:21 AM.

    __________________________________________
    www.strob.net

    Explosion & smoke I did with PhoenixFD
    Little Antman
    See Iron Baby and other of my models on Turbosquid!
    Some RnD involving PhoenixFD

  • #2
    Have you tried to put your HairInfoTex into a Gradient Ramp in Mapped as gradient type? I guess it should work...

    -Eugenio

    EDIT: Just tested it and there's this little bug where it seems the first knot from the gradient is always black. To solve it I simply added another knot. And BTW, I can also use HairInfoTex inside an output map to control the transition with a curve...

    -Somehow the first (red) knot is black
    Click image for larger version

Name:	HairRamp1.jpg
Views:	1
Size:	482.2 KB
ID:	863358

    -Adding another knot seems to solves the problem. (but the bug is still there if you change bias in HairInfoTex, though).
    Click image for larger version

Name:	HairRamp2.jpg
Views:	1
Size:	299.3 KB
ID:	863359
    Last edited by Midiaeffects; 02-09-2016, 01:49 PM.

    Comment


    • #3
      Cool thank s for the tip! I will try that it should work!

      __________________________________________
      www.strob.net

      Explosion & smoke I did with PhoenixFD
      Little Antman
      See Iron Baby and other of my models on Turbosquid!
      Some RnD involving PhoenixFD

      Comment


      • #4
        I was not getting black tip, but I was getting some black stands, I just choosed planar from object XYZ as texture mapping type.

        Click image for larger version

Name:	gradientExplicit.JPG
Views:	1
Size:	160.8 KB
ID:	863362
        Click image for larger version

Name:	gradientPlanar.JPG
Views:	1
Size:	183.9 KB
ID:	863363

        with rally no extra knot:
        Click image for larger version

Name:	gradientPlanar1.JPG
Views:	1
Size:	209.0 KB
ID:	863364

        __________________________________________
        www.strob.net

        Explosion & smoke I did with PhoenixFD
        Little Antman
        See Iron Baby and other of my models on Turbosquid!
        Some RnD involving PhoenixFD

        Comment


        • #5
          Hey, nice find jstrob! I actually forgot to mention the black strands! And I haven't found a solution for that! So thanks! And looks like my problem was that I tested in Vray 3.30 which I have installed in max 2016. I played with Vray 3.40.02 in max 2017 and indeed there's no need to add an extra knot. Cool!

          Vlado, the black strands is surely a BUG. I keep re-rendering and the black strands are totally random every time. Downloading 3.40.03 to see if the issue persists.

          EDIT: Tested in 3.40.03 and yes, black strands are there and appear randomly each time I fire a render.

          -Eugenio
          Last edited by Midiaeffects; 02-09-2016, 06:41 PM.

          Comment


          • #6
            Do they go away if you turn off the tiling of the gradient ramp?

            Best regards,
            Vlado
            I only act like I know everything, Rogers.

            Comment


            • #7
              I guess I've tried everything, but no, they keep showing. Turning tiling off in 3.40.03 (don't know about previous versions) instead of black, they show up as white. Gradient ramp always had some problems at the borders, often I have to use a tiling of 0.99 instead of 1 to get rid of it. Or setting blur to 0.01. But in this case it doesn't help.

              At least is easily solvable by changing the Mapping to anything other than Explicit Map Channel.

              -Eugenio

              Comment


              • #8
                Originally posted by vlado View Post
                Do they go away if you turn off the tiling of the gradient ramp?

                Best regards,
                Vlado
                That's what I think of trying first but no here too. What's funny is that if I change the gradient ramp blur value, the black strands are not the same.

                __________________________________________
                www.strob.net

                Explosion & smoke I did with PhoenixFD
                Little Antman
                See Iron Baby and other of my models on Turbosquid!
                Some RnD involving PhoenixFD

                Comment


                • #9
                  Then it would be best to post some example scene...

                  Best regards,
                  Vlado
                  I only act like I know everything, Rogers.

                  Comment


                  • #10
                    Really stange, I didn't keep my previous test and I can't reproduce the black strands bug. And now I got black tip for max hair and fur and black root for V-Ray fur. And even choosing another mapping doesn't solve the black tip this time.

                    here is a scene. http://www.phylacterecola.com/strob/...rVlado_001.max

                    Click image for larger version

Name:	gradientPlanarBlackTip.JPG
Views:	1
Size:	150.7 KB
ID:	863389

                    __________________________________________
                    www.strob.net

                    Explosion & smoke I did with PhoenixFD
                    Little Antman
                    See Iron Baby and other of my models on Turbosquid!
                    Some RnD involving PhoenixFD

                    Comment


                    • #11
                      That's interesting, opened jstrob file here on max 2017 Vray 3.40.03 and got black root/tips too. But if build a scene from scratch, it doesn't happen. Another thing is that I just get black strands from Hair and Fur, while VrayFur works fine.

                      Rendered 20 frames to show how the black strands appear randomly per frame:



                      And here's the scene file (max 2017):
                      FurFlicker.zip

                      -Eugenio
                      Last edited by Midiaeffects; 05-09-2016, 09:08 PM.

                      Comment


                      • #12
                        I'm on max 2016 vray 3.40.02

                        __________________________________________
                        www.strob.net

                        Explosion & smoke I did with PhoenixFD
                        Little Antman
                        See Iron Baby and other of my models on Turbosquid!
                        Some RnD involving PhoenixFD

                        Comment


                        • #13
                          Hi guys!
                          We've reported the issue with the black "flickering" strands to our developers and will post in this thread on any updates.

                          Regarding the black tips in jstrob's scene - these are coming from the second VRayHairInfoTex and its empty color A and color B slots, plugged into the Flag#1 slot of the gradient.
                          Unhooking that map or plugging something in the two texture slots should fix the issue you're having.

                          As a suggestion, for best results it is recommended to change the Hairs parameter to "mr prim" (Environment and effects > Effects > Hair and Fur) and plug the hair material in the "mr Parameters" rollout of the Hair and Fur modifier.
                          Miroslav Ivanov
                          Chaos Cosmos

                          Comment


                          • #14
                            Originally posted by miroslav.ivanov View Post
                            Hi guys!
                            We've reported the issue with the black "flickering" strands to our developers and will post in this thread on any updates.

                            Regarding the black tips in jstrob's scene - these are coming from the second VRayHairInfoTex and its empty color A and color B slots, plugged into the Flag#1 slot of the gradient.
                            Unhooking that map or plugging something in the two texture slots should fix the issue you're having.

                            As a suggestion, for best results it is recommended to change the Hairs parameter to "mr prim" (Environment and effects > Effects > Hair and Fur) and plug the hair material in the "mr Parameters" rollout of the Hair and Fur modifier.
                            Ok great!

                            Nice find i didn't even notice I had a second texture in the gradient color. I saw it in the slate editor. In fact I didn't even know we could plug a texture in there. Nice to know. But I really don't know how the texture got plugged there. If I remove it the black tip/root are gone.

                            And yes about the MR prim, I forgot about it but I think that was causing the black strands in my first test. In my second test I used "buffer" and I didn't get the black strands.

                            To avoid those black strands we can also just not use any hairinfotex and just rotate the V angle of the coordinates of the gradient in buffer mode. the only problem then is that with vray fur we get a uninvited color at the tip. But it doesn't show if we use taper.
                            Click image for larger version

Name:	bufferGradient90.JPG
Views:	1
Size:	171.3 KB
ID:	863400

                            I would like to know what are the possible problems if we use buffer instead of MR prim?

                            Here is a scene where I could reproduce the black strands with mrPrim on max hairAndFur
                            http://www.phylacterecola.com/strob/...trands_001.max
                            Click image for larger version

Name:	bufferHairInfoBlackStrand.JPG
Views:	1
Size:	231.3 KB
ID:	863401

                            __________________________________________
                            www.strob.net

                            Explosion & smoke I did with PhoenixFD
                            Little Antman
                            See Iron Baby and other of my models on Turbosquid!
                            Some RnD involving PhoenixFD

                            Comment


                            • #15
                              I would like to know what are the possible problems if we use buffer instead of MR prim?
                              Lighting, motion blur and depth of field wont work properly, there won't be any shadows cast on other objects, etc.
                              Miroslav Ivanov
                              Chaos Cosmos

                              Comment

                              Working...
                              X