【问题标题】:Any good API for Augmented Reality in iphone [closed]iphone中用于增强现实的任何好的API [关闭]
【发布时间】:2019-06-18 22:07:26
【问题描述】:

我正在开发需要在其中实现增强现实功能的 iPhone 应用程序。但我不知道有任何增强现实 API。

请给我任何免费/非商业增强现实 API 的建议。

【问题讨论】:

标签: iphone augmented-reality


【解决方案1】:

从 github 获取 http://www.iphonear.org/ 并从您的 UIViewController 执行类似的操作:

ARGeoViewController *arController = [[ARGeoViewController alloc] init];
arController.debugMode = YES;
arController.delegate = self;
arController.scaleViewsBasedOnDistance = YES;
arController.minimumScaleFactor = .5;
arController.rotateViewsBasedOnPerspective = YES;

NSMutableArray *locations = [[NSMutableArray alloc] init];
CLLocation *tempLocation;
ARGeoCoordinate *tempCoordinate;
tempLocation = [[CLLocation alloc] initWithLatitude:40.756054 longitude:-73.986951];
tempCoordinate = [ARGeoCoordinate coordinateWithLocation:tempLocation];
tempCoordinate.title = @"New York City";
[locations addObject:tempCoordinate];
[tempLocation release];
[arController addCoordinates:locations];
[locations release];

[arController startListening];
[self presentModalViewController:arController animated:YES];

如果您想了解 arkit 的代码,请查看来自 iDev|360 的 Jonathan Saggau 的演讲:http://www.jonathansaggau.com/blog/2010/10/iphone_ipad_devcon_sample_code.html

【讨论】:

    【解决方案2】:

    Qualcomm 有一些有趣的项目 - 最近甚至有公司竞争来展示如何使用他们的产品 - more on their website

    【讨论】:

    • 该 SDK 似乎适用于 Android,而不是 iPhone。
    • 你是对的——我的错。如果有人对此感兴趣,我会保留此回复。
    【解决方案3】:

    Metaio SDK 兼容安卓和 iPhone。下载是免费的,但带有水印。 This link 还为您带来所有教程和演示代码。希望这会有所帮助。

    【讨论】:

      【解决方案4】:

      2016 年,Apple 发布了一个名为 ARKit 的框架,可用于 AR 应用程序开发。 ARKit 是随 iOS 11 一起引入的。有关 ARKIT 的更多详细信息和 API 的使用可以从以下链接获得。 https://developer.apple.com/augmented-reality/arkit/

      【讨论】:

        猜你喜欢
        • 2013-12-21
        • 2011-01-06
        • 1970-01-01
        • 2014-06-05
        • 2011-06-15
        • 1970-01-01
        • 2011-10-19
        • 2013-02-27
        • 1970-01-01
        相关资源
        最近更新 更多