Version 15 (modified by welberge, 7 years ago) (diff)



AsapRealizer's default FaceEngine provides flexible support for morph based and/or MPEG4 facial animation.

XML setup

AsapRealizer's default FaceEngine is setup through the FaceEngineLoader xml description.

Typical setup:

<Loader id="faceembodiment">
<Loader id="faceengine" 
          loader="asap.faceengine.loader.FaceEngineLoader" requiredloaders="faceembodiment">
    <FaceBinding basedir="" resources="Humanoids/billie/facebinding/" filename="facebinding.xml"/>

The FaceEngine requires a FaceEmbodiment? and a facebinding.

The facebinding

The facebinding is an XML file describing the Binding between BML face behaviors and the motor units that execute them.

Binding a Morph motor plan unit


<FaceUnitSpec type="faceLexeme">
     <constraint name="lexeme" value="smilemouth"/>
     <parameter src="amount" dst="intensity"/>
      <parameterdefault name="intensity" value="1"/>
      <parameterdefault name="targetname" value="KevinHead.mesh-Smile"/>
  <FaceUnit type="Morph"/>

Here, the obligatory

  <parameter src="amount" dst="intensity"/>

maps the BML faceLexeme amount parameter directly to the intensity (=blend value) of the bound morphs. The obligatory targetname specifies a comma separated lists of morph targets that are used to achieve this specific BML behavior.