Skip to main content

BlendShape Setting

New features introduced in UniVRM v0.45:

VRMBlendShapeProxy

figure

The figure above is VRMBlendShapeProxy in the Inspector window at runtime. VRMBlendShapeProxy can be enabled by clicking the play button in edit mode

How to use:

  • Set BlendShapeAvatar VRMBlendShapeProxy->BlendShapeAvatar in the Inspector
  • Change BlendShapeClip value between 0 and 1 at runtime (e.g. BLINK, JOY)

BlendShapeAvatar

Expressions can be created in the Inspector.

Double click theBlend Shape Avatarfield

Or

ClickBlendShapedirectly in the Project view

The Inspector of BlendShape editor

Select expressions and customize the values. For example, we selectFunand edit its expressions as shown in the following:

Example: Setmouth_smile,eye_smileandeyeblow_smileto 100

The individual blend shapes such as eyebrow, eye and mouth can be merged into one expression like the image above. Created BlendShape names can be specified.

After changing slider value and creating BlendShape, click the Apply button for saving the current status.

BlendShape preset

Select Preset

The predefined names for the BlendShape clips. The following predefined expressions are available:

NEUTRAL

Specified as the standard facial expression and assumed to be used in standby state.

A, I, U, E, O

Corresponds to the sound of lip-syncaa・ih・ou・E・oh.

Eye blink.

Blinks with only one eye.

Joy, Angry, Sorrow, Fun

Emotion.

LookUp, LookDown, LookLeft, LookRight

Used when the model's eyes are controlled by BlendShape.

Unknown

New created expressions are specified as Unknown.

Change the value of BlendShapeProxy (at runtime)

Presetis used

You can operate expressions from the Inspector.

[Option] Add additional facial expressions

figure

Enter a name for the new BlendShapeClip file (BlendShapeClipName.asset) and save it. Then, select the new generated button in the BlendShapeClip list (the last button) and enter a name. Also, please set facial expression values for new BlendShape clips.

figure

You can call it from the codes shown as follows:

// unknownなのでstringで呼び出し
proxy.ImmediatelySetValue("びっくり", 1.0f); // 0から1で指定

[Option] Morph material color

figure

The setting of Material morph. Double click theCurrent clipfield or directly select the BlendShape clip (e.g. BlendShape.XXX or your created name) in the Project view