45

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.

mram888
  • 4,899
  • 5
  • 33
  • 59
choise
  • 24,636
  • 19
  • 75
  • 131
  • It's not only for old versions of ios. It's easy to launch it under ios 4. what are the problems concerning ios 4 capability do you have? – knuku Oct 05 '10 at 06:10
  • Looks like they have added support for iOS 5 (at least they have tested in it) – Anthony Main Mar 13 '12 at 09:00
  • @choise: Hi! what library(360 degree Panaroma) have you used in Xcode iOS development. Or you did webApp for safari. Can you share your experience with me? Thanks in advance. – Navnath Memane Feb 06 '13 at 14:36
  • @NavnathMemane i used KRPano inside a ios application using a uiwebview. worked fine – choise Feb 06 '13 at 19:58
  • how to replace the image in the queues? eg, change area image in the image, for example, replace new color in a car within the 360 view – iXcoder May 20 '14 at 05:04
  • 1
    I couldn't find something that fits my needs and ended up developing one myself. It can be found [here](https://github.com/scihant/CTPanoramaView). – Cihan Tek Feb 21 '17 at 17:13
  • you should add this as an answer @CihanTek. This looks great – choise Feb 22 '17 at 09:51
  • @choise I couldn't because it's a closed topic :) – Cihan Tek Feb 22 '17 at 10:35

7 Answers7

17

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

Aitul
  • 2,982
  • 2
  • 24
  • 52
13

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

microspino
  • 7,693
  • 3
  • 48
  • 49
5

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).

  • yeah i tryed that, but its not very smooth, without smooth scrolling and all of that. also it does work in mobile safari, but in a uiwebview there are some problems with multitouch actions – choise Oct 01 '10 at 17:45
4

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.

Emil
  • 7,220
  • 17
  • 76
  • 135
Ahmed El-Bermawy
  • 2,173
  • 1
  • 14
  • 16
4

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.

Kornel
  • 97,764
  • 37
  • 219
  • 309
  • 1
    Are you sure you mean "designed not to" which implies they put effort into breaking it in Firefox, or "not designed to" which implies they just didn't bother making it work? – Tom H Oct 07 '10 at 16:40
  • Thanks, I've just looking at this for Mobile Safari. – Leandro Ardissone Nov 09 '10 at 17:56
2

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.

diatrevolo
  • 2,782
  • 26
  • 45
1

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

Deepak Khiwani
  • 734
  • 1
  • 8
  • 33