cancel
Showing results for 
Search instead for 
Did you mean: 

Native Avatar SDK cross platform?

razhua
Honored Guest
Hi, we've been using the Avatar SDK with our Oculus Rift and Go builds, and we wanted to make an OpenVR build. We've been using the Native SDK since we don't use Unity or Unreal.

The documentation seems to imply that the Avatar SDK is now cross-platform, which is pretty cool (we'd prefer to reuse our existing avatar code if possible), but the only examples seem to be for Unity. Is it also possible to use the native Avatar SDK without the Oculus Platform SDK? I'm unsure of how to get an avatar specification without an OVR user id (Obviously I would expect there to be some non-user-specific default avatar). Thanks for any insight here.
4 REPLIES 4

razhua
Honored Guest
I feel dumb now. I had neglected to initialize the avatar api in the OpenVR build. I'm getting the avatar specification just fine with a user id of 0.

Imeve360
Honored Guest
Does anyone know if the Avatar SDK can be used on plain-vanilla Android? We'd like to show avatars on a non-HMD phone screen. Is that possible yet?

fielch
Honored Guest
"Cloud" version is really lightweight and works on all devices, even in WebGL. "Offline" avatar generation currently works on Windows, Android, iOS and MacOSX. The minimal requirement is 2Gb+ of RAM.

razhua
Honored Guest
Out of curiosity, I went and set it up in our Android build. It looks like the answer is no (although it's also possible I made a mistake). This is what I get when I call ovrAvatar_InitializeAndroid in an otherwise non-Oculus Android build:

I/OVRAvatar-Loader: ovrAvatar_Initialize: Failed to load AvatarSDK driver (-1)!
W/System.err: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.oculus.systemactivities/com.oculus.systemactivities.PlatformActivity}; have you declared this activity in your AndroidManifest.xml?
W/System.err:     at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2056)
W/System.err:     at android.app.Instrumentation.execStartActivity(Instrumentation.java:1716)
W/System.err:     at android.app.Activity.startActivityForResult(Activity.java:5192)
W/System.err:     at android.app.Activity.startActivityForResult(Activity.java:5150)
W/System.err:     at android.app.Activity.startActivity(Activity.java:5521)
W/System.err:     at android.app.Activity.startActivity(Activity.java:5489)
A/OVRAvatar-Loader: DisplayErrorAndExit: Failed to launch SystemActivities
E/libc++abi: terminating with uncaught exception of type ovrAvatarException: jni/../src/Loader.cpp
A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL)