Vadim-Karpenko / CC_DynamicWrinkles_UE4

Unreal Engine 4 package that adds wrinkles on your character's face during the animation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic Wrinkles system for Unreal Engine 4 & CC3\iClone characters.

Overview

Demo

(Youtube links)

Dynamic wrinkles demo 1 (Unreal Engine 4, Character Creator 3, iClone) Dynamic wrinkles demo 2 (Unreal Engine 4, Character Creator 3, iClone)

Currently added wrinkles

  • Forehead.
  • Cheeks laugh lines.
  • Eye laugh lines.
  • Lips

How it works?

If you open the CC_Textures folder, you will find a set of normal maps that is used by this Asset. In short, on every time when curve of your face is changed the material function will get those curve values and use them to generate a single normal map and apply it on the character. It will not affect your mesh in any way, only normal maps are used in this package.

Requirements

  • In order to use this package you need to install a Reallusion`s Auto setup plugin into your project.
  • This package was tested only in Unreal Engine 4.26, so keep in minds that older versions might not work.

Installation

  • Clone or download this repository.

  • Move DynamicWrinkles folder from this repository into your YourProject/Content folder.

  • Open your DynamicWrinkles folder and locate AddWrinkles_CC material function, we'll need it later.

  • Go to Content/CC_Shaders/SkinShader and open RL_HQSkin material.

  • Locate the pin connected to the Normal input

  • Follow the pin to the bottom

  • Drag & Drop AddWrinkles_CC function from the DynamicWrinkles folder into this place and connect correspondingly.

  • Go to the place where your character is located and open Skeletal Mesh.

  • At the left side of the screen locate the Material instance for character's head.

  • Enable the wrinkles. Settings below may require configuration later.

  • Create an Animation Blueprint for your character. Left click on your Skeletal mesh -> Create -> Anim Blueprint. Note that if you're planning to use new ARKit curves from CC 3.4, you probably already have Animation blueprint from this guide

  • In the Event Graph connect Event Blueprint Update Animation node with Process Wrinkle Curves CC node. Use "wrinkle" keyword to find it.

    For the blueprint from ARKit, just place the node at the very end of the BP logic.

  • Connect Self node to the Target input.

  • Open the AnimGraph tab and drag the animation, or use the test animation provided by this repository. If the wrinkles on the face is barely visible in the preview window, it is possible that you need to tweak settings in the Material Instance.

  • To see your animation during gameplay you will need to select your character in the World Outliner and select your Anim Blueprint in the settings.

About

Unreal Engine 4 package that adds wrinkles on your character's face during the animation.