Preparation
Create a new project with Unity (I am using 2020.3.25), KinectFouUnity plug-in version: Kinect v2 Examples with MS-SDK 2.13, Kinect plug-in example 3D dressup Demo scene: change model, bind model, and material replacement can be realized There are many 3D dress-up functions on the Internet.
(1): KinectFittingRoom1
(2):
The above two scenes of KinectFittingRoom2 are the official 3D dressing function;
what needs to be implemented this time is the 2D dressing function: reference example scene: KinectPhotoBooth
function realization
Make a copy of the KinectPhotoBooth sample scene and delete irrelevant resources: the scene directory is as follows:
KinectManager needs to be linked to the script:
Set the vertical screen display method: check the script in the figure below, and disable the UserBodyBlender component under Main Camera;
Template Image Settings