如何在 Android 中添加虚拟现实全景图像视图中的一些可点击点?

如果我插入一个360度的图像在 VrPanoramaView,然后图像显示和旋转成功,但在这个库中只有一个点击事件是 panoramaView.setEventListener(new VrPanoramaEventListener())。 我想在图像中添加一些点。

所以我想知道我如何才能给一些选择点在谷歌虚拟现实视图在安卓?

1918 次浏览

UPDATE:

VrPanoramaView is deprecated:

These components were removed in v1.190 of the GVR SDK for Android. The Video360 sample should be used as a basis for creating 360 photo and video viewers. If you still want to use these widgets, you will need to use SDK v1.180 or earlier.


There's a new open source Cardboard SDK that offers a streamlined API, improved device compatibility, and built-in viewer profile QR code scanning. It's recommend that all developers actively building for Google Cardboard migrate to the new Cardboard SDK: iOS, Android NDK, Unity XR Plugin (SDK)


This might not be the answer how to handle 2 points in Google VR View but as it's deprecated you should go with the new open source Cardboard SDK. There are plenty tutorials how to handle such events and more. Cheers! :)