首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在iphone中有没有好的增强现实API

在iphone中有没有好的增强现实API
EN

Stack Overflow用户
提问于 2011-03-03 22:02:03
回答 4查看 1.7K关注 0票数 0

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

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

EN

回答 4

Stack Overflow用户

发布于 2011-03-03 22:44:49

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

代码语言:javascript
复制
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中的代码,可以查看Jonathan Saggau在iDev|360:http://www.jonathansaggau.com/blog/2010/10/iphone_ipad_devcon_sample_code.html上的演讲。

票数 1
EN

Stack Overflow用户

发布于 2011-03-03 22:07:31

高通有一些有趣的项目-最近甚至有一个竞赛,要求公司展示如何使用他们的产品- more on their website

票数 0
EN

Stack Overflow用户

发布于 2012-12-06 07:04:25

Metaio SDK兼容android和iPhone。下载是免费的,但有水印。This link还为您提供了所有教程和演示代码。希望这能有所帮助。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5181697

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档