开发者

360° panorama libraries for ios [closed]

开发者 https://www.devze.com 2023-01-17 05:18 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so 开发者_运维技巧far to solve it.

Closed 9 years ago.

Improve this question

Are there any libraries or classes out there to show a 360 degree panorama on the iPhone?

I found this here: http://code.google.com/p/panoramagl/ but it's not up to date and only for old versions of ios.

I'm thankfull for any link that helps me to create a 360 degree panorama view on ios.


Check this open source UIView subclass to make awesome interactive 360-180 degrees panorama from 6 images, one for each face of a cube.In the link you can check the example

PanoramaViewer


I've recently found KRPano and since it's not listed here..


The VR5 pano viewer at http://www.vrhabitat.com/#vr5 should do what you need.

When you download it, you can test it out by importing the vr5_script folder into your Xcode project, making sure to check the "Create folder references for any added folders" option, then load it into the webview:

[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[
     [NSBundle mainBundle] pathForResource:@"index" ofType:@"html"
     inDirectory:@"vr5_script"]isDirectory:NO]]];

I just gave it a try and it seems to work quite well. Please consider donating to the author if you use it for commercial use (I am not affiliated with the author).


Apple's "HTML5" gallery includes 360° panorama implemented using proprietary CSS and JS extensions:

http://www.apple.com/html5/showcase/vr/

Works very well in all Apple browsers, including Mobile Safari, but it's designed not to work in other browsers.


The one found here: http://code.google.com/p/panoramagl/ is already updated for iOS 5.1. You can download the example and use the library offline and online.


I am currently building a similar system, and had as much luck as you did with this. Ended up using UIScrollView to provide a panorama-like effect, even though I was not able to wrap it around entirely successfully. I used the WWDC video from session 104 (2010) to help me optimize large image loading.

OpenGL ES may be a more elegant solution if you have the time/skill (I've only dabbled in OpenGL), but I certainly had no luck finding a panorama library anywhere (except for the deprecated panoramagl). It's certainly a doozy.


Check out the correct answer here. I used this code and works like a charm for me. Hope will help for you as well. Here

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号