Forum Discussion
BlackOut977
3 years agoExplorer
Shared Spatial Anchors appearing, but player not syncing
We're trying to build an experience with Shared Spatial anchors, and it seems like we've followed the example scene well. We're able to create an anchor, save it to the cloud, share it to another pla...
- 3 years ago
Hey! Yes. It looks like we were trying to align the player to the anchor in the same frame it was instantiated and InitializeFromExisting() was called. Apparently the transform data isn't properly loaded in yet. So we just Invoked() our AlignPlayer() function after 2 seconds to give the Anchors local transform data a chance to properly setup.
After that, it should just be a case of playing with your alignment function to make sure it's logic is fine. If you're always getting rotated 180* in the wrong direction but your anchors right, I would assume that should be pretty easy to fix.
Feel free to post your code if you need!
Atrujanox
3 years agoExplorer
Hmm that's way too far from the object, are you experimenting an alignment for the client after joining the room? else maybe the alignment is not being done. Can you provide your logs for the anchor sharing? I had that same issue and the problem was that the anchors were not being received so the alignment was not made, but as the headsets were in the same room they "looked" like they were aligned cause I started using them in the same chair.
set alignment close to the root is close to the 0,0,0, if you placed it at zero point then is alright. maybe the issue is what I mentioned here.
- ddhvr3 years agoHonored Guest
Hi Atrujanox,
Yes, I just want to do automatic colocation for the new coming clients. I was pretty sure the second headset received the anchor and did the alignment successfully. I could clearly see the anchor showing up in the second headset after a few seconds it entered the game. And just like you mentioned, I think both headsets staying closer indeed helps the alignment but it still has noticeable differences. So that's why I'd like to know if there's something I can do to improve this.
The first screenshot is the first headset's log, it placed the anchor and aligned the player just like the sample did. The second one is the second headset's log, this received the RPC check and hence loaded the anchor and aligned the second player.
Hope the logs help.
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
- 2 years ago
- 2 years ago
- 4 years ago