3

我正在尝试将 metaio SDK 集成到我的增强现实应用程序中。

我经历了这个:http ://dev.metaio.com/sdk/tutorials/location-based-ar/ ,但我仍然无法添加自己的 POI。

任何集成了 metaio SDK 的人都可以告诉我如何添加我自己的 POI 吗?

4

1 回答 1

2

我在 loadContents() 方法中添加了 poi ..如下所示

      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);
    }

在此之后创建一个类 GeometryBundle 并创建带有参数的构造函数......

于 2014-01-06T08:45:30.740 回答