我正在开发iPhone应用程序,需要在其中实现增强现实功能。但我不知道有任何增强现实API。
请给我任何免费/非商业增强现实API的建议。
发布于 2011-03-03 22:44:49
从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中的代码,可以查看Jonathan Saggau在iDev|360:http://www.jonathansaggau.com/blog/2010/10/iphone_ipad_devcon_sample_code.html上的演讲。
发布于 2011-03-03 22:07:31
高通有一些有趣的项目-最近甚至有一个竞赛,要求公司展示如何使用他们的产品- more on their website
发布于 2012-12-06 07:04:25
Metaio SDK兼容android和iPhone。下载是免费的,但有水印。This link还为您提供了所有教程和演示代码。希望这能有所帮助。
https://stackoverflow.com/questions/5181697
复制相似问题