Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

ARKit Remote workflow issues

Discussion in 'AR' started by joshpetersonhush, Nov 14, 2017.

  1. joshpetersonhush

    joshpetersonhush

    Joined:
    Nov 9, 2017
    Posts:
    12
    There are 2 issues slowing me down right now when developing:

    1. There is about a 4 second time lag on the video that hits the editor from the ARKit Remote. It looks like in the demo it's much snappier, but in the comments others are having the same lag issue as I am. Is there any way to troubleshoot this?
    2. I have to select my iphone from the connected player dropdown every single time I press play. I would love it if it remembered my choice and reconnected. Doing this 100s of times a day is going to drive me crazy.
     
  2. baleboy

    baleboy

    Joined:
    Jan 23, 2017
    Posts:
    7
    I would add that at least in my case I need to restart ARKit remote in order to be able to connect again.
     
  3. joshpetersonhush

    joshpetersonhush

    Joined:
    Nov 9, 2017
    Posts:
    12
    That's interesting. I don't have to do it every time, but I do have to restart the remote sometimes. And there seems to be some state it gets into where it has trouble initializing again, and I have to restart it a few times and/or restart, connect, and press play in the right order.

    I'm on iPhone 7+ iOS 11.1.1, Unity 2017.2.0f3
     
  4. joshpetersonhush

    joshpetersonhush

    Joined:
    Nov 9, 2017
    Posts:
    12
    Yeah there's a lot of intermittent / unpredictable behavior. I just came back from lunch, launched up the UnityARShadows scene, and the lag was down to about 1 second, which is actually quite usable. I switched back to UnityARKitScene, and the lag is still 1 second. I've noticed that when you select the connected player in the console, one of the options has now disappeared:

    Screen Shot 2017-11-09 at 7.38.13 PM.png

    Above image is what it used to be, and I would connect to "iPhonePlayer" because "iPhone 7 plus" wouldn't work sometimes. But now, there is only "iPhone 7 Plus", and it seems to be working and much faster.
     
  5. jimmya

    jimmya

    Unity Technologies

    Joined:
    Nov 15, 2016
    Posts:
    793
    One is wifi (the one with ":<port-number>" at the end, and that is slower. The other is via USB and much faster.
     
    joshpetersonhush likes this.
  6. beatdesign

    beatdesign

    Joined:
    Apr 3, 2015
    Posts:
    137
    I'm trying 2018.1 & 2018.2 and installed the latest arkit remote version from bitbucket, from https://bitbucket.org/Unity-Technologies/unity-arkit-plugin, using a MacBookPro 13inch, i7... Even with the USB conenction chosen in the Editor, I always get the warning "Autoconnected Player Can not send network message. Receiver can not keep up with the amount of data sent."
    The result feed is quite poor in terms of quality and lag time. Anyone with the same problem?
     
  7. brunzero

    brunzero

    Joined:
    Jul 10, 2015
    Posts:
    8
    do you happen to be using a device with a relatively high camera resolution? like an ipad or an iphone X? i was having an issue with this yesterday and i stumbled upon this

    https://zeroichi.hatenablog.jp/entry/2018/04/10/110715

    this asserts that compressing/decompressing the camera stream will help the network send messages through. implementing this helped me get rid of the network log warnings, but i'm still having trouble seeing the unity gameobjects on my actual ipad. hopefully this helps you.

    are you sure this is accurate? i turned off both the wifi on my laptop and the wifi on my ipad and i was still able to connect via the one with the port. does it fall back to USB if it can't connect via wifi?
     
  8. Tuitive

    Tuitive

    Joined:
    Mar 25, 2013
    Posts:
    36
    Yes, there effectively is no ARKit Remote right now because it just doesn't work anymore (it used to). I see the skewed game objects in my editor window but the video feed is frozen. (iPhone 8, iOS 12, Unity 2018.1)

    Exact issue as reported here: https://zeroichi.hatenablog.jp/entry/2018/04/10/110715


    Even if Remote was working, Unity game objects won't show up on your device. It's merely a camera that feeds into the Unity editor, so you need to be looking at your Unity Editor window, not your device.

    If you want a really great dev & Remote experience, try https://www.8thwall.com/ which is an ARKit/ARCore alternative to Unity's ARKit plugin . They nailed the Remote app. I wish Unity's ARKit Remote app was that good.
     
    ZeFirestarter, seanomlor and brunzero like this.
  9. brunzero

    brunzero

    Joined:
    Jul 10, 2015
    Posts:
    8
    this actually looks really promising given that they manage to keep up with updates to both platforms.
     
  10. FrancEon

    FrancEon

    Joined:
    Jun 25, 2018
    Posts:
    1

    Hello I tried to implement the same code to compress and decompress because I am getting the same warning: "Autoconnected Player Can not send network message. Receiver bla bla bla.." and now I got an error saying: "IOException: Corrupted data ReadInternal". I have also changed the framework to 4.x as the tutorial says but still go that error. Any idea? Thanks.
     
  11. jimmya

    jimmya

    Unity Technologies

    Joined:
    Nov 15, 2016
    Posts:
    793
    Latest ARKit plugin should have this compression technique implemented.