oculus-samples / Unity-Movement

Body, Eye and Face Tracking code sample.
Other
269 stars 45 forks source link

Sample scenes InvalidOperationException: Avatar is null. #50

Closed Pvanderlaan89 closed 8 months ago

Pvanderlaan89 commented 9 months ago

When I enter play mode with for example the MovementHighFidelity sample scene, I see the below error:

2024-01-03_18-02-08

Tracking seems to be off for multiple bones. There is an offset between the OVRCameraRig hand position and the HighFidelityFirstPerson hand mesh position (about 30cm or so) and also other bones of the avatar body seem to track incorrectly resulting in a stretched body.

Another issue, when I smile with my mouth closed, the avatar smiles with it's mouth open.

Unity 2022.3.11f1, Meta all-in-one 60.0.0 and Meta movement 4.0.1.

sohailshafiiWk commented 8 months ago

We are sorry that you are encountering issues with body and face tracking. We have duplicated the "Avatar is null" issue and can confirm it is caused by a function call (GetBoneTransform) that causes a null reference exception in Unity 2022 if the Animator does not have an avatar assigned. This behavior is different from Unity 2021, so we will post a fix to the GitHub samples early next week. We are currently looking into the issue with the mouth opening during smiling and we will update you when we know more.

andkim-meta commented 8 months ago

The "Avatar is null" issue should now be resolved with the version 4.1.0 release of the github package. For the face tracking issue with the avatar smiling when you're smiling with your mouth closed, please check that you are on v60 OS version or newer on the Quest Pro and let us know if you can reproduce the issue. If you can, please open a new issue separately.