Search code examples
androidgoogle-cardboardvirtual-reality

Android VR View: Converting mono 360 photo


I have a Mono 360 photo which uses a single pano and I need a Stereo 360 photo which uses two stacked panos.

My question:

Is there any way to convert it in my app with a few lines of Code?

Here is a usefull link which describes the Problem: https://developers.google.com/vr/concepts/vrview

For example:

This is what I have: enter image description here

This is what I want: enter image description here


Solution

  • You only have to do this in the ImageLoaderTask Class to use 2:1 images:

     panoOptions = new Options();
     panoOptions.inputType = Options.TYPE_MONO;
    

    instead of :

    panoOptions = new Options();
    panoOptions.inputType = Options.TYPE_STEREO_OVER_UNDER;