Oct 18, 2016
Equirectangular and cube face projections are commonly used in 360 photo / VR panorama processing. Here’s how to convert from one to the other.
You’ll need Panotools and Hugin to perform the photo transformation. Follow
this guide to get them installed and setup. Step 2. Generate parameters
Open a command line and invoke the following:
=<equirectangular_image_to_convert> --ptofile =<output_parameters_file> --face =<desired_face_size>
This will generate a .pto file, containing all the parameters needed for the transformation from equirectangular to cube faces.
A real world example:
=equirectangular-pano.png --ptofile =convert_to_cubefaces.pto --face =1024
Step 3. Execute convert
Still in the command line, invoke the following:
nona -o convert <parameters_file_generated_in_previous_step>
Or, continuing my example:
nona -o convert convert_to_cubefaces.pto
This will produce 6 images, one for each cube face:
Oct 17, 2016
Hugin and Panotools are two hugely useful tools for image stitching and panorama processing in general.
Unfortunately getting them installed and configured on Windows is a bit fiddly. Here’s how.
Step 1. Install ActiveState Perl
Available either as .exe (guided install) or zipfile, you can always find the latest version of ActiveState Perl
Whichever format you choose, ensure both the
perl\site\bin directories are in your
Step 2. Test Perl is installed correctly
Open a command prompt type
perl -v. You should see something similar to the following:
Back in the command prompt, type
ppm install Panotools::Script.
Perl Package Manager should download and Install Panotools Script:
Still in the command prompt, type
panostart. The following help text should be displayed:
Step 5. Install and configure Hugin
Hugin is available as an .msi. You can download the latest version
here. Download the version appropriate for your platform and double-click to install.
Once installation completes, add the Hugin bin directory to your PATH:
Step 6. Test Hugin command line is working correctly
Open a command prompt and type
nona. You should see the following help text:
Oct 12, 2016
A little-known but extremely cool feature: Facebook has built-in support for
VR panoramas (or, in their own terms, “360° photos”). These interactive images allow you to tilt and pan around a scene, creating the fully immersive experience of “really being there”.
To import them:
1. Source or shoot your own VR panorama
head to Google or shoot your own VR panorama. The stipulations are: 2. Upload to Facebook as a single photo
This works from both desktop browsers and Facebook mobile apps.
Upload your single VR panorama to Facebook (this won’t work as part of an image batch). Facebook will quickly recognise it as a “360 photo” and prompt you to select a starting view:
Pan around until you find the sweet spot and then hit “Post”.
That’s it! Your 360 photo is published for all your friends to see.