Creating a panoramic spherical view in the frame of androids

I wanted to create an application for a card android in which the user enters a spherical panoramic view of some panoramic image that I took, and that I could collect data about where the user is looking in this process. I saw the “Cardboard Demo” provided by Google, they have a “photosphere” feature in which the user can view the photos exactly the way I want, but I want to implement them differently.

Can someone give me some direction on how such a panoramic viewer with cardboard?

+6
source share
3 answers

I also tried to create the same application. You can implement the implementation of Skybox in Opengl. (Cube Display)

As you said, if you already have a panoramic image, you can match it to a sphere.

You can refer to this blog.

+1
source

I ended up using the Google Cardboard SDK for Unity.

Main idea:

  • Get unity.

https://unity3d.com/get-unity/download

  1. Get Google CardBoard

https://www.google.com/get/cardboard/get-cardboard/

  1. Download the following SDK for unity

https://github.com/googlesamples/cardboard-unity

  1. Try first getting CardBoard / DemoScene (it is in the previous link) running in your application. Use this link for guidance:

https://developers.google.com/cardboard/unity/get-started

  1. DemoScene is basically a 3D game for Google Cardboard, you can start by loading this project into a single unit and games with various elements. This is pure unity, you can use cardboard elements (they are important here and determine two offset cameras that synchronize with the phone’s movement for 3D viewing of cardboard) from the DemoScene project and create your own scenes.

  2. As a result of collecting data about where the user is looking, I extracted the corners of the cardboard camera objects by one.

Good luck

+1
source

Source: https://habr.com/ru/post/981083/


All Articles