three-mediapipe-rig 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ This will run 3 models: face, body, hands. So expect a FPS drop.
|
|
|
12
12
|
Expolore the demos:
|
|
13
13
|
- [Characters](https://bandinopla.github.io/three-mediapipe-rig)
|
|
14
14
|
- [Hands Demo](https://bandinopla.github.io/three-mediapipe-rig/?demo=hands)
|
|
15
|
-
- [Video to Face Geometry](https://bandinopla.github.io/three-mediapipe-rig/?demo=face-uv
|
|
15
|
+
- [**Video to Face Geometry** !!](https://bandinopla.github.io/three-mediapipe-rig/?demo=face-uv)
|
|
16
16
|
---
|
|
17
17
|
|
|
18
18
|
## Table of Contents
|
|
@@ -237,6 +237,9 @@ const face = tracker.faceTracker.bindGeometry( faceMesh );
|
|
|
237
237
|
face.update(delta)
|
|
238
238
|
```
|
|
239
239
|
|
|
240
|
+
### How does this work?
|
|
241
|
+
You use the canonical face model provided by media pipe ( this is important because it has the same number of vertices as the facial mesh ), this code will create a positionNode ( needs a NodeMaterial ) that will adjust the position of the vertices to match the facial mesh and also it will use the video feed as a texture for the mesh, so it will look like the face is deforming and moving with the webcam feed.
|
|
242
|
+
|
|
240
243
|
## Multiple Characters
|
|
241
244
|
|
|
242
245
|
You can bind **multiple rigs** to the same tracker. All of them will mirror the tracked motion:
|