cancel
Showing results for 
Search instead for 
Did you mean: 

Not seeing correct Avatar, but right materials

Ross_Beef
Heroic Explorer
GEMISIS:
Just to check, is this the alpha bug mentioned, or is this something separate? (This is the color of my custom avatar, so it's almost there)
Ross_Beef
@GEMISIS - that looks like our default avatar. Can you confirm that you're entering the app Id in the newly added 'gear app id' field in Unity (it used to just be 'Rift app id'?

GEMISIS
@Ross_Beef Yep, I've got the Gear app ID set properly, and the color of that avatar is different.(it's the color of my custom avatar), it's just missing the accessories.
8 REPLIES 8

Ross_Beef
Heroic Explorer
@GEMISIS  - that doesn't look like the default Avatar (which is bald). Can you verify the Avatar ID you're requesting and log what you're getting back?

GEMISIS
Adventurer
The second picture I uploaded was to show what my avatar should look like.  The Avatar ID I'm requesting is 1321646587895994.  Interestingly, if I disable the "User User Token" under platform settings the base avatar (no color change on the in game avatar) shows instead.

Only errors I am seeing in my logs are as follows:
Exception 1:
03-16 10:07:20.301  3763  3793 W System.err: android.content.pm.PackageManager$NameNotFoundException: com.oculus.shimwow
03-16 10:07:20.301 3763 3793 W System.err: at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:199)
03-16 10:07:20.301 3763 3793 W System.err: at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
03-16 10:07:20.301 3763 3793 W System.err: at com.unity3d.player.UnityPlayer.a(Unknown Source)
03-16 10:07:20.301 3763 3793 W System.err: at com.unity3d.player.UnityPlayer$b$1.handleMessage(Unknown Source)
03-16 10:07:20.301 3763 3793 W System.err: at android.os.Handler.dispatchMessage(Handler.java:98)
03-16 10:07:20.301 3763 3793 W System.err: at android.os.Looper.loop(Looper.java:158)
03-16 10:07:20.301 3763 3793 W System.err: at com.unity3d.player.UnityPlayer$b.run(Unknown Source)
Exception 2:
03-16 10:07:21.011  3763  3793 W System.err: android.content.pm.PackageManager$NameNotFoundException: com.oculus.scimitar
03-16 10:07:21.011 3763 3793 W System.err: at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:199)
03-16 10:07:21.011 3763 3793 W System.err: at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
03-16 10:07:21.011 3763 3793 W System.err: at com.unity3d.player.UnityPlayer.a(Unknown Source)
03-16 10:07:21.011 3763 3793 W System.err: at com.unity3d.player.UnityPlayer$b$1.handleMessage(Unknown Source)
03-16 10:07:21.011 3763 3793 W System.err: at android.os.Handler.dispatchMessage(Handler.java:98)
03-16 10:07:21.011 3763 3793 W System.err: at android.os.Looper.loop(Looper.java:158)
03-16 10:07:21.011 3763 3793 W System.err: at com.unity3d.player.UnityPlayer$b.run(Unknown Source)
Other than that, everything seems fine in my logs and there aren't any other exceptions.  I've attached the full logs to this post.

cerm
Protege
@GEMISIS - how are you requesting the avatar for 1321646587895994? Are you setting the "Oculus User ID" field in LocalAvatar or are you logged in as that user? I took a quick look and doesn't seem like that user has avatar metadata associated with it, have you ever customized your avatar for that user? Have you tried requesting a different user ID?

Ross_Beef
Heroic Explorer
For context, per: https://developer3.oculus.com/documentation/avatarsdk/latest/concepts/avatars-sdk-unity/

This code snippet handles loading multiple avatars into a scene, which should be a way to guarantee that you're loading the right Avatar for the right user ID (and not using your Unity UserID)
using UnityEngine;
using Oculus.Avatar;
using Oculus.Platform;
using Oculus.Platform.Models;
using System.Collections;

public class PlatformManager : MonoBehaviour {

void Awake () {
Oculus.Platform.Core.Initialize();
Oculus.Platform.Users.GetLoggedInUser().OnComplete(GetLoggedInUserCallback);
Oculus.Platform.Request.RunCallbacks(); //avoids race condition with OvrAvatar.cs Start().
}

private void GetLoggedInUserCallback(Message<User> message) {
if (!message.IsError) {
OvrAvatar[] avatars = FindObjectsOfType(typeof(OvrAvatar)) as OvrAvatar[];
foreach (OvrAvatar avatar in avatars) {
avatar.oculusUserID = message.Data.ID;
}
}
}
}

GEMISIS
Adventurer
Apologies, that avatar ID is incorrect. I just realized I used our test account which has not been setup yet, so there is no data associated with it. I'll post results from my personal account once I get home tonight. Sorry about that.

GEMISIS
Adventurer
Okay, so the actual user ID is 1369467426462049.  I've attached the logs here as well, though it looks like similar issues (A bit longer logs since this is my personal phone heads up)

cerm
Protege
For this userID you still see the right color, but missing accessories?
Can you send us a build so we can debug on our end?

GEMISIS
Adventurer
@cerm I've uploaded the latest version to the alpha channel.  Please note that there are some unfinished menus as a result of this.  Just head to the game's conference room and you should be able to see the avatars there when you look at a seat to select it.

Edit:And yes, that is correct, I see the right color but it is missing accessories.