Forum Discussion
Shavier
2 years agoProtege
Share spatial anchors example doesn't work
I'm trying to use the Share spatial anchors provided in the oculus repository:
https://github.com/oculus-samples/Unity-SharedSpatialAnchors
But when I start the app and enter the Share Spatial Anchors scene, it shows on the log window: "You are not authenticated to use this app. Shared Spatial Anchors will not work."
Reading the code it seems that the application is not getting the oculus user id correctly, but everyone is saying on forums that the project works, so I don't know if im missing something related to the user on the quest 2 or something...
I think you also need to config the Data Use Checkup in the developer manager - and at least Request access for UserID.
20 Replies
Replies have been turned off for this discussion
- TriplePeteMember
I think you have to create the application in the Meta Quest developer manager. You need to access the Platform Services to make it work.
- ShavierProtege
Yep I've been trying that, setting the app as an alpha version and giving me test user access, and download the app from the applab instead of installing it through unity, but still getting the same message.
For some reason the OculusID that the user gets is empty and the user ID is 0.
(And yes, I set the AppID on the Oculus platform settings...) So I dont know what else can I do 😞- TriplePeteMember
I think you also need to config the Data Use Checkup in the developer manager - and at least Request access for UserID.
- yarwadExplorer
I'm having difficulties too. Does anyone know if two headsets that have the same userID can use the shared spatial anchors example? Not sure if this is the problem but I have multiple headsets but only one Meta profile.
- ShavierProtege
Nope, you cant use the same meta profile. Even if you try to open the application with the same meta profile it should tell you that you cant open the application in multiple device. Here is a tutorial on the forum i posted to help people getting the share spatial anchors to work:
- MuchutsHonored Guest
Awesome, yeah I created a second account and got it to work.
Thanks on the tutorial btw, it's super helpful.
While I got you... I'm trying to disambiguate shared spatial anchors from Photon because I want to use another networking solution.
From what you see, does it seem like Photon is handling any of the core shared anchor functionality across the network. Or is it just doing room management and syncing transforms, and the Oculus Integration handling all the shared anchor stuff?
- MuchutsHonored Guest
Awesome. Thanks so much! I'll give it a shot and see what happens. Cheers!
- HuvukExplorer
I was able to get spatial anchor sharing to work for a single user. If I try to share from any other user that has been invited to the ALPHA release channel, it times out and never uploads. Occasionally other users can download the anchors that the one working user has uploaded, but none of the others can upload anchors.
I can not for the life of me figure out what is different about this one user that is actually able to share consistently. Did you run across anything like this when fixing your issue?
I have tried the "working user" on different headsets and it always works for only this user even though I have multiple other users in the organization with the same permissions as well as added to the release channel......
- ShavierProtege
Hmm no I didnt get this issue, have you try cheking the sharing anchors permissions in the oculus quest? Maybe it is turn off so the user cant share it. Also, are you using the same wifi network? (I assume you are, but just checking the posibilities). It could be a lot of things but the one problem I had one time is that 2 users had a "bug" and they couldn't get anchors shared or share it by them self (I dont know if it has to be with some troubles in the cloud anchor data or something) so I just delete those test users and create a new ones, and then it worked.
Let me know if you can make it work or if you have some more issues.
- HuvukExplorer
Yeah, I made sure all users have the point cloud sharing permissions turned on. I have also tested on various wireless networks.
It's interesting that you have had test users in a sort of corrupt state, ill have to see if that applies here. The strangest thing is that the organization owner account is one of the ones that can't upload. The only one that can is one of the dev accounts that I invited into my org to test the project.
- swang81Member
I have the same strangest thing that orgnization owner acount who cannot upload anchor but owner can see other's anchor. Here I config the application id and token in dashboard, but i didnot release the applicaiton from app lab to them. I install all application directly. I donnot know if it is right.
- yarwadExplorer
Okay thank you that's helpful info. Out of curiosity, what is the difference between what the SDK does in OnShareButtonPressed() and OnShareComplete() and what Mirror does in SendAnchorsToServer()? I guess when you share an anchor it publishes the anchor and tells the cloud which users to authorize access for that session? But then separately the server has to instruct all the clients via Mirror to actually pull down and Instantiate those anchors? Is that right?
- deimovHonored Guest
Hello Shavier... could you use the Spatial Anchors project? if you could..... could you put the anchors where you want? i mean, in my case, i open the project and i have the menu to chose Create Anchors, Select, Load .. etc...
But when i click on Create Anchors, the anchors appears on the bottom floor (0,0,0) World Location.... Shouldn't they be where i want to put them? in case you or someone knon what is my problem... o how could i use Spatial Anchors i will appreciate it very much!!!!
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
- 4 years ago
- 2 years ago
- 2 years ago