설치

  • Unreal > Edit > Project Settings
    • Rendering > Optimizations > Support Compute Skincache = True
    • Animation > Performance > Tick Animation on Skeletal Mesh Init = False
  • Unreal 플러그인 설정
    • Alembic Groom Importer = True
    • Groom = True
  • 언리얼 재시작

워크플로 개요

  • Maya
    • Start
    • Create Groom in XGen
    • Export To Alembic Following Schema
  • Groom.abc
  • Unreal Engine
    • Import Hair Alembic
    • Set Groom Data On GroomComponent
    • Attach Groom Component To Socket
    • Transfer Skinning
    • Assign and Tweak Hair Materials
    • Assign and Tweak Physics Properties
  • End
  1. Create your Hair Groom in youre preferred DCC application.
  2. Export your Hair Groom as an Alembic(*.abc) file.
  3. Import your Alembic Groom file into UE4
  4. Place your Groom Asset in the World (as an Actor or in a Blueprint)
  5. Attach the Groom Component (Actor) to Skeletal Mesh Socket with Transfer Skinning.
  6. Setup and Assign your Hair Material
  7. Assign the Niagara GroomAssetSystem as a child of your Groom Component

마야에서 Hair 내보내기

  • in maya, 면 선택
  • Modeling Mode > Menu > Generate > Create Interactive Groom Splines
    • 노드 이름: HairDescription
    • 밀도 조절
  • HairDescription 선택
  • 스케일 조절
  • Generate > Export Cache
    • Cache time range: Current frame
    • Multiple Transforms: False
    • Write Final Width: True
    • Export to: ex) d:/project/maya/Assets/Common/CH/Humanoid/Hair/HumanoidHair.abc
  • 테스트하기 위해서 Export 한 abc파일을 Import해본다.
    • nurbsCurve 들이 잘 들어왔는가?

언리얼로 Hair 가져오기

  • Hair 알렘빅 파일 Import
  • SM_Hunanoid를 씬에 배치
  • Import된 HumanoidHair(Gloom)을 씬에 배치
    • RotateX: -90
    • RotateY: 0
    • RotateZ: 180
  • WorldOutliner 에서 HumnanoidHair를 Humanoid 위로 드래그
    • Socket or Bone: head_jnt
  • HumanoidHair 선택
  • Details 에서 Bind Groom to Skeletal Mesh = True=
  • 헤어 재질 지정하기
    • 새 재질 만들기
    • Shading Model = Hair
    • Constant4Vector 노드를 만들고 M_Hair.baseColor 에 연결하기
    • Constant 노드를 만들고 M_Hair.roughness 에 연결하기
    • Used with Hair Strands = True
    • 재질 저장 후 닫기
  • 헤어 Physics 설정하기
    • Select World/SK_Humanoid/HumanoidHair
    • Add Niagara Particle System Component on Groom Component
    • Select Niagara Particle System Component
      • Niagara System Asset = GroomAssetSystem
        • 에셋이 보이지 않는다면, View Options에서 Show Plugin Content를 켜라

참고자료