VirtualPoseCapture
No description available
Install / Use
/learn @hirobe/VirtualPoseCaptureREADME
VirtualPoseCapture
[日本語]
This is an application that uses MediaPipe to do pose tracking with the camera and move the avatar in VRM.
https://user-images.githubusercontent.com/85206/205860844-c4a0da29-6bbb-4a68-bcf5-455469892883.mov
Each part of the avatar's body is moved in the following ways
- Whole body: MediaPipe Holistic(Pose)
- Hand: MediaPipe Holistic(Hand)
- Head: MediaPipe Holistic(Face)
- Mouth: MediaPipe Holistic(Face). Only opening and closing of the mouth (up and down movement of the lips)
- Eyes: Automatically look at the camera and blink randomly
Versions of software and libraries
- Unity: 2021.3.4f1
- MediaPipe Unity Plugin: v0.10.1
- FinalIK: Version 2.2 (Unity Asset Store)
- UniVRM: 0.107.0
- VRM model: Vita (here)
FinalIK is a commercial product. Therefore, FinalIK is not included in this repository. To run this application, FinalIK must be purchased from the UnityAssetStore.
Vita, an sample character from VroidStudio, is included in this repository as a 3D model for the avatar.
How to build
When I open the project in the Unity Editor, I get an error message because the MediaPipe Unity Plugin and FinakIK are not included in the project. Please force the Unity Editor to open by pressing the following buttons respectively.
- Unity Package Manager Error
Failed to resolve packages: Tarball package [com.github.homuler.mediapipe] cannot be found at path ...Press theContinuebutton. - Press
Enter Safe Mode? Press theIgnore` button.
Setup MediaPipe and MediaPipe Unity Plugin.
- from the MediaPipe Unity Plugin release page Download
com.github.homuler.mediapipe-0.10.1.tgz. - Place the downloaded files in the
PackageFilesfolder. - Open a shell, go to your project folder and execute the following command. This command will copy models from tgz to
Assets/StreamingAssets.
./setup_models.sh
- select the menu
Assets->Reimport Allin the Unity Editor and reload it.
Setting up FinakIK
FinalIK must have been purchased from the UnityAssetStore.
- Open the Package Manager by selecting
Window->Package Managerfrom the Unity Editor menu. - Select FinalIK and press the Import button. Press the Import button with all files selected in the file selection dialog.
Change the avatar
Place the .vrm file in the Asset/VRM folder
Enter the path to the PAHT property of the script VRMLoad of the VRM object in your scene.
How to use
Open this project in Unity, open the scene Assets/Scenes/Start Scene and run it.
If you have multiple cameras like iPhone, you can use the camera button at the bottom of the screen to switch the camera to use.
LICENSE
This application uses the MediaPipe Unity Plugin to use MediaPipe from Unity. Not only that, but it also uses the MediaPipe Unity Plugin sample code for many of the camera controls and screen display components.
Note that some files are distributed under other licenses. We would like to express our deepest gratitude to those who have made their wonderful software libraries available to the public.
- MediaPipe (Apache Licence 2.0)
- MediaPipe Unity Plugin (MIT)
- FontAwesome (LICENSE)
- UniVRM (MIT)
- Vita (CC0)
- FinalIK (UnityAssetStore) (UnityAsetStore EULA)
