Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Hair Designer - Dynamic hair & fur tool

Discussion in 'Assets and Asset Store' started by kalagaan, Sep 16, 2016.

  1. Xskey

    Xskey

    Joined:
    Jul 23, 2013
    Posts:
    23
    Does it support HDRP and URP?
     
  2. kalagaan

    kalagaan

    Joined:
    May 27, 2012
    Posts:
    1,292
    yes, the package includes addon for HDRP and URP
     
    Xskey likes this.
  3. Xskey

    Xskey

    Joined:
    Jul 23, 2013
    Posts:
    23
    Can't wait for the update. :p I just not sure that new animation system work on URP and HDRP.
    It looks cool! I wonder if I can use it with fur, or use that hair as a fur.
     
  4. kalagaan

    kalagaan

    Joined:
    May 27, 2012
    Posts:
    1,292
    Yes, the new animation system works with all the render pipelines, but it's only available for the long hair system.
    You have to use the motion zones for the short hair and the fur.

    I'll create a new kind of layer based on the new motion system.
    You could also animate any bone system using the API.
     
    Xskey likes this.
  5. JayTay33

    JayTay33

    Joined:
    Jan 2, 2016
    Posts:
    37
    @kalagaan
    Once again. I'm happy to say that this is an awesome tool. I've had great success so far with the fur and short hair.

    For the long hair. I'm trying to create a full set of long hair. Aside from adding hair one layer at a time, or duplicating and moving around duplicated layers, is there an easier way? Eg: a prefab that I can use or script to create a full set up of long hair as a starting base that can then be tweaked and customized?

    * Edit
    I'm able to use the long hair from the demo scene but only on the sample mesh. I can't seem to copy the sample long hair onto my character mesh. thanks in advance.
     
    Last edited: Mar 9, 2021
  6. kalagaan

    kalagaan

    Joined:
    May 27, 2012
    Posts:
    1,292
    Each layer is based on the character geometry, so you can't copy/past a layer from a character to another.
    I'll try to create a way to export a layer as a template, but it's no yet possible.
     
  7. Ruberta

    Ruberta

    Joined:
    Mar 5, 2019
    Posts:
    75
    I wonder if hair designer can do something like this? The developer said on his twitter that he use hair cards with DrawProcedural and a compute buffer. I'm not sure about short hair method in hair designer right now. Does it is capable to draw massive amount of cards?
     
  8. kalagaan

    kalagaan

    Joined:
    May 27, 2012
    Posts:
    1,292
    You can create a lot of hair cards using the short hair layer.
    It will generate a new mesh based on the character skinning and blendshapes.

    You can use the advanced fur for creating DX11 fur with tesselation, it generates the hair cards at runtime.
    This tech is limited to windows computers and works only with thie built-in RP.




    I'm working on a new generator type based on drawprocedural, compute buffers and compute shaders for the animation. So it looks like the same kind of tech than in the video.
    I've still some work to do on the tool, so I don't know when it will be available.

    Here a sample,
    each strand is generated in the shader itself, based on animated nodes.

     
    Last edited: Apr 7, 2021
    Rotary-Heart, Ruberta and Xskey like this.
  9. Vertify-CStocker

    Vertify-CStocker

    Joined:
    Apr 8, 2021
    Posts:
    1
    While it was finicky and quite a bit of effort, I did exactly that and I am pretty happy with the result overall.
    I used short hair to have it support blendshapes.

    Anyway, visually they look pretty great and with the texture generator you can get a lot out of variation (length, density, clumpiness, straightness) out of it with just one set of painted short hair

    lashes1.png lashes2.png


    The generated blendshapes could be a bit better though as the movement is sometimes a bit off. For example I would expect the hair to move as a whole with the root, but sometimes the tip of the hair tries to stay in place while the root moves away.

    lashes.gif
     
    wetcircuit and hopeful like this.
  10. kalagaan

    kalagaan

    Joined:
    May 27, 2012
    Posts:
    1,292
    Wow, really nice work! :)

    I'll check the blendshapes generation, the hair card should follow the face orientation.
     
  11. jaripam

    jaripam

    Joined:
    Apr 5, 2021
    Posts:
    3
    Hi,
    the main reason for me using this tool is to create "simple" long hair added to a character Mesh.

    But I can't figure out how to do that. Is there a tutorial for that somewhere or do you mind giving me just a quick guideline how to practically accomplish that?

    I can use the small hair section, make the hair longer, but can't figure out how to make them just fall down with gravity. When changing the gravity parameter in the design or material tab nothing happens.

    Thank you very much!!
     
    Last edited: Apr 16, 2021 at 2:13 PM
  12. kalagaan

    kalagaan

    Joined:
    May 27, 2012
    Posts:
    1,292
    Hello,

    You have to use the long hair layer.
    You'll be able to create geometry from curves, and the system will generates the bones and the animation system.

    I've just updated the package to the version 1.10.0, it should be available soon on the assetstore.

    This new version includes a specific demo for the long hair generator.
    The curve generator has been improved with new functions and options for optimizing the rendering while editing the curves.
    The new animation system (V3) is based on compute shader and it looks much better.
     
    hopeful likes this.
  13. jaripam

    jaripam

    Joined:
    Apr 5, 2021
    Posts:
    3
    Wow I'm perfectly on time for the new version :)
    Also thank you for your quick and comprehensive reply!

    Have to bother one more time though:
    All of a sudden I can't use the long & short hair Designer anymore with the mesh I'm using. Flur still works but when I try adding long/short hair, nothing happens. A few hours ago it worked with the exact same mesh.
    Maybe you've encountered something like that before and have a quick idea?
    Thanks again!
     
  14. kalagaan

    kalagaan

    Joined:
    May 27, 2012
    Posts:
    1,292
    That's weird :confused:
    Could you send me the mesh ? (contact@kalagaan.com)
    I could try by my side.
     
  15. jaripam

    jaripam

    Joined:
    Apr 5, 2021
    Posts:
    3
    I just made a new project, reimportet everything and it works fine. (restart before wasn't enough)

    Wonderful tool btw, so much fun :) Can't wait for the new version.

    Cheers!
     
    kalagaan likes this.
  16. kalagaan

    kalagaan

    Joined:
    May 27, 2012
    Posts:
    1,292
    Here some tests of the strand based tech.

     
    Rotary-Heart, hopeful and wetcircuit like this.
  17. Weendie-Games

    Weendie-Games

    Joined:
    Feb 17, 2015
    Posts:
    65
    This new update is available on the assetstore.. does it work with HDRP ? Because right now the long hair demo is using standard materials so in my HDRP project is all pink.

    How i can fix that? Wich material shoud i use to replace the standard one?

    Thanks
     
    Last edited: Apr 19, 2021 at 11:39 AM
  18. kalagaan

    kalagaan

    Joined:
    May 27, 2012
    Posts:
    1,292
    Yes, the new animation system works with all the render pipelines. :)
    The demo is only available for the built-in render pipeline now, but I'll add a package for HDRP and URP.

    You have to change the material to 'HD_HDRP_Atlas', 'unlock' and 'Lock' the layer in the design tab.
    You can add the same hair textures than the built-in shader.

    If you need a version before the assetstore update, please send me an email with your invoice number
    ( contact@kalagaan.com ).
     
    Last edited: Apr 19, 2021 at 12:45 PM
    Weendie-Games likes this.
  19. Exeneva

    Exeneva

    Joined:
    Dec 7, 2013
    Posts:
    412
    Hi,

    The documentation and example videos are way out of date.

    upload_2021-4-19_21-16-30.png

    I have attached the Hair Designer component to the head gameobject. I do not see any UI for placing long hair polygons. Is there an up-to-date walkthrough video?

    For reference, I am using URP11, Unity 2021.1.3f1
     
  20. kalagaan

    kalagaan

    Joined:
    May 27, 2012
    Posts:
    1,292
    Hello,
    I'll create a new video for the long hair layer.
    In the latest versions of unity, you have to enable the 'Gizmos' button in the scene view to enable the scene UI.
     
  21. kalagaan

    kalagaan

    Joined:
    May 27, 2012
    Posts:
    1,292
    I finally found a way to render really thin strands without too much aliasing :D

     
    hopeful likes this.
  22. kalagaan

    kalagaan

    Joined:
    May 27, 2012
    Posts:
    1,292
    I've added a braid mode :)
     
    hopeful and wetcircuit like this.
  23. kalagaan

    kalagaan

    Joined:
    May 27, 2012
    Posts:
    1,292
  24. Exeneva

    Exeneva

    Joined:
    Dec 7, 2013
    Posts:
    412
    Sounds good, I will wait for a video demonstrating best practices for long hair. Very curious about your recommendations of where to place the curves and where not to place for more believable hair.
     
unityunity