7
\$\begingroup\$

For a school assignment (innovative project) I want to create a sort-of infographic, but then in Google Cardboard.
I've got a bunch of panoramic images (not created in Cardboard camera) but it doesn't recognize them in cardboard and I can't convert them with the link mentioned here: https://developers.google.com/vr/concepts/vrview

It doesn't have to be 3D (since the images are not 3d as well), and no audio/video is needed. I simply need to put text on a panoramic image and let it be shown in the cardboard app, so a person can 'look around' in the infographic. If need be, I can make a image with google cardboard, but I still have to place text and/or icons/images on it. That's the main issue I have.

When opening a cardboard photo in photoshop, adding text and saving it, it doesn't recognize the photo as a cardboard photo anymore. I suspect it has to do something with the EXIF data, or that photoshop saved it as a non-mpo jpg file.

Is this in any way possible? Thanks in advance.

edit: OK, I've come as far as creating a 360 photo that displays correctly in facebook. When trying to convert the image, it says 'no valid right eye image found in XMP metadata'. How do I fix this?

\$\endgroup\$

2 Answers 2

5
\$\begingroup\$

OK, after a LOT of googling I finally have an answer:

First of all, I downloaded the facebook template for 360 degree photos, and added the (equirectangular!) spherical photo onto it, and 'saved as' jpg. Here's the Facebook template (edit: new link to template 6000x3000, link to folder). Don't know if it's actually needed, but then you at least have the right metadata, I imagine. Could be wrong though. If you want to post your 360 photo on facebook, you can go right ahead and use this jpg without following additional steps.

NOTE: I had to mirror the image vertically to use it in Google Cardboard. If you don't do this, it will look good on your computer/phone, but when opened in Cardboard Camera, it's mirrored vertically. Don't know if everyone has this, but if you've got the same issue, this is the 'fix' I used. If you only plan to use the photo on facebook, then the mirroring isn't needed.

After saving it, I made a copy of the original, and added "_left" to the original file name and "_right" to the copy file name. The image itself is the same.

Then, I used this web-based application to join the two files. All credits go to Zombieist for this amazing web app.

Save the file generated by Zombieist web app to your phone, and open it in the Cardboard Camera app. Voila, your 360 photo is now shown when using the Google Cardboard!

If anyone has tips/tricks that'll improve this answer, be my guest :D.

NOTE: I have an iPhone, and in the iPhone app you can import vr-images from dropbox and such. Apparently, in the android version (at least on the One+ one) this isn't possible and I haven't found a way to display it in the Android version Cardboard Camera, since it doesn't seem possible to import it. When sharing the link generated by the iPhone Cardboard Camera app, it simply says that it's not a valid VR-format in the android app.

\$\endgroup\$
4
1
\$\begingroup\$

To add the right eye image, you shall add an additional Exif/XMP tag containing it.

Using exiftool, this should be the needed commandline (not tested) for Windows Shell:

exiftool -XMP-GPano:all^
 -XMP-GPano:UsePanoramaViewer="True"^
 -XMP-GPano:CroppedAreaLeftPixels="%CroppedAreaLeftPixels%"^
 -XMP-GPano:CroppedAreaTopPixels="%CroppedAreaTopPixels%"^
 -XMP-GPano:CroppedAreaImageWidthPixels="%CroppedAreaImageWidthPixels%"^
 -XMP-GPano:CroppedAreaImageHeightPixels="%CroppedAreaImageHeightPixels%"^
 -XMP-GPano:FullPanoWidthPixels="%FullPanoWidthPixels%"^
 -XMP-GPano:FullPanoHeightPixels="%FullPanoHeightPixels%"^
 -XMP-GPano:ProjectionType="equirectangular"^
 -XMP-GPano:LargestValidInteriorRectLeft="0"^
 -XMP-GPano:LargestValidInteriorRectTop="0"^
 -XMP-GPano:LargestValidInteriorRectWidth="%FullPanoWidthPixels%"^
 -XMP-GPano:LargestValidInteriorRectHeight="%FullPanoHeightPixels%"^
 -XMP-GPano:InitialHorizontalFOVDegrees="50"^
 -XMP-GImage:"ImageMimeType=image/jpeg"^
 -XMP-GImage:"ImageData<=righteye.jpg" ^
 cardboard.vr.jpg

But I think there is an error in Google documentation when they say that only equirectangular format is supported: I think tag "GPano:ProjectionType" should be set to "equirectangular" for full sphere (StreetView) and to "cylindrical" for Cardboard.

This online cardboard viewer could help in debugging: https://vr.caffeinum.com/create.html

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.