ホーム 暮らし How to make your avatar face-tracking compatible for free using only Unity [VRChat]

How to make your avatar face-tracking compatible for free using only Unity [VRChat]

雨宮 千夏 雨宮 千夏 • 更新: • 公開: • 読了約 17 分
目次

Explanation of this method

n7e06738f5b93

This article is intended for those who:

“want to use face tracking on a minor avatar”
“want to do face tracking using the same techniques as facial expression modification”

people.

The face tracking setup in the video above took around 2 hours.

Everything is free and uses Unity only.

It is also based on the setup for Apple ARKit FaceTracking.

Therefore, it is designed to be easily compatible with PerfectSync-supported apps using an iPhone.

In normal facial expression modification, you create and edit AnimationClips, but this process involves adding new BlendShapes to the avatar.

Since both methods involve adjusting BlendShapes, I think you can do it using the same techniques as facial expression modification.

So, how many BlendShapes are actually needed? 3 types of eyebrows, 4 types of gaze, 3 types of eyes, 2 types of cheeks, 1 type of nose, 3 types of jaw, 15 types of mouth, 1 type of tongue, all compliant with PerfectSync...

In total, 30 types, and if you count those separated by Left/Right, you will be registering 52 new BlendShapes.

“You have to make 30 types, 52 facial expressions...!? That's endless!”

You might feel that way, but in reality, most are simple expressions like “closing eyes”.

They are summarized below.

Also, it works even if not all BlendShapes are prepared, so just the necessary parts are fine.

(Actually, there are some BlendShapes I always exclude because they aren't needed for use in VRChat.)

To prioritize checking the operation, let's start by moving the eyebrows.

The process for making a 3D model face-tracking compatible is as follows.

Basically, you just need to add the specified BlendShapes and then upload. Let's get started!

Unity tools to use

We will use the following tools this time. You can import them all in advance.

  • BlendShapeInserter A tool for batch registering BlendShapes.

  • BlendShapeSimpleEditor A tool for editing BlendShapes.

  • BlendShapeEditor A tool for advanced BlendShape editing. (Optional)

  • VRCFT - Jerrry's Templates An asset that makes avatars VRCFT-compatible in a non-destructive way.

  • VRCFury The overseas version of ModularAvatar. Required to use the FT-compatible tools mentioned above.

1. Add BlendShapes for face tracking to your avatar

Let's start setting up the BlendShapes for Facial Tracking right away.

This time, I will be setting it up for the Blue Archive Bunny Asuna created by Chakapo-sensei.

In this article, we will try making only the eyebrows compatible with Facial Tracking as a test, so let's check what kind of facial expression modifications are actually needed.

There are only the following 3 types of eyebrows. For now, it's fine to just have a rough understanding that "we are making these 3 types this time."

Although there are 3 types, since [browDown] and [browOuterUp] also require left and right (Left/Right),a total of 5 BlendShapes will be created.

① Batch register BlendShapes for face tracking to the avatar

Let's get started with the actual work.

First, we will bulk-register the BlendShapes for facial tracking to your avatar.

BlendShapeInserter and launch it from Tools.

Access this and select the sheet named "ARkitBlendShapeList" from the bottom of the screen.

Copy and paste that list and execute it to bulk-register the BlendShapes to your avatar.

From here on, we will edit these BlendShapes.

2. Editing BlendShapes with BlendShapeSimpleEditor

Next, we will edit the registered BlendShapes.

BlendShapeSimpleEditor and launch it from Tools.

At this stage, please create the 3 types and 5 eyebrow expressions mentioned earlier.

It may take some time, but while looking back at the eyebrow examples mentioned earlier, let's create them one by one, aiming for expressions as similar as possible.

I have summarized how to deal with cases where "I don't have enough BlendShape types to reproduce the examples..." in the Note at the end.

Even if you can't make them well,let's prioritize checking the operation and move on for now.

2. Preparing for upload

Once you have finished modifying the eyebrow expressions up to this point, you might want to upload it immediately, but there is one checkpoint.

Parameters.

1. Keep VRC Expression Parameters at 95 or less

The VRCFT - Jerrry's Templates we are about to use also uses 161 expression menu parameters.

Since VRChat has a limit of 256, you need to reduce your existing parameters to at least 95 parameters or less.

I will skip the details regarding Ex menu parameters as it is a long topic, but please find and remove parameters that won't cause issues with avatar usage if removed.

2. Add VRCFT - Jerrry's Templates to the avatar

Once you have finished checking the parameters, import VRCFT - Jerrry's Templates, which will automatically set up face tracking for your avatar.

Also, for this, VRCFury is required, so please import that in advance as well.

Once the import of both tools is complete, look for 'VRCFury - Face Tracking - ARKit Blendshapes'.

The location is in Packages > VRCFT - Jerrry's Templates > Prefabs.
You can also search by text.

3. Done! Upload!

Once you are finished, let's go ahead and upload it.

When uploading, the following image display may appear.

This is a notification regarding VRCFury's Write Defaults.
For now, you can skip it, and if any issues arise with your avatar, you can use Auto-Fix.

Even if you use Auto-Fix and encounter trouble, you can revert the changes from the VRC Avatar Descriptor.

I actually uploaded it and confirmed the eyebrow movement with Quest Pro.

I made a character with one eye covered, so I can't check the other eyebrow, but you can see that the eyebrows are moving properly.

If you haven't finished setting up your VR equipment or VRCFT facial tracking, please do that first.

If facial animations interfere

There are cases where they might interfere with facial animations or be multiplied by expressions controlled via controller inputs.

In that case, the quickest way is to open the FX layer of the avatar itself and simply delete the weight of the problematic part.

Proceeding with the full setup

Once you have successfully confirmed that it works, you can proceed with the full setup.

The video above shows everything completed for now.

You will be repeating the same process as the eyebrow setup over and over, but since there is a lot of it, it is overwhelmingly easier to know the efficient way to do it.

Techniques such as "increasing the types of BlendShapes" and "distributing a dedicated memo spreadsheet" are described in Part 2 below. Please be sure to read it before you start configuring.

If this article was helpful, I would be happy if you could react with the Like button. (It seems you can do this even if you are not registered on Note.)


同じカテゴリの記事

雨宮 千夏
デジタルマーケター 雨宮 千夏
プロフィールを見る →

アイドルと音楽シーンの取材を担当。公式サイトの公演情報、リリース告知、公開チャートを照合してから構成しています。

おすすめの関連記事