a month ago
Solved! Go to Solution.
2 weeks ago - last edited 2 weeks ago
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!!!!
2 weeks ago - last edited 2 weeks ago
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!!!!
2 weeks ago - last edited 2 weeks ago
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)
2 weeks ago - last edited 2 weeks ago
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:
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.
2 weeks ago - last edited 2 weeks ago
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.
a week ago
@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?
a week ago
Can confirm I ran into this issue too regarding animation with new hands. No solution on my side yet.