360° iOS 全景库

发布于 2024-09-24 01:51:31 字数 1536 浏览 5 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

颜漓半夏 2024-10-01 01:51:31

检查这个开源 UIView 子类,用 6 个图像制作令人惊叹的交互式 360-180 度全景图,每个图像对应一个立方体的每个面。在链接中,您可以检查示例

PanoramaViewer

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

寂寞清仓 2024-10-01 01:51:31

我最近发现了KRPano,因为它没有在这里列出..

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

夜司空 2024-10-01 01:51:31

http://www.vrhabitat.com/#vr5 上的 VR5 全景查看器应该可以满足您的需求。

当你下载它时,你可以通过将 vr5_script 文件夹导入到 Xcode 项目中来测试它,确保选中“为任何添加的文件夹创建文件夹引用”选项,然后将其加载到 webview 中:

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

我刚刚尝试了一下,看起来效果很好。如果您将其用于商业用途,请考虑捐赠给作者(我与作者没有隶属关系)。

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

最近可好 2024-10-01 01:51:31

Apple 的“HTML5”图库包括使用专有 CSS 和 JS 扩展实现的 360° 全景:

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

在所有 Apple 浏览器(包括 Mobile Safari)中运行良好,但它设计在其他浏览器中运行。

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.

森林散布 2024-10-01 01:51:31

此处找到的:http://code.google.com/p/panoramagl/ 是已经更新为 iOS 5.1。您可以下载示例并离线和在线使用该库。

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.

深爱不及久伴 2024-10-01 01:51:31

我目前正在构建一个类似的系统,并且和您一样幸运。最终使用 UIScrollView 提供类似全景的效果,尽管我无法完全成功地包裹它。我使用 WWDC 第 104 场会议 (2010) 的视频来帮助我优化大图像加载。

如果您有时间/技能(我只涉足过 OpenGL),OpenGL ES 可能是一个更优雅的解决方案,但我当然没有运气在任何地方找到全景库(除了已弃用的 panoramagl )。这当然是一个愚蠢的事情。

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.

<逆流佳人身旁 2024-10-01 01:51:31

在这里查看正确答案。我使用了这段代码,它对我来说就像一个魅力。希望对您也有帮助。
此处

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文