UDN
Search public documentation:

FaceFXExternalAnimSets
日本語訳
中国翻译
한국어

Interested in the Unreal Engine?
Visit the Unreal Technology site.

Looking for jobs and company info?
Check out the Epic games site.

Questions about support via UDN?
Contact the UDN Staff

UE3 Home > FaceFX Facial Animation > FaceFX External Animation Sets

FaceFX External Animation Sets


Overview


FaceFX animation data is stored as curve names and keys. As long as an actor has nodes in its Face Graph that match the animation curve names, the character can play the animation. Animations can therefore be shared across multiple actors and loaded dynamically in game. Exported Animation Sets give developers an interface to do this. This document describes how to create and use External Animation Sets in UE3. It does not describe the interface for loading and unloading External Animation Sets in your game, only the interface for creating and modifying External Animation Sets in FaceFx Studio.

Creating an External Animation Set


The first step is to create an External Animation Set. To do this, right-click on an existing FaceFX Asset and select Create New FaceFX AnimSet...

OC3_Slade FaceFX asset can be found in \UTGame\Content\TestPackages\MatineeTest_Resources.upk

New_Anim_Set.JPG

From the pop-up dialog, enter the Package and Group information and give the External Animation Set a name. Hit OK. To see the new Animset, you may have to do a full refresh of the Content Browser (Ctrl+F5).

The External Animation Set is now attached to the FaceFX Asset that was used to create it. Although it can be associated with any FaceFX Asset, the External Animation Set needs a default FaceFX Asset so it knows what character to open. You can change the default FaceFX Asset by right-clicking on the newly created External Animation Set, and selecting Properties.

Anim_Set_Properties.JPG

Opening an External Animation Set in FaceFX Studio


Double-click on the External Animation Set or right-click on it and select FaceFX Studio to open the External Animation Set in FaceFX Studio. The default FaceFX Asset stored in the Properties of the External Animation Set is loaded, and the External Animation Set is mounted to the actor.

Animation_Group.JPG

Notice that the External Animation Set in the screenshot above appears to be an animation group. From the user's perspective there are no visual differences between a mounted External Animation Set and an animation group. Internally however, an animation group is stored within a FaceFX Asset, and an External Animation Sets is stored elsewhere in an Unreal package.

You can only work with one External Animation Set at a time from UnrealEd. In game however, you can mount multiple External Animation Sets to a single FaceFX Asset dynamically.

Adding Animations to an External Animation Set


Initially, the newly created External Animation Set will not contain any animations. You can transfer animations into the External Animation Set or generate new animations from the Animation Manager. Select Animation Manager... from the Actor menu in FaceFX Studio.

Select_Animation_Manager.JPG

From the Animation Manager, select the External Animation Set from the animation group dropdown on the left. In the below screenshot, the Silence_Loop animation in the Default group is transferred into the External Animation Set by clicking on the button with two arrows pointing left.

Transfer_Silence_Loop.JPG

You can also generate new animations from sound cues by clicking on the Create Animation... button and following the Create Animation Wizard. Make sure the External Animation Set is selected as the Primary Animation Group at the top-left of the Animation Manager dialog. In the below screenshot, the "welcome_external" animation has been added to the External Animation Set by analyzing the "welcome" sound cue stored in the MatineeTest_Resources package.

Generated_Transfer.JPG

Saving an External Animation Set


To save the External Animation Set, simply perform a save operation from FaceFX Studio. This will save changes to both the FaceFX Asset and the External Animation Set. Even though the External Animation Set appears to be part of the FaceFX Asset, when it is saved it will be saved separately. Saving will mark the appropriate Unreal packages as dirty and you will have to save the Unreal packages to fully commit your changes.