当前位置:网站首页>Unity | two ways to realize facial drive
Unity | two ways to realize facial drive
2022-07-06 01:12:00 【Boiled Green Vegetable】
Catalog
One 、 Application unity Live Capture Plug in and iphone Unity Face Capture Software
(1) introduce Live Capture Package
(2) Create an empty object ( name :Recorder), add to Take Recorder Components .
(4) Set up the model ARKit Face Actor In the component mapper.
(5) Set up New FaceDevice Of ARKit Face Device Component's Actor value .
3. iphone download Unity Face Capture Software
Two 、 Control through algorithm data BlendShape The number
One 、 Application unity Live Capture Plug in and iphone Unity Face Capture Software
1. Version for
- unity edition :Unity Editor 2020.3.16f1 or later version
- iphone edition :iOS 14.6 or higher
- Reference documents :About Live Capture | Live Capture | 1.0.1 (unity3d.com)
2. unity In the operation :
(1) introduce Live Capture Package
Live Capture stay Package Manager Pass through git url How to add :

(2) Create an empty object ( name :Recorder), add to Take Recorder Components .
Add ARKit Face Device: It will be in Recorder Automatically create under the object New FaceDevice, There is a ARKit Face Device Components .

(3) Drag the model into the scene , And add ARKit Face Actor Components , Make the model into Prefab.
Pay attention to model import Unity Check... When Import BlendShapes( Just check it ,unity Check... By default ).
stay Project Create a mapper( Right click /Create/Live Capture / ARKit Face Capture / Mapper), Set up mapper Related properties (RigPrefab Specify as generated in the previous step prefab,LeftEye、RightEye、Head To select the corresponding joint . The purpose of this step is to map BlendShape, If our model BlendShape The name matches Apple's ARKit requirement , be AddRender The operation will be mapped automatically , Otherwise, we need to set it manually ).

(4) Set up the model ARKit Face Actor In the component mapper.
(5) Set up New FaceDevice Of ARKit Face Device Component's Actor value .
(6) Create a server .
Click on Window/Live Capture/Connections, Click on Configure FireWall. Click on Create Server/Companion App Server, Click on Start Opening service .

3. iphone download Unity Face Capture Software
Open software ( The software is in iphone 12 Pro Max 15.4.1 Upper pro test stability , stay iphone X It will heat up and flash back ), Input IP And Port, After connecting, you can drive ~( If you can't connect , Probably unity The version does not conform or the network does not conform , Refer to official documents :About Live Capture | Live Capture | 1.0.1 (unity3d.com))
Two 、 Control through algorithm data BlendShape The number .
1. Correlation function
- obtain BlendShape Quantity and corresponding name .
public sealed class Mesh : Object
{
public int blendShapeCount { get; }
public string GetBlendShapeName(int shapeIndex);
}- Set up BlendShape The weight
public class SkinnedMeshRenderer : Renderer{
public void SetBlendShapeWeight(int index, float value);
}2. Realization
The data value range provided by the algorithm may be 0-1, So in SetBlendShapeWeight When it comes to *100.
Dictionary<string, int> bs_map;// On the model bs name - Indexes
skinnedMeshRenderer.SetBlendShapeWeight(bs_map["eyebrow_BS.Eyebrows_Sad_L"], 20);边栏推荐
- Cglib dynamic agent -- example / principle
- Mysql--- query the top 5 students
- Recursive method to realize the insertion operation in binary search tree
- Distributed base theory
- Logstash clear sincedb_ Path upload records and retransmit log data
- VSphere implements virtual machine migration
- For a deadline, the IT fellow graduated from Tsinghua suddenly died on the toilet
- WordPress collection plug-in automatically collects fake original free plug-ins
- esxi的安装和使用
- cf:C. The Third Problem【关于排列这件事】
猜你喜欢

cf:D. Insert a Progression【关于数组中的插入 + 绝对值的性质 + 贪心一头一尾最值】

黄金价格走势k线图如何看?

Leetcode study - day 35

ORA-00030

3D模型格式汇总
![[groovy] JSON serialization (jsonbuilder builder | generates JSON string with root node name | generates JSON string without root node name)](/img/dd/bffe27b04d830d70f30df95a82b3d2.jpg)
[groovy] JSON serialization (jsonbuilder builder | generates JSON string with root node name | generates JSON string without root node name)

File upload vulnerability test based on DVWA

95后CV工程师晒出工资单,狠补了这个,真香...

Who knows how to modify the data type accuracy of the columns in the database table of Damon

Illustrated network: the principle behind TCP three-time handshake, why can't two-time handshake?
随机推荐
Promise
After 95, the CV engineer posted the payroll and made up this. It's really fragrant
Introduction to robotics I. spatial transformation (1) posture, transformation
记一个 @nestjs/typeorm^8.1.4 版本不能获取.env选项问题
Beginner redis
Pbootcms plug-in automatically collects fake original free plug-ins
Differences between standard library functions and operators
MYSQL---查询成绩为前5名的学生
[Arduino syntax - structure]
Leetcode study - day 35
golang mqtt/stomp/nats/amqp
The basic usage of JMeter BeanShell. The following syntax can only be used in BeanShell
Is chaozhaojin safe? Will it lose its principal
Nmap: network detection tool and security / port scanner
Leetcode1961. 检查字符串是否为数组前缀
视频直播源码,实现本地存储搜索历史记录
Four dimensional matrix, flip (including mirror image), rotation, world coordinates and local coordinates
The third season of ape table school is about to launch, opening a new vision for developers under the wave of going to sea
95后CV工程师晒出工资单,狠补了这个,真香...
Unity | 实现面部驱动的两种方式