Health of Hair in Games *split hairs*

Discussion in 'Console Technology' started by chris1515, Jan 23, 2020.

  1. turkey

    Veteran Newcomer

    Joined:
    Oct 21, 2014
    Messages:
    1,086
    Likes Received:
    866
    Location:
    London
    Splitting hairs on Beyond 3d? :shock::shock: :runaway::runaway:
     
  2. Shifty Geezer

    Shifty Geezer uber-Troll!
    Moderator Legend

    Joined:
    Dec 7, 2004
    Messages:
    43,576
    Likes Received:
    16,033
    Location:
    Under my bridge
    I'm thinking of something completely different. although I don't know how it'd be executed in a GPU. In real terms, hairs can always be drawn as thin-lines no matter what distance, so you could simulate a volume with something fluid-dynamicy, and use that as a mathematical basis for drawing lines through this volume.
     
  3. Cyan

    Cyan orange
    Legend Veteran

    Joined:
    Apr 24, 2007
    Messages:
    9,306
    Likes Received:
    2,988
    you need to sacrifice to have Pantene hair.

    Still, when I played Tomb Raider on my laptop with a 1050Ti -now I only play on my desktop computer with a GTX 1080-, I disabled everything that made the game hit the 60fps mark save for the hair stuff. It's very well done in Tomb Raider, in fact I find it an essential feature, once you enable it, you don't want to disable it.
     
    see colon and Xbat like this.
  4. JoeJ

    Veteran Newcomer

    Joined:
    Apr 1, 2018
    Messages:
    1,060
    Likes Received:
    1,241
    Sounds not so different. We share the idea to trace hair through a volume, just like in this Unity demo. (I know this is fast - on meshes i used very simple midpoint euler integration to trace curve trajectory and linear barycentric interpolation of the vertex vector field - no need for expensive bicubic filter, simple 3D texture lookup would work.)
    Maybe drawing many lines in compute is just as fast as using less lines and extruding them to a quad strip, for sure it would not look like Medusa at least. :)

    But you can not do it with fluid dynamics alone, because it lacks constraints like preserving the length of a hair or bending resistance.
    Thus my proposal to simulate a few guide hairs with those constraints, and then fill the volume with guide hair segment direction vector. Really fast and no expensive fluid solver necessary (can't saturate so async or on CPU).

    So far the only expensive part is lighting and rendering... thinking of it, drawing lines might be indeed less complex and faster, IDK.
    I'm also unsure if it needs self collision or if hair tends to 'stick together' like fluid? If so, fluid dynamics could help i guess.


    I remember one scene at the beginning of Tomb Raider reboot. She was hanging upside down from the ceiling, but the pony tail did not hang down, it sticked upwards at her sholders. This really looked bad.
    So either let the center of volume swing at half hair length from the head, or make the volume twice as large just to support such cases or swimming under water.
     
    Shifty Geezer likes this.
  5. JoeJ

    Veteran Newcomer

    Joined:
    Apr 1, 2018
    Messages:
    1,060
    Likes Received:
    1,241
    Looks great. Guess at this detail only in cutscenes?
    Seems just simulating a cards mesh. If this works for long female hair too, i would be happy with that and avoid more complicated tech, but i doubt it.
     
  6. JoeJ

    Veteran Newcomer

    Joined:
    Apr 1, 2018
    Messages:
    1,060
    Likes Received:
    1,241

    Hmmm... edge case :)
     
  7. Silent_Buddha

    Legend

    Joined:
    Mar 13, 2007
    Messages:
    17,564
    Likes Received:
    7,502
    IIRC, isn't TressFX entirely shader/compute based? In theory with enough compute you could do hair however you want. I guess the biggest problem is having it be efficient enough to be use in a game with all game systems running.

    I haven't followed it enough to know why it isn't used in more games. Perhaps because it's too taxing on current gen consoles and on PC NV devel is much stronger than AMD.

    Regardless, in the games that used it or modified versions of it, it has been really impressive. Maybe we'll see it used more in the next console gen.

    Regards,
    SB
     
  8. DavidGraham

    Veteran

    Joined:
    Dec 22, 2009
    Messages:
    3,448
    Likes Received:
    3,986
    On PC, the only broad option we have is HairWorks, it used to work through CUDA, but then NVIDIA translated it through DirectCompute, it's it's done using Tessellation, it's real focus nowadays is simulating fur on multiple animals, human hair is rarely simulated. It was used for only 5 games:

    -The Witcher 3 (fur and hair)
    -Call Of Duty Ghosts (fur)
    -Far Cry 4 (fur)
    -Final Fantasy 15 (fur)
    -Metro Exodus (fur)


    TressFX was made by AMD through Compute as well, it was used mainly for hair in two games:

    -Tomb Raider 2003
    -Lichdom Battlemage

    It was then modified by developers into a tech called PureHair (a dumbed down version that can work on consoles), it was used in three games:

    -Rise of Tomb Raider
    -Shadow of Tomb Raider
    -Deus Ex Mankind Divided

    Horizon Zero Dawn also modified TressFX into something else that suited their engine and target platform.

    https://cargocollective.com/Lithvall/Horizon-Zero-Dawn
     
    turkey, Cyan, Shifty Geezer and 4 others like this.
  9. milk

    milk Like Verified
    Veteran Regular

    Joined:
    Jun 6, 2012
    Messages:
    3,640
    Likes Received:
    3,674
    I think that if next gen games simply sprinkle a few strands of individually simulated hairs on top of the classic ribon cards system, that would be enough to fool us into thinking the whole hair is properly simulated at an individual level. That plus the density and number of cards inevitably continuing to increase.
     
  10. eloyc

    Veteran Regular

    Joined:
    Jan 23, 2009
    Messages:
    2,441
    Likes Received:
    1,591
    Are you sure?
    upload_2020-1-26_21-7-30.png
     
  11. upnorthsox

    Veteran

    Joined:
    May 7, 2008
    Messages:
    2,105
    Likes Received:
    379
    The dev time that went into that, no wonder next gen will be a waste of time.
     
  12. upnorthsox

    Veteran

    Joined:
    May 7, 2008
    Messages:
    2,105
    Likes Received:
    379
    Personally, I just want to be able to brush Aloy's hair at the campfires. A My Little Aloy would be so.....therapeutic, especially after fighting a T-Rex.
     
  13. BRiT

    BRiT (>• •)>⌐■-■ (⌐■-■)
    Moderator Legend Alpha

    Joined:
    Feb 7, 2002
    Messages:
    18,316
    Likes Received:
    20,113
    Why you got to make T-Rex the villain?
     
  14. Frenetic Pony

    Regular Newcomer

    Joined:
    Nov 12, 2011
    Messages:
    632
    Likes Received:
    325
    All just sounds like the raymarched LOD already presented last year, which seems to work very well: https://anteru.net/files/2019/rthhr.pdf

    I'd suspect a compact neural net might be a much better fit for sim though, no performance screeching fluid dynamics at the cost of extra ram and "good enough" results sounds well worth it.

    Combined with advances in hair brdf, hopefully that neat fur brdf will translated to some realtime hack soon, perhaps hair and fur won't look like either a flickery, noisy, stiff mess of planes or a weirdly soft and fuzzy volumetric look of fins and shells come this next generation.
     
    JoeJ and orangpelupa like this.
  15. orangpelupa

    orangpelupa Elite Bug Hunter
    Legend Veteran

    Joined:
    Oct 14, 2008
    Messages:
    9,055
    Likes Received:
    2,433
    Kinect killer app

    Or ps camera killer app? It already allow you to touch stuff in the playroom app
     
  16. milk

    milk Like Verified
    Veteran Regular

    Joined:
    Jun 6, 2012
    Messages:
    3,640
    Likes Received:
    3,674
    I wasn't thinking of cardboard hair for the main volume, but rather the pretty decent stuff we've been getting in titles like death stranding, RE, etc...
     
    #36 milk, Jan 27, 2020
    Last edited: Jan 27, 2020
  17. TEEDA

    Regular

    Joined:
    Jun 29, 2005
    Messages:
    595
    Likes Received:
    429
    Sorry Haven't found a proper topic but but as this is related to hairwork technology ad new consoles and next gen features are coming I wished we would see more of this " fur " , " hair " physics for next gen. I remember Nvidia having this exclusive hairwork technology but I wished it was not exclusive.
    We have seen lots of good exemples like Alloy Hair in HZD. and I hope we will see more of this for the next upcoming next gen games.
    The last game which featured such a great " fur " " hair " effect, I saw was the black myth wukong trailer with the wolf (last gif)

    [​IMG]
    [​IMG]
    [​IMG]
     
  18. Davros

    Legend

    Joined:
    Jun 7, 2004
    Messages:
    16,500
    Likes Received:
    3,821
    AMD has it's own hair tech (cant remember if its exclusive)
    Found it : AMD TressFX Hair
    https://www.amd.com/en/technologies/tressfx


    edit: should have read david graham's post
     
    #38 Davros, Oct 15, 2020
    Last edited: Oct 15, 2020
    TEEDA likes this.
  19. TEEDA

    Regular

    Joined:
    Jun 29, 2005
    Messages:
    595
    Likes Received:
    429
  20. Lalaland

    Regular

    Joined:
    Feb 24, 2013
    Messages:
    864
    Likes Received:
    691
    I must admit even when I had GPUs where I could enable this stuff I wasn't enamoured of the look, especially the fur stuff it always made animals look like they were about to parade for the judges at Crufts with lovely fluffy manes. I found the traditional textures often grounded the model in the game world better than the better looking fur tech, I hesitate to point to the water buffalo in the GIF from Far Cry 4 as I'm sure GIF encoding is at least partially responsible for why the hair shader buffalo looks like a stippled mess.

    Edit: What I will point to is the fur on the buffalo's stomach, the hair shader has it as beautiful fluffy strands waving under their belly whereas the texture has them looking matted and dirty as they should do for an animal that spends a decent chunk of it's day half submerged in muck
     
    #40 Lalaland, Oct 15, 2020
    Last edited: Oct 15, 2020
    Vega86 and TEEDA like this.
Loading...

Share This Page

  • About Us

    Beyond3D has been around for over a decade and prides itself on being the best place on the web for in-depth, technically-driven discussion and analysis of 3D graphics hardware. If you love pixels and transistors, you've come to the right place!

    Beyond3D is proudly published by GPU Tools Ltd.
Loading...