[UE4] Hair Tutorial using Fibermesh and 3DS Max

polycounter lvl 6
Offline / Send Message
Pinned
Goeddy polycounter lvl 6
Does the world need another real-time hair tutorial?
Maby, I don't know, I built this one a while back and thought it would be time wasted if I don't share it at all.
So there might be some stuff in there you have seen somewhere else, after all we are all using the same tools.
This one is mostly focused on the technical side of things, it includes a lot of stuff I wished someone told me when I created my hair, and it took me a while to figure all this stuff out.

If nothing else I recommend checking out the references mentioned, if you havn't already.



Following is the complete graph of my Hairshader:



To review what I was able to achieve using this workflow you can check out this character:








IMM_Hair_JNasconeArt_01 by Jonathan Nascone

I also have all the scirpts etc bundled here for convenience:
https://drive.google.com/file/d/0BzuzUFHnI8Jha2pmQzRqNFlYLVE/view?usp=sharing

I don't own any of theese scripts and brushes all credit goes to the original creators.


Please guys let me know if this is helpfull or if you have any questions regarding the workflow.
Cheers.

Replies

  • stororokw
    Offline / Send Message
    stororokw triangle
    Thanks for the tutorial. I thought that it was helpful.
    I was wondering if you have tried to bake a flow/tangent map instead of using the normal map? if so, how?
  • Goeddy
    Offline / Send Message
    Goeddy polycounter lvl 6
    stororokw said:
    Thanks for the tutorial. I thought that it was helpful.
    I was wondering if you have tried to bake a flow/tangent map instead of using the normal map? if so, how?
    technically speaking i dont think its possible, using current available methods, to bake a correct flow map using fibermesh. all available solutions are rough estimations derived through different means to achieve an interesting effect that looks kinda similar to real hair specularity.

    there are different methods to derive your tangent map though. something i tried for my next project is assigning a random color to every hair to get a hair ID map. I am going to use this ID map for the flow map so that every hair has a slightly different specular highlight direction.
    I'm not sure if its going to look any better then using the normal map but I will post the resulsts here once I have something decent.

    there are some hair simulation plugins for maya that generate hair using splines, they might be able to produce correct flowmaps, but i personally havn't tried any of theese since i dont think there are any good free ones (have not looked too hard admittedly)
  • stororokw
    Offline / Send Message
    stororokw triangle
    Thanks for the reply. If you get good results keep me informed.
    This is the flow map from the UE4 photo-realistic bust project. Seems like it has been crudely painted and the dimensions are only 64x64. Not really sure.


  • Goeddy
    Offline / Send Message
    Goeddy polycounter lvl 6
    Yeah epic works in mysterious ways.
    I've completed the next project using this workflow, this time i gave all the hairs a random brightness.
    The Result was convincing, but too noisy and monotone distributed across a whole haircut, so i anded up touching it up a bit in photoshop to increase contrast and create bigger strands of similar brightness to create a less random and more readable feeling of depth.

    I think I also managed to keep the overdraw and polycount to feasable levels this time, so this head could actually be used in a game.





  • Devallar
    Hiya! Ive been trying to figure out how the baking maps part works, I've used z brush for the depth map but it comes out grainy and then I tried taking to maya and baking but a the transfer maps has a couple of maps missing again. Is there any possibility that you could elaborate how exactly you did this part? (3. Texture creation) thanks in advance! 

    BTW amazing tutorial it has helped loads to understand the procedure of how to even approach the subject of in game hair better than any others I've come across! 
  • p.francescoven
    Offline / Send Message
    p.francescoven polycounter lvl 2
    Devallar said:
    Hiya! Ive been trying to figure out how the baking maps part works, I've used z brush for the depth map but it comes out grainy and then I tried taking to maya and baking but a the transfer maps has a couple of maps missing again. Is there any possibility that you could elaborate how exactly you did this part? (3. Texture creation) thanks in advance! 

    BTW amazing tutorial it has helped loads to understand the procedure of how to even approach the subject of in game hair better than any others I've come across! 
    Same problem here! Really can't understand how he got those clean maps! 
    I've tried baking a normal map with XNormal, but couldn't make it work :\
Sign In or Register to comment.