cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Meta Avatars SDK (v31.0.0)

iDanid3v
Honored Guest
I've been trying to set up new meta avatars for a multiplayer application using the latest version available (Meta Avatars SDK 31.0.0) using the "Auto Marchmaking" and "Networked Avatar" buildingblocks using Photon Fusion but when I try it, no avatar is loaded.
 
"Networked Avatar" has two objects, AvatarSDK and LipSyncInput, but in AvatarSDK where the "EntityInputManager" script should appear, the script is not recognized, something similar happens with LipSyncInput where the "LipSyncMicInput" script is not recognized.
 
iDanid3v_0-1731010383264.png

 

iDanid3v_2-1731010513835.png

 

iDanid3v_3-1731010547909.png
 
When running my scene, Unity shows me the following alerts:
 
-The referenced script on this Behaviour (Game Object 'AvatarSDK') is missing!
-The referenced script on this Behaviour (Game Object 'LipSyncInput') is missing!
 iDanid3v_4-1731010628973.png

 

To try to isolate the problem, I'm running a new clean Unity project with only Meta Avatars SDK and Photon Fusion.
Meta Avatars SDK is installed with the following dependencies:
-Meta Avatars SDK Sample Assets (31.0.0)
-Meta XR Core SDK (69.0.0)
-Meta XR Platform SDK (69.0.0)
 
iDanid3v_1-1731010430909.png
 
Finally, if I downgrade Meta Avatars SDK to version 24.1.1, everything works correctly, showing the old avatars.
 
I have tried multiple tests, even following the steps in this post (Solved: Re: Cannot add Meta Avatars SDK (v29.7.0) to a cle... - Meta Community Forums - 1246988), but so far I have not found a solution.
Is this happening to anyone else?
Thanks,
Dani
16 REPLIES 16

ImmersiveMatthew
Adventurer

SOLUTION: Meta released an update to the Meta Core SDK on Friday to v71. For some reason Unity is not showing an update is available, but if you click on it, you do see the option to update. The update specifically fixed a Fusion bug and I can confirm it fixes the issues and seems like the NetCode solution is also working!!!!

ImmersiveMatthew
Adventurer

SOLUTION:  Meta released an update to the Meta Core SDK on Friday to v71.  For some reason Unity is not showing an update is available, but if you click on it, you do see the option to update.  The update specifically fixed a Fusion bug and I can confirm it fixes the issues and seems like the NetCode solution is also working!!!!

 

Aelithe
Explorer

This is closer to a solution. I am still having issues with Netcode variant where it spawns the avatars on the host but none of the joined clients, by adding the Meta_Avatar_SDK_Define and Meta_Avatar_SDK_Defined symbols I am able to see the local avatar on the host but not the remote avatar mesh, and both the local avatar and remote avatar don't show on the joined clients.

In a fresh project (Running Netcode v1.11.0 because the blocks wouldn't allow me to instantiate with a higher version) I am running into the following.
1.

 

 

[ovrAvatar2 entity] Failed to load asset. NotFound at path: 25_rift.glb
UnityEngine.Debug:LogError (object,UnityEngine.Object)
Oculus.Avatar2.OvrAvatarLog:Log (Oculus.Avatar2.OvrAvatarLog/ELogLevel,string,string,UnityEngine.Object,bool) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarLog.cs:203)
Oculus.Avatar2.OvrAvatarLog:LogError (string,string,UnityEngine.Object) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarLog.cs:270)
Oculus.Avatar2.OvrAvatarEntity:LoadAssetsFromZipSource (string[],Oculus.Avatar2.CAPI/ovrAvatar2EntityLODFlags) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarEntity_Loading.cs:430)
Oculus.Avatar2.OvrAvatarEntity:LoadAssetsFromZipSource (string[]) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarEntity_Loading.cs:373)
Oculus.Avatar2.OvrAvatarEntity:LoadAssets (string[],Oculus.Avatar2.OvrAvatarEntity/AssetSource) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarEntity_Loading.cs:354)
Meta.XR.MultiplayerBlocks.Shared.AvatarEntity:LoadLocalAvatar () (at ./Library/PackageCache/com.meta.xr.sdk.core/Scripts/BuildingBlocks/MultiplayerBlocks/Shared/NetworkedAvatar/Scripts/AvatarEntity.cs:284)
Meta.XR.MultiplayerBlocks.Shared.AvatarEntity:LoadAvatar () (at ./Library/PackageCache/com.meta.xr.sdk.core/Scripts/BuildingBlocks/MultiplayerBlocks/Shared/NetworkedAvatar/Scripts/AvatarEntity.cs:249)
Meta.XR.MultiplayerBlocks.Shared.AvatarEntity:Start () (at ./Library/PackageCache/com.meta.xr.sdk.core/Scripts/BuildingBlocks/MultiplayerBlocks/Shared/NetworkedAvatar/Scripts/AvatarEntity.cs:166)

 

 

 2.

 

 

[ovrAvatar2 OvrAssert] Assertion failed: condition false - trace   at System.Environment.get_StackTrace () [0x00000] in <321eb2db7c6d43ea8fc39b54eaca3452>:0 
  at Oculus.Avatar2.OvrAvatarLog.LogAssert (System.String message, System.String scope, UnityEngine.Object context) [0x00001] in .\Library\PackageCache\com.meta.xr.sdk.avatars\Scripts\OvrAvatarLog.cs:290 
  at Oculus.Avatar2.OvrAvatarLog.AssertConstMessage (System.Boolean condition, System.String message, System.String scope, UnityEngine.Object context) [0x0000a] in .\Library\PackageCache\com.meta.xr.sdk.avatars\Scripts\OvrAvatarLog.cs:324 
  at Oculus.Avatar2.OvrAvatarLog.Assert (System.Boolean condition, System.String scope, UnityEngine.Object context) [0x00001] in .\Library\PackageCache\com.meta.xr.sdk.avatars\Scripts\OvrAvatarLog.cs:314 
  at Oculus.Avatar2.OvrAvatarEntity.LoadAssetsFromZipSource (System.String[] assetPaths, Oculus.Avatar2.CAPI+ovrAvatar2EntityLODFlags lodFilter) [0x00159] in .\Library\PackageCache\com.meta.xr.sdk.avatars\Scripts\OvrAvatarEntity_Loading.cs:433 
  at Oculus.Avatar2.OvrAvatarEntity.LoadAssetsFromZipSource (System.String[] assetPaths) [0x00001] in .\Library\PackageCache\com.meta.xr.sdk.avatars\Scripts\OvrAvatarEntity_Loading.cs:373 
  at Oculus.Avatar2.OvrAvatarEntity.LoadAssets (System.String[] assetPaths, Oculus.Avatar2.OvrAvatarEntity+AssetSource assetSource) [0x00010] in .\Library\PackageCache\com.meta.xr.sdk.avatars\Scripts\OvrAvatarEntity_Loading.cs:354 
  at Meta.XR.MultiplayerBlocks.Shared.AvatarEntity.LoadLocalAvatar () [0x00023] in .\Library\PackageCache\com.meta.xr.sdk.core\Scripts\BuildingBlocks\MultiplayerBlocks\Shared\NetworkedAvatar\Scripts\AvatarEntity.cs:284 
  at Meta.XR.MultiplayerBlocks.Shared.AvatarEntity.LoadAvatar () [0x00015] in .\Library\PackageCache\com.meta.xr.sdk.core\Scripts\BuildingBlocks\MultiplayerBlocks\Shared\NetworkedAvatar\Scripts\AvatarEntity.cs:249 
  at Meta.XR.MultiplayerBlocks.Shared.AvatarEntity.Start () [0x0003b] in .\Library\PackageCache\com.meta.xr.sdk.core\Scripts\BuildingBlocks\MultiplayerBlocks\Shared\NetworkedAvatar\Scripts\AvatarEntity.cs:166 
UnityEngine.Debug:LogError (object,UnityEngine.Object)
Oculus.Avatar2.OvrAvatarLog:Log (Oculus.Avatar2.OvrAvatarLog/ELogLevel,string,string,UnityEngine.Object,bool) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarLog.cs:203)
Oculus.Avatar2.OvrAvatarLog:LogError (string,string,UnityEngine.Object) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarLog.cs:270)
Oculus.Avatar2.OvrAvatarLog:LogAssert (string,string,UnityEngine.Object) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarLog.cs:290)
Oculus.Avatar2.OvrAvatarLog:AssertConstMessage (bool,string,string,UnityEngine.Object) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarLog.cs:324)
Oculus.Avatar2.OvrAvatarLog:Assert (bool,string,UnityEngine.Object) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarLog.cs:314)
Oculus.Avatar2.OvrAvatarEntity:LoadAssetsFromZipSource (string[],Oculus.Avatar2.CAPI/ovrAvatar2EntityLODFlags) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarEntity_Loading.cs:433)
Oculus.Avatar2.OvrAvatarEntity:LoadAssetsFromZipSource (string[]) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarEntity_Loading.cs:373)
Oculus.Avatar2.OvrAvatarEntity:LoadAssets (string[],Oculus.Avatar2.OvrAvatarEntity/AssetSource) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarEntity_Loading.cs:354)
Meta.XR.MultiplayerBlocks.Shared.AvatarEntity:LoadLocalAvatar () (at ./Library/PackageCache/com.meta.xr.sdk.core/Scripts/BuildingBlocks/MultiplayerBlocks/Shared/NetworkedAvatar/Scripts/AvatarEntity.cs:284)
Meta.XR.MultiplayerBlocks.Shared.AvatarEntity:LoadAvatar () (at ./Library/PackageCache/com.meta.xr.sdk.core/Scripts/BuildingBlocks/MultiplayerBlocks/Shared/NetworkedAvatar/Scripts/AvatarEntity.cs:249)
Meta.XR.MultiplayerBlocks.Shared.AvatarEntity:Start () (at ./Library/PackageCache/com.meta.xr.sdk.core/Scripts/BuildingBlocks/MultiplayerBlocks/Shared/NetworkedAvatar/Scripts/AvatarEntity.cs:166)

 

 

3.

 

 

ASSERT FAILED - [ovrAvatar2 OvrAssert] - condition false
UnityEngine.Debug:Assert (bool,string,UnityEngine.Object)
Oculus.Avatar2.OvrAvatarLog:LogAssert (string,string,UnityEngine.Object) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarLog.cs:291)
Oculus.Avatar2.OvrAvatarLog:AssertConstMessage (bool,string,string,UnityEngine.Object) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarLog.cs:324)
Oculus.Avatar2.OvrAvatarLog:Assert (bool,string,UnityEngine.Object) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarLog.cs:314)
Oculus.Avatar2.OvrAvatarEntity:LoadAssetsFromZipSource (string[],Oculus.Avatar2.CAPI/ovrAvatar2EntityLODFlags) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarEntity_Loading.cs:433)
Oculus.Avatar2.OvrAvatarEntity:LoadAssetsFromZipSource (string[]) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarEntity_Loading.cs:373)
Oculus.Avatar2.OvrAvatarEntity:LoadAssets (string[],Oculus.Avatar2.OvrAvatarEntity/AssetSource) (at ./Library/PackageCache/com.meta.xr.sdk.avatars/Scripts/OvrAvatarEntity_Loading.cs:354)
Meta.XR.MultiplayerBlocks.Shared.AvatarEntity:LoadLocalAvatar () (at ./Library/PackageCache/com.meta.xr.sdk.core/Scripts/BuildingBlocks/MultiplayerBlocks/Shared/NetworkedAvatar/Scripts/AvatarEntity.cs:284)
Meta.XR.MultiplayerBlocks.Shared.AvatarEntity:LoadAvatar () (at ./Library/PackageCache/com.meta.xr.sdk.core/Scripts/BuildingBlocks/MultiplayerBlocks/Shared/NetworkedAvatar/Scripts/AvatarEntity.cs:249)
Meta.XR.MultiplayerBlocks.Shared.AvatarEntity:Start () (at ./Library/PackageCache/com.meta.xr.sdk.core/Scripts/BuildingBlocks/MultiplayerBlocks/Shared/NetworkedAvatar/Scripts/AvatarEntity.cs:166)

 

 

Hi Aelithe,

I had the same issue today using the Photon Fusion version of the avatars (Meta SDK v71), but I was able to easily fix it. The issue is related to the avatar preset package which seems containing only 18 models (.glb files), as shown below:
avatar_assets.png

Then, to prevent the scripts looking for non-existent files I simply changed the "Preloaded Sample Avatar Size" value from 32 to 18 in the "Avatar Spawner Fusion" script (that is attached to the "[BuildingBlock] Networked Avatar" gameobject), so that it randomly picks up an avatar from the existing range.
I think you can find an equivalent script with a similar property in the Netcode version of the avatars.

Hope this helps.

Can confirm that this solves the avatars not showing up, when using two instances of the desktop simulator it shows the avatars for both the host and the client without any errors, although the update rate for the avatars seems to be quite lagged behind the movement of the name tag. It also doesn't show hand changes.

@XeniaDev: Thank you very much for your solution! The avatars are now displayed reliably.

With the last Meta XR All-in-One SDK, a switch to OpenXR Hand Skeleton was also suggested, as OVR Hand Skeleton will be deprecated.

Following that with exchanging the building blocks and using the Migration tool, the avatars are not animated anymore.

It works only with the old OVR Hand Skeleton selected in the camera rig.

Did anybody encounter that problem? Or should we wait for some updates?

Can confirm I ran into this issue too regarding animation with new hands. No solution on my side yet.