Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

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.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. 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. 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

Answers

  • @DineshPunni the SharingWithUnet project works fine from the MRTK? Is there a reason you're trying to recreate it?

    AR Developer

  • DineshPunniDineshPunni ✭✭
    edited January 2018

    @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

  • Ahhh alright, good to know.

    Will try it out. Thanks!

    CEO UniVRsitas

Sign In or Register to comment.