Search Unity

Question Unity Alembic for hair/cloth

Discussion in 'Physics' started by Silvere69, Oct 3, 2022.

  1. Silvere69

    Silvere69

    Joined:
    Jul 12, 2016
    Posts:
    39
    Hello everyone,

    I search some useful tool to create physical hair/cloth who don't kill FPS and i fall on this article: https://80.lv/articles/sakura-rabbit-s-unity-hair-system-updated/

    It seems to be realtime but when i search for "Alembic", i only find physical animated in timelines or animations (not realtime)

    Did someone already used Alembic or something and have some links/doc?

    Thanks
     
  2. blueivy

    blueivy

    Joined:
    Mar 4, 2013
    Posts:
    633
  3. TiggyFairy

    TiggyFairy

    Joined:
    Dec 22, 2019
    Posts:
    506
    Any idea on the timeframe for this being in the engine?
     
  4. arkano22

    arkano22

    Joined:
    Sep 20, 2012
    Posts:
    1,928
    Alembic is a data exchange format. When you hear about an "alembic simulation", it usually refers to importing a baked simulation (stored in an alembic file) into the engine. This is not actual simulation but basically a "video" of it that you can play back. Not interactable in any way, and won't react to other objects in the scene, but much cheaper than a simulation.

    Unity's strand-based hair solution (which has been already available for quite some time, here's some resources to get started: https://learn.unity.com/project/getting-started-with-hair-simulation) uses alembic to import static groom data (guide hairs) into the engine. Then, it performs an *actual* simulation of the hairstyle/groom defined by that data.

    Note this is actually quite advanced stuff, it's fairly easy to get terrible performance out of it unless you know what you're doing.
     
    Last edited: Nov 16, 2022
  5. TiggyFairy

    TiggyFairy

    Joined:
    Dec 22, 2019
    Posts:
    506

    Ah okay thank you.