天道酬勤,学无止境

360-panorama

如何显示覆盖 UI 元素的股票全景活动?(How to show a stock panorama activity with UI elements overlayed?)

问题 我使用 Google Panorama API 成功显示了球形图像 我使用与大多数教程相同的代码: @Override public void onConnected(Bundle bundle){ Panorama.PanoramaApi.loadPanoramaInfo(GOOGLE_CLIENT,Uri.parse(url)).setResultCallback( new ResultCallback<PanoramaApi.PanoramaResult>(){ @Override public void onResult(PanoramaApi.PanoramaResult result){ if (result.getStatus().isSuccess()){ Intent intent = result.getViewerIntent(); if (intent != null){ startActivity(intent); } } } }); } 实际上,我不仅有一个球体,而且有 5 个左右。我希望能够在单击覆盖在图像上的菜单项的图像之间切换。 由于显示球体的实际活动不是我定义的,而是通过成功回调中收到的意图开始的,我不知道如何实现这一点,而且 API 似乎没有提供更多的可能性。 我想我什至无法在球体顶部显示对话框。 有人对我有什么想法吗? 我会很感激 注意

2021-11-22 08:57:23    分类:技术分享    android   google-play-services   panoramas   360-panorama

How to show a stock panorama activity with UI elements overlayed?

I am successfully showing a spherical image using the Google Panorama API I am using the same code as most tutorials do: @Override public void onConnected(Bundle bundle){ Panorama.PanoramaApi.loadPanoramaInfo(GOOGLE_CLIENT,Uri.parse(url)).setResultCallback( new ResultCallback<PanoramaApi.PanoramaResult>(){ @Override public void onResult(PanoramaApi.PanoramaResult result){ if (result.getStatus().isSuccess()){ Intent intent = result.getViewerIntent(); if (intent != null){ startActivity(intent); } } } }); } Actually, I do not only have one sphere but around 5. I would like to be able to switch

2021-11-12 21:34:28    分类:问答    android   google-play-services   panoramas   360-panorama

如果一个全景图上设置了多个目标,街景发布API如何判断它应该链接到哪个方向的全景图连接?(How does street view publish API judge the panorama connection that which direction should it linked to if multiple target set on one panorama?)

问题 我在谷歌街景发布 API 中的连接请求有问题。 具有单目标和多目标。 如果我从源照片创建单个目标 { "updatePhotoRequests": [ { "updateMask": "connections", " photo": { "photoId": { "id": "pano_3" }, "connections": [ { "target": { "id": "pano_4" } }, ] } } ] } 上面的 JSON 请求如何设置全景连接到目标全景的特定方向。 例如,如果我设置了从 pano_1 北位置到 pano_2 南位置的连接,则其设置不正确。 链接箭头显示向右而不是向前或向后。 下图有助于理解问题 在上图中,我打算创建连接以走得更远,但它显示的是右箭头按钮而不是前进按钮。 多张照片也有同样的问题 { "updatePhotoRequests": [ { "updateMask": "connections", "photo": { "photoId": { "id": "pano_1" }, "connections": [ { "target": { "id": "pano_2" } }, { "target": { "id": "pano_3" } } ] } } ] } 回答1 @HarishKumar,箭头的方向由链接的每组 2

2021-10-16 02:20:13    分类:技术分享    json   google-api   panoramas   360-panorama   google-streetview-publish

三.js — 适合背景图像全景(three.js — fit a background image panorama)

问题 我想把这张图片——https://hdfreefoto.files.wordpress.com/2014/09/bright-milky-way-over-the-lake-at-night.jpg——作为我的全景背景三.js 场景。 我有以下代码: var sphere = new THREE.SphereGeometry(200, 200, 32); sphere.applyMatrix(new THREE.Matrix4().makeScale(-1, 1, 1)); var sphereMaterial = new THREE.MeshBasicMaterial(); sphereMaterial.map = THREE.ImageUtils.loadTexture(<path to above image>); var sphereMesh = new THREE.Mesh(sphere, sphereMaterial); scene.add(sphereMesh); 然而 当我通过纸板查看并旋转 360 度时,我看不到背景旋转 360 度(但小于该值)。 我如何对齐? 当我在笔记本电脑上查看时,我可以旋转图像,但它似乎不适合屏幕尺寸 是否有关于如何将给定的背景图像完美匹配为 Three.js 全景图的指南? 回答1 据我所知,没有指导方针,但您可以使用three

2021-10-07 03:13:44    分类:技术分享    three.js   google-cardboard   panoramas   360-panorama   360-panorama-viewer

安卓2D全景视频播放器(Android 2D panoramic video player)

问题 我正在使用播放 2D 全景视频播放器的 iOS 和 Android 应用程序。 我们找到了一个开源的 iOS 2D 全景视频播放器应用程序 但是我们找不到任何适用于 android 的开源库。 请建议任何开源 android 2D 视频播放器来实现这一点。 回答1 由于您的问题现在已经 3 个月大了,您可能自己找到了它(或其他东西)。 然而,其他人可能仍在寻找它:gvr-android-sdk 是 Google 的用于各种 VR 用途的 SDK。 查看 SDK 中包含的simplevideowidget -sample。 还有一个iOS版本可用。

2021-09-30 16:14:34    分类:技术分享    android   video   360-panorama   360-panorama-viewer

Android 2D panoramic video player

I am working in iOS and Android app that play 2D Panoramic video player. We find an Open Source iOS 2D Panorama Video Player app But we can't find any open source library for android. Please suggest any open source android 2D video player to achive this.

2021-09-05 01:36:12    分类:问答    android   video   360-panorama   360-panorama-viewer

Tool for creating preview images from equirectangular Panoramas

I am looking for a tool or library that will allow me to generate a preview image for an equirectangular panoramic image. I am using the pannellum library [https://pannellum.org] to present panoramas, which works great. What I'd like to add, however, is a way to generate lightweight preview images to display on initial page load. I would like to have a small sized preview image that does not look warped. Does such a tool/library/script exist? Thank you! Dave

2021-08-02 12:27:19    分类:问答    panoramas   360-panorama

How does street view publish API judge the panorama connection that which direction should it linked to if multiple target set on one panorama?

I have an issue with the connection request in google street view publish API. Both with single and multiple target. If i create single target from source photo { "updatePhotoRequests": [ { "updateMask": "connections", " photo": { "photoId": { "id": "pano_3" }, "connections": [ { "target": { "id": "pano_4" } }, ] } } ] } How the above JSON request set Panorama connection to specific direction of the target panorama. For e.g if i set a connection from pano_1 north position to pano_2 south position its not set properly. the link arrow show to right direction rather than forward or backward

2021-06-29 10:09:39    分类:问答    json   google-api   panoramas   360-panorama   google-streetview-publish

three.js — fit a background image panorama

I am trying to put this image -- https://hdfreefoto.files.wordpress.com/2014/09/bright-milky-way-over-the-lake-at-night.jpg -- as a panorama background in my three.js scene. I have the following code: var sphere = new THREE.SphereGeometry(200, 200, 32); sphere.applyMatrix(new THREE.Matrix4().makeScale(-1, 1, 1)); var sphereMaterial = new THREE.MeshBasicMaterial(); sphereMaterial.map = THREE.ImageUtils.loadTexture(<path to above image>); var sphereMesh = new THREE.Mesh(sphere, sphereMaterial); scene.add(sphereMesh); However When i view through cardboard, and rotate 360 degrees, i do not see the

2021-06-29 01:02:30    分类:问答    three.js   google-cardboard   panoramas   360-panorama   360-panorama-viewer

使用 Javascript Graph API 在 Facebook 上发布 equirectangular 360° 全景图(Posting equirectangular 360° panoramas on Facebook using Javascript Graph API)

问题 我试图代表我的应用程序的用户发布 360° 照片,但我不知道如何使它工作。 我加载了 Facebook Javascript Graph API,使用“publish_actions”范围记录用户,并使用以下代码使用等距柱状投影发布图片: FB.api( "/me/photos", "POST", { "url": "MY_PUBLIC_URL", "allow_spherical_photo": true, "spherical_metadata": { "ProjectionType": "equirectangular", "CroppedAreaImageWidthPixels": 240, "CroppedAreaImageHeightPixels": 240, "FullPanoWidthPixels": 1962, "FullPanoHeightPixels": 981, "CroppedAreaLeftPixels": 981, "CroppedAreaTopPixels": 490 } }, function (response) { console.log(response); // I get "{"id":"...", post_id:"..."} so no error if (response && !response.error) { /*

2021-06-27 12:49:33    分类:技术分享    javascript   facebook   facebook-graph-api   360-panorama