(With code) Integrate Interaction SDK with Meta Avatars SDK Demo
I succeed in combining interaction SDK with Meta Avatars SDK.
By default,
Meta Avatars SDK has its own implementation to track hands. (called CAPI, it hooks the DLL file to C#)
Interaction SDK uses OVRCameraRig to read hand data(OVRHand) and HMD data.
We can see that the poke limiter made by the Interaction SDK will not work for the avatar.
The hands will pass through the button because they use different ways to proceed with hand data.
So, I traced every source code from `OVRCameraRig`, Interaction SDK, and Meta Avatar SDK to find whether it has something like an interface to provide the hand data to Meta Avatar SDK.
Then, guess what. I found it.
The BodyTracking property in the `OVRInputManager` class provides an interface called `HandTrackingDelegate`.
By default, it will initialize a default instance that takes the hand data from CAPI.
------------------------------------------------------------------------------------------------------------
Source Code:
1. PlayerAvatarInput2.cs
https://github.com/guyleaf/Werewolf-VR/blob/main/WerewolfVR/Assets/Werewolf/Player/Scripts/PlayerAvatarInput2.cs
2. PlayerHandTrackingDelegate.cs
https://github.com/guyleaf/Werewolf-VR/blob/main/WerewolfVR/Assets/Werewolf/Player/Scripts/PlayerHandTrackingDelegate.cs
Thank GameSe7en for providing the formula to convert rotation to meta avatar space.
Reference: https://forums.oculusvr.com/t5/Unity-VR-Development/Experimenting-with-wiring-Oculus-Interaction-SDK-to-New-Meta/m-p/959963/highlight/tru #M20601
------------------------------------------------------------------------------------------------------------
Notice
The caption "OVRCameraRig - Meta Avatar SDK" is not correct in the first part of the video.
Meta Avatar SDK only uses the controllers' anchor position and the head position provided by OVRCameraRig.
It should be CAPI - Meta Avatar SDK.
Видео (With code) Integrate Interaction SDK with Meta Avatars SDK Demo автора Начинаем с IT
Видео (With code) Integrate Interaction SDK with Meta Avatars SDK Demo автора Начинаем с IT
Информация
17 февраля 2024 г. 4:44:38
00:01:02
Похожие видео