The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
Low Framerate on Unet Sharing
Hey Devs, i'm trying to build a multiplayer HoloLens game and have following problem:
I want both players to be able to see each other (having a small cube on the head which moves with the players)
Here is what i did so far:
Created a player prefab which is a small cube with a playercontroller script. The script puts the position of the cube to the main cameras position (the Hololens)
Added a NetworkIdentity and NetworkTransform to the player prefab
The player now gets spawned when i create/join the server and puts the cube on the hololens position. However the hololgrams get extremely shaky and it just feels like it's running on 1fps. (Maybe i can change some settings on the NetworkTransform)
Here my setup:
Unity2017.2.0f3
As MRTK basis i have the Holograms250 project (this seemed to be the only one which works with unet sharing)
Visual Studio 2017
I thought of putting the cube directly to the Hololens camera and adding the NetworkID and NetworkTransform but then i couldn't create/join the server since the HoloCamera only gets spawned after creating the server.
Would be super cool if someone has an idea how to get it stable.
P.S. Sorry for any mistakes/bad grammar. I'm participating on the global game jam and i'm sleep deprived
CEO UniVRsitas
Best Answer
-
dbarrett ✭✭✭
In the new Sharing with Unet project (Up to date MRTK), there is a new function that if your Client takes a long time or never anchors you can reset the anchor.
You find your anchor text, click on the debug button, and then at the top of the red text you will see some text that says "Reset Anchor", if air tap on the text it will reset the anchor and the client will reattempt to connect.
In order for this to work you need to Reset the Anchor as the Host/Server HoloLens.
AR Developer
5
Answers
@DineshPunni the SharingWithUnet project works fine from the MRTK? Is there a reason you're trying to recreate it?
AR Developer
@dbarrett
Hmm interesting. Which MRTK release and which Unity version are you using?
When i was using the most up to date MRTK with Unity2017.2.0f3 the 2nd Hololens didn't find the first one in the available sessions window (which works good on the Holograms250 project).
I was waiting up to 1min. Maybe i should've wait longer
CEO UniVRsitas
In the new Sharing with Unet project (Up to date MRTK), there is a new function that if your Client takes a long time or never anchors you can reset the anchor.
You find your anchor text, click on the debug button, and then at the top of the red text you will see some text that says "Reset Anchor", if air tap on the text it will reset the anchor and the client will reattempt to connect.
In order for this to work you need to Reset the Anchor as the Host/Server HoloLens.
AR Developer
Ahhh alright, good to know.
Will try it out. Thanks!
CEO UniVRsitas