Forum Discussion
XNW
4 years agoHonored Guest
Meta Avatar SDK with Obb file
Recently, our team started to use obb file as the apk file is getting bigger and bigger. After using obb, our meta avatar doesn't load correctly, and we get these errors: [ovrAvatar2 native] AssetL...
Ysiu_
4 years agoExplorer
For anyone looking at this.
On my end Quest2 local avatars failed to load for with error:
[ovrAvatar2 entity] Failed to load asset. NotFound at path: 0_quest.glb
now quite intestingly it looked like the whole zip was loaded fine with:
[ovrAvatar2 native] Loader::Added Oculus/OvrAvatar2Assets.zip as zip source
Digging further:
- zip file load on quest done via Oculus.Avatar2.OvrAvatarManager.AddRawZipSource was forced to load PresetAvatars_Quest2.zip (this bit will be resolved in code based on runtime platform [Quest/Quest2/Rift])
- then it tries to load glb (in our case that was 0_quest.glb), in this case _quest.glb is a specified postfix. This is default postfix in OvrAvatarEntity
- when you're running it on Quest2 it'll load glbs from PresetAvatars_Quest2.zip file, if you look into the zip you'll find that postfix there is _quest2.glb. Chaning that sorts the issue for this platform
I think it was broken for us at some point with Avatar plugin update, previously preset avatars were in 2 zips, one for Quest and one for Rift, now that they differentiate it seems script is broken. Without custom change to OvrAvatarEntity there's little you can do to grab correct postfix.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 months ago
- 12 months ago
- 2 months ago
- 7 months ago