【发布时间】:2019-06-18 22:07:26
【问题描述】:
我正在开发需要在其中实现增强现实功能的 iPhone 应用程序。但我不知道有任何增强现实 API。
请给我任何免费/非商业增强现实 API 的建议。
【问题讨论】:
-
Augmented Reality的可能重复
我正在开发需要在其中实现增强现实功能的 iPhone 应用程序。但我不知道有任何增强现实 API。
请给我任何免费/非商业增强现实 API 的建议。
【问题讨论】:
从 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
【讨论】:
Qualcomm 有一些有趣的项目 - 最近甚至有公司竞争来展示如何使用他们的产品 - more on their website
【讨论】:
Metaio SDK 兼容安卓和 iPhone。下载是免费的,但带有水印。 This link 还为您带来所有教程和演示代码。希望这会有所帮助。
【讨论】:
2016 年,Apple 发布了一个名为 ARKit 的框架,可用于 AR 应用程序开发。 ARKit 是随 iOS 11 一起引入的。有关 ARKIT 的更多详细信息和 API 的使用可以从以下链接获得。 https://developer.apple.com/augmented-reality/arkit/
【讨论】: