Select to view content in your preferred language

Local scene visible in Unity play mode but not in Quest 2 after exported apk.

1469
8
Jump to solution
09-02-2022 01:53 AM
WH1981
by
Regular Contributor

Hello,

In Unity i created with the Map Creator a Local Scene. With a BaseMap and a slpk layer. When i run the Play mode in Unity then i see the BaseMap and the slpk layer. But when i build a apk and place that on the Quest 2 with SideQuest and open the app then i only see the horizon and sky without the layers.

Or does this only work with the Oculus Link cable from Unity?

Can someone help me?

 

 

0 Kudos
1 Solution

Accepted Solutions
coryeicher
Frequent Contributor

Is the BaseMap an https service or local to the device?

If https service, check out this post for solution. This applies to Android apps (e.g. apps running on a Quest 2 device)

https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/enabling-arcgis-service-calls-from...

 

CORY EICHER
www.eichcorp.com
cory@eichcorp.com

View solution in original post

0 Kudos
8 Replies
coryeicher
Frequent Contributor

Is the BaseMap an https service or local to the device?

If https service, check out this post for solution. This applies to Android apps (e.g. apps running on a Quest 2 device)

https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/enabling-arcgis-service-calls-from...

 

CORY EICHER
www.eichcorp.com
cory@eichcorp.com
0 Kudos
WH1981
by
Regular Contributor

Thanks for your message. The Default BaseMap uses https.

I find the steps, but i find it little bit dangerous. Do you maybe have the libraries for me?

Then i can paste it in the assets folder. Should that work?

 

Best regards

0 Kudos
WH1981
by
Regular Contributor

I already find the binaries and now i see the BaseMap on the Quest. That works. I also can walk over the BaseMap. But how setting the BaseMap as Teleport Area? So that i can jump to areas. I seems that the tiles of the basemap changed everytime and loses his teleport area component.

I also doesn't see a slpk package that i loaded from local drive (maybe that's the problem). And i also doesn't see this link: https://services.arcgisonline.nl/arcgis/rest/services/Luchtfoto/Luchtfoto/MapServer/0 when i set this one as basemap or imagelayer.

0 Kudos
WH1981
by
Regular Contributor

WH1981_0-1662448555191.png

 

I find it. Only Image Layers with this icon will work.

0 Kudos
Jade
by Esri Contributor
Esri Contributor

yes, we're aware that it's a bit hard to find data at the moment and are working on making the process easier. Other than the icon you mentioned, we also support the other two layer data types (which you can find on our doc https://developers.arcgis.com/unity/layers/).

Jade_3-1662674656815.png

 

 

0 Kudos
Matt_Nelson
Esri Alum

We are dynamically loading content so that you can't use the basemap as a teleport area. You can create other GO's with a location component at points you would want to teleport to.

If you are loading the apk onto a device you will need to sideload the slpk onto your android device. This will also require you to update the filepath

0 Kudos
WH1981
by
Regular Contributor

Thanks for your answer.

When i use dynamically loading with this layer:

https://tiles.arcgis.com/tiles/nSZVuSZjHpEZZbRo/arcgis/rest/services/Rotterdam_3D_getextureerd/Scene...

and turn my head in VR on the Oculus Quest the layer is loading and build the buildings. But is there a possiblity to hold/cache the layer so that it doesn't get rebuilt all the time when i turn my head?

Or is this layer to heavy for a sideloaded apk?

 

0 Kudos
Matt_Nelson
Esri Alum

That is not currently something we support. At the moment we just load data based off where the camera is looking. In a future release we will add the ability to load data in different patterns that are better suited for VR.

If you want to try your own approach all you need to know is that the ArcGISCameraComponent controlls what is loaded. So if you attach it to an object other than the camera it will load from that POV. So you could for example, make another GO that is behind where the camera is to expand the content that you would see. The drawback to this is that if you move it to far away the level of detail will degrade.

0 Kudos