3

I am trying to integrate metaio SDK in my application for augmented reality.

I have gone through this: http://dev.metaio.com/sdk/tutorials/location-based-ar/, but I am still not able to add my own POI.

Could anyone who has integrated the metaio SDK give me an idea how to add my own POI?

Stéphane
  • 6,920
  • 2
  • 43
  • 53
Vamshi
  • 1,495
  • 1
  • 15
  • 31

1 Answers1

2

I have add the poi in loadContents() method..like below

      private IRadar mRadar;
private IBillboardGroup mBillBoardGroup;
private ArrayList<GeometryBundle> geometriesList;

IGeometry one = metaioSDK.createGeometryFromImage(createBillboardTexture("Test","http://www.abc.org/150.jpg","0.05 miles"), true);
one.setTranslationLLA(new LLACoordinate(24.463729,54.385650, 0, 5));        
geometriesList.add(new GeometryBundle(one, "http://www.abc.org/151.jpg"));

// create radar
    mRadar = metaioSDK.createRadar();
    mRadar.setBackgroundTexture(AssetsManager.getAssetPath("Tutorial5/Assets5/radar.png"));
    mRadar.setObjectsDefaultTexture(AssetsManager.getAssetPath("Tutorial5/Assets5/yellow.png"));
    mRadar.setRelativeToScreen(IGeometry.ANCHOR_TL);

    mBillBoardGroup = this.metaioSDK.createBillboardGroup();

    for (GeometryBundle test : geometriesList) {
        mRadar.add(test.geometry);
        mBillBoardGroup.addBillboard(test.geometry);
    }

After this create a class GeometryBundle and create constructor with parameters...

Vamshi
  • 1,495
  • 1
  • 15
  • 31