Can I embed Google Street View into AFrame?

心不动则不痛 提交于 2020-01-04 05:43:20

问题


I'd like to recreate the Geoguesser street view game in VR. Although I understand the game is more complex than simply viewing Google Street View, I want to understand whether any work on the matter exists now. Even simply embedding Google Street View in VR would be helpful, even if it's not a solution in AFrame.

Has anyone tried this before? Or can anyone speak to embedding Google Street View in VR?


回答1:


It looks like you need to get the Street View panorama image in its full equirectangular glory so that you could then render it in A-Frame or your WebVR framework of choice.

There are a few methods to extract Street View panoramas in this answer: How to get the original panorama image by panoid in google street view?

This seemed to be the best option based on an A-Frame Slack chat: https://github.com/mattdesl/google-panorama-equirectangular

Here's a recent WebVR project that, while not exactly the same, appears to make use of some of the same tech: https://speaktogo.withgoogle.com/#



来源:https://stackoverflow.com/questions/39919377/can-i-embed-google-street-view-into-aframe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!