Fail to display a web scene in world-scale AR.

434
0
12-11-2020 08:09 AM
by Anonymous User
Not applicable

I am currently trying to display a web scene in World-Scale Augmented Reality with no result. I have followed the tutorial "Display a Web Scene" (https://developers.arcgis.com/labs/android/display-a-web-scene/) and adjusted it to display content in AR View. I want to be able to add and display a web scene with multiple layers in an AR View. I am developing an app natively for Android (Java). 

I have been able to display 2D single geometry web maps using this method but trying to display a 3D scene is not producing anything (just a white elevation basemap or a white grid overlaying the ground if I saved the web map without a basemap). None of the features show is they belong to multiple geometries or are 3D.

if (mArView != null) {
String itemID = "67f809f5941a437babb1827df351a5e5";
Portal portal = new Portal("https://www.arcgis.com");
PortalItem portalItem = new PortalItem(portal, itemID);
ArcGISScene scene = new ArcGISScene(portalItem);
mArView.getSceneView().setScene(scene);
}

My understanding is that ARView inherits methods from SceneView but I have been unable to find any documentation on how to display web scenes in AR... So I am not sure if it's incapable to do so, if I am trying to display this in the wrong way or if there is something wrong with my web scene. Help! Thanks in advance! 

0 Kudos
0 Replies