How can I create a stereoscopic image for Google Cardboard using one camera?
Asked 5/4/2016
1 views
2 answers
0
I want to make a non-panoramic stereoscopic image that can be viewed properly in Google Cardboard, ideally using a single camera or phone rather than two cameras. What file format and layout does Cardboard expect for stereo images, and is there a practical way to do this without heavy editing? If Cardboard requires a full VR-style image, what are the limitations when starting from only a narrow field-of-view photo?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
10y ago
2 Answers
4
how would you represent an image with a 60° span without just leaving most of it black?
You can't do it without leaving most of it black. With a 60ºx60º image, you've only covered 1/18th of the 360ºx180º view, after all.
Cardboard, being first and foremost a VR viewer, requires equirectangular input to represent the entire VR environment, so whether or not you are interested in creating 360ºx180º panoramas, that's what it's expecting: either a single equirectangular for mono view, or two stacked equirectangulars (left on top of right) for stereo view. But you have to have equirectangulars because most users of Cardboard are gonna want to turn their head to see what's to the sides and behind them.
If you want to use only a single 60º-coverage image, you're going to have to fill out the rest of the "space", somehow. The simplest way would probably be to just load your image into Hugin, set your projection to be Equirectangular, and stitch/output the panorama. The steps in my 2014 OSX version of Hugin are:
Open Hugin.
Select Interface → Advanced, because the default Simple interface won't let you stitch a single image.
Click the Add Images... button, and load the left view.
Make sure the Lens Type is Rectilinear, and if the EXIF didn't pull in focal length and crop factor, guesstimate your field of view.
Click OK.
Click on the GL preview button it the toolbar.
Select the Projection tab.
Make sure the Field of View is set to 360 x 180, and that the Equirectangular projection is selected.
Close the GL preview window.
Click the Stitcher tab.
Set your output format and size, and click the Stitch! button to make your equirectangular.
Repeat all this for the right eye image.
Open both equirectangulars in the Gimp, and make a square image with the left-eye equirectangular above the right-eye equirectangular (equirectangulars are always 2x1 aspect ratio).
But you're basically going to turn this:
into this:
If you're not starting with equirectangulars.
Shooting and stitching a high-quality 360ºx180º is both equipment and labor intensive, so within your limitations of a) only using an Android phone camera and b) not wanting to spend a large amount of time post-processing, the Google apps (Cardboard Camera, Street View) that do Photospheres are probably your only way to do this, and you won't be able to achieve high resolution/quality, because you can't control the stitch, and you won't have the best optics or control for the job, not to mention a way to control rotating around the camera's no-parallax point, if you're shooting in a smaller space.
Typically, people who shoot these kinds of images do so with a fisheye lens on a dSLR, with a panorama head, and stitch with packages like PTGui or Hugin. The Gimp or Photoshop alone can't do this particular job. And this type of shooting/stitching isn't particularly easy to master. (See How are virtual tour photos taken?). And then you'd have to find some way to duplicate Cardboard Camera's computational ability to create stereo images from a single image, much as 2D-shot movies get 3D-ized.
Everybody wants high quality for free and little-to-zero effort, but it's rarely a possibility.
Originally by user27440. Source · Licensed CC BY-SA 4.0
user27440
10y ago
0
Generated from our catalog & community — verify before relying on it.
Google Cardboard is primarily a VR viewer, so it generally expects a full equirectangular scene: one equirectangular image for mono, or two stacked equirectangular images for stereo (left eye on top, right eye on bottom). If your source is only a normal narrow-angle photo, there’s no way around the fact that most of the 360×180 view would have to be empty/black. A 60°×60° image covers only a small fraction of the full sphere.
So for standard Cardboard-compatible viewing, a simple side-by-side JPEG usually isn’t enough by itself. If you only have a single limited-view stereo pair, you’d need to place it into the required equirectangular framework, with the rest unfilled.
Two practical alternatives mentioned were:
- use a camera that records MPO stereo files and view them with a Cardboard MPO viewer
- use a stereoscopic lens attachment for an SLR, such as a Loreo-style 3D lens
If your goal is easy capture with minimal editing, MPO capture plus a compatible Cardboard viewer is the most direct workflow mentioned in the answers.
Recommended products
UniqueBot
AI10y ago
Your Answer
Related Questions
How can I make stereoscopic 3D images for VR viewers from a left/right photo pair?
How can I make a standard 360° panorama work in Google Cardboard/Cardboard Camera after editing it?
Can old stereoscopic postcard images be viewed with Google Cardboard?
How can I view a stereoscopic micrograph pair without a stereoscope?
What black material works best to reduce reflections when shooting through glass?

