Ship depth model in build

  • Issue category: Real-time Mapping-Depth
  • Device type & OS version: Android & iOS
  • Issue Environment : On Device
  • Xcode version: 15.0
  • ARDK version: 3.13.0
  • Unity version: 2022.3.53

Description of the issue:

Hey,

Let me first describe what I use Niantic Lightship for in my application: Generally my goal is, to mesh the room I’m in. For that I have the meshing and occlusion components set up exactly as they are in the documentation. Now when starting the AR app for the first time, depending on the speed of the current internet connection, the users end up waiting a noticeable amount of time for meshing to start, because the depth model we are using has to get downloaded first. I worked around this by manually downloading the depth model I’m planning to use and giving the players are loading bar in the meantime.

Though I am wondering: Is it possible to ship the depth models with the app, instead of having users download it at app start? I am not sure that I can guarantee users to have a stable enough internet connection when using the app, so I would prefer to not have them download the depth models. I also ran into a problem when testing with a worse internet connection: iOS devices in particular throw a “Http curl request error code 28 and response code 200” (a timeout error), so they would timeout even though android devices being tested at the very same time did successfully download the depth models.

Any further information to any of these two problems would be appreciated.
Julian

Hi Julian,

I’m sorry for the delay in replying back to you. We’ve recently noticed there was an issue with how support requests were syncing with our system on our backend and it caused some support requests to fly under the radar.

At this point in time we have released NSDK 4.0 and I would highly encourage you upgrade to it if you haven’t done so yet. The only version of NSDK 3 that will be supported is 3.17, but only for an additional year with support ending in February 2027.

If you need to stay on NSDK 3 a bit longer to prepare migrating to 4.0, please upgrade to 3.17 so we can continue providing support.

At the moment the only method of model preloading is described here: How to Use Neural Network Model Preloading | Niantic Spatial Platform