Making VR Panoramas
 
Support Ukraine

Making VR Panoramas

Having made a couple of VR panoramas I thought I'd jot down some lessons learned in the hope that it will make it easier for someone else to get to where I am.

1. Introduction

So you want to make a VR panorama? I did. It was both easier and harder than I first thought. Easier, because I realized that I could get away with much more than I thought possible before it was noticeable, and the software I used worked without a glitch. Harder, because it required me to change the way I chose subjects and then to go quickly through a very long list of things when doing the capture. It also meant spending a lot longer post-processing the images. Right now I'm at about two-three hours for each panorama; compare that with two-three minutes of editing a normal photo.

All example images here were taken from my hike to the burnt area in Tyresta National Park. There is additional comment on each image there, as well as the finished panoramas.

1.1. The Hardest Part

Let's start with the basic problem with VR panoramas: It is very difficult to find a spot where all 360 degrees are worth photographing. As any photographer knows, proper framing is difficult. Your photo should ideally be the subject and nothing but the subject. This is what makes wide-angle photography difficult. A wide-angle lens tends to pull in lots of junk from the sides of the frame, leaving the interesting stuff compressed into a narrow spot in the center. VR panoramas are worse. A lot worse. Suddenly, not only do you have to find something interesting to photograph - you have to find a spot where there isn't anything uninteresting.

Having solved that problem, though, let's talk about how to get from standing there to a panorama in the least amount of pain.

1.2. Equipment

I use the following setup:

I'm sure it is possible to get just as good panoramas with other cameras and lenses. The list here is not intended to be authoritative, but merely an indication of what tools I have at my disposal.

2. The Equator

The VRwave Panoramic Photography Lens Database[h] lists camera lenses and suggested angular spacing for them. I would, however, add the observation that it is sometimes very difficult to get a good panorama using those settings.

The most interesting stuff is along the equator of the panorama. When you stand somewhere, most of the nice stuff is clustered along the horizon. If you're in a cathedral you may have some beautiful stuff above you, but otherwise you have a featureless ceiling or empty sky. Below you isn't much better. Even the most resplendent cathedral usually has a drab floor. The consequences of this are twofold: One, we should pay special attention to the band of photos at zero degrees pitch. Two, aligning images that don't include anything of the equator is difficult as they very often contain little but empty sky.

The settings listed on the VRwave website ignores this and assumes that you will use the same lens for the equator as you would for the top and bottom poles. This results in two problems: You end up with a lot of pixels being wasted on empty blue sky if you're outdoors, and you often end up with photos that are very difficult to align. Also, more photos take more time to shoot. Given that you have to finish shooting the full panorama before the conditions change too much, this is not to be ignored.

My recommendation is to use an 18mm lens for the equator and a 10mm lens for the top and bottom of the panorama. This gives you higher resolution along the equator, where the interesting stuff is. These photos cover everything from -33.5 degrees to 33.5 degrees, which is is a few degrees more than the range of full-color vision in humans[i] (see section 17-12, figure b). Thanks to the 100 degree field of view of the 10mm lens, you can pitch the camera up or down 45 degrees and get the zenith/nadir and the horizon in a single photo.

When I shoot panoramas I do the following: 12 shots (30 degrees between shots) with the 18-55mm set to 18mm along 0 degrees pitch. Then 6 shots (60 degrees between) with the 10-20mm set to 10mm at 45 degrees pitch, followed by 6 more shots at -45 degrees for a total of 24 photos.

This gives me a high-resolution band along the equator, complete coverage of the zenith point, and photos that are easy to align. Also, thanks to luck, the Nikon 18-55mm at 18mm and Sigma 10-20mm at 10mm have the exact same Nodal Ninja settings[j], so I never have to change them while shooting.

I crop away the bottom third of the "up" photos, and the top third of the "down" photos when assembling the images in Hugin. That way I keep Enblend from overwriting my high-resolution horizon with lower-resolution pixels from the up and down shots, while still being able to use those areas for alignment.

Equirectangular map with resolution bands
Equirectangular map with resolution bands

The different resolution bands have been marked with black lines. The central band is the area where only the high-resolution shots (those shot with 18mm lens) are used. It extends to approximately 24 degrees on either side of the equator, and as we can see is the area where the most image detail is to be found. It is also very close to the vertical field of view for full-color vision in humans. The two thin bands on either side extend from 24 degrees to 33.5 degrees and are the areas where the high-resolution images are gradually blended into the low-resolution "up" and "down" images. The two big bands top and bottom are the two low-resolution bands, extending from 33.5 degrees to 90 degrees. As can be seen, there is little image detail to capture here.

100% crop from the equator, in the middle of the high-resolution band.
100% crop from the equator, in the middle of the high-resolution band.

100% crop from the middle of the upper transition band.
100% crop from the middle of the upper transition band.

Note the difference in resolution of the trunk as we go up.

100% crop from just outside the upper transition band.
100% crop from just outside the upper transition band.

3. Speed

Speed is of the essence when shooting a panorama in changing conditions. As Ken Rockwell[k] says, the downside of all this post-processing, stitching, stacking etc. is that nature doesn't wait for you to get all your shots done.

Still photographs need dynamic elements to be successful. Moving and living subjects have to be caught at the peak of the action, the decisive instant that says it all. Landscapes, nature and architecture needs to be caught in the right light. The right light isn't in the middle of the day: the right light is very short-lived at the ends of the day. Clouds come and go, and the best syrupy golden light of dawn often only lasts for seconds. The strongest photos are those that capture something in transition.

...

If you take more than a half-second to fire all the shots you need to stitch and stack, you cannot possibly create a photograph as powerful as can be captured in one snap of my Powershot.

Ken Rockwell, "Don't Worry: Just Shoot"[l]

The first time I shot a panorama it took me over ten minutes to get everything right. I bumped the tripod, I got the focus wrong, I got the shutter and aperture values wrong, the white balance was off, I forgot to level the tripod and suddenly couldn't find the lens release button on the camera. It was enough to make me doubt my mental health.

Practice makes perfect, though. My routine for panoramas now is:

  1. Set up tripod.

  2. Attach camera to Nodal Ninja plate.

  3. Attach Nodal Ninja to tripod.

  4. Level tripod.

  5. Mount 18-55mm lens.

  6. Turn off VR.

  7. Set lens to 18mm.

  8. Switch to Manual exposure.

  9. Sampling the surroundings, decide on shutter speed, aperture, ISO and white balance.

  10. Mount the camera to the Nodal Ninja.

  11. Rotate the camera to 0 degrees yaw, 0 degrees pitch.

  12. Use autofocus to set focus at distant object on horizon.

  13. Switch to manual focus on the camera.

  14. Take a sample shot, inspect exposure and focus. If good, get ready to work fast.

  15. Switch to remote release. Remote timer release if shutter speed requires it.

  16. Shoot 12 photos at 30 degree intervals.

  17. Switch to 10-20mm lens.

  18. Set lens to 10mm.

  19. Switch to continuous release.

  20. Switch to autofocus. Focus the lens at the same distant object used for the 18-55mm lens. Since you're at the same yaw and pitch as then, it should be easy.

  21. Switch to manual focus.

  22. Quick sample shot to verify that settings aren't completely wrong.

  23. Switch to remote release.

  24. Pitch camera up 45 degrees.

  25. Shoot 6 photos at 60 degree intervals.

  26. Pitch camera down to 45 degrees below horizon.

  27. Shoot 6 photos at 60 degree intervals.

  28. Done!

As you can see, there are a number of steps to go through for each panorama. If conditions change during execution you may or may not have to redo everything. The most important part is to get the 12 shots for the equator done. That is where people will look, and that is where you want to spend your pixels and effort. The "up" and "down" shots can usually be frankensteined in without anyone noticing too much.

4. Getting the Zenith and Nadir Right

Two points on the panorama are special: the top and bottom poles. Since Enblend works with already projected images it has no idea that the top and bottom row of pixels are, in fact, a single point. This results in the top and bottom points of the panorama looking like someone pinched them when the panorama is re-projected onto a VR cube. This happens even if you don't have any obstructions at these points. Panorama photographers are familiar with having to edit the nadir point - that is usually where the tripod blocks some of the panorama. But the zenith must also always be edited to fix the artifacts caused by blending projected images.

An equirectangular map, stitched with Enblend
An equirectangular map, stitched with Enblend

The map has been stitched using Enblend. Enblend is not aware that the map is a projection of a sphere onto a rectangle. The black area at the bottom is the tripod.

The view straight up in the map above, contrast enhanced.
The view straight up in the map above, contrast enhanced.

Note the six lines that meet in the center (look immediately to the right of center to see one, the other are distributed evenly around the center).

The solution is to create three images from the shots that were taken:

  1. A 360-by-180 degree equirectangular map. This is the main panorama image.

  2. A 90-by-90 degree equirectangular panorama centered on the bottom (nadir) point.

  3. A 90-by-90 degree equirectangular panorama centered on the top (zenith) point.

To get image two and three: go to the panorama preview in Hugin and select "Num. Transform". For the zenith, adjust pitch by -90, for the nadir, adjust it by 90. Once you have rendered these three images, edit the zenith and nadir images to make them look good.

Then open up a new project in Hugin. Add the zenith and nadir images. Select "Equirectangular" for lens type and 90 degrees for field of view. Don't align them. Instead, go to the "Images" tab and input -90 degrees pitch for the nadir image and +90 degrees pitch for the zenith image.

Make sure that the output image size is the same as for image one above. Then select "output remapped images". Deselect the panorama output - we're going to manually paste in these two shots in the first image. Render everything and you should have two images that, when pasted into the panorama, will give you a panorama with no artifacts at the zenith and nadir points.

5. Photoshop and Singularities

A VR panorama is usually stored as an equirectangular image map. This is a simple and convenient projection of a sphere onto a rectangle, but as we saw in the previous section, it distorts the image toward the poles.

When you edit the panorama in Photoshop (or any other image editing program), you must be aware that the program is completely unaware that the image is a projection. Photoshop, for example, does not know that all pixels along the top row will come together in a single point. The result is that you risk getting artifacts at zenith and nadir, not due to the stitching process, but due to post-processing the panorama.

An equirectangular map with an edit
An equirectangular map with an edit

The black spot in the top left has been added in Photoshop. The spot is continuous and symmetric in the equirectangular map. If we imagine the spot to be a subtle brightness adjustment, it would gradually blend in nicely with the rest of the image.

The equirectangular map, as seen in the panorama
The equirectangular map, as seen in the panorama

The black spot has now been distorted into a drop-like shape, and the parts of it along the top edge of the map has been compressed into a single pixel. If it were a brightness adjustment it would not gradually blend into the image any more.

The only solution I've been able to come up with is to be very careful when editing the panorama. When applying adjustments I either apply them equally across the whole breadth of the image, or make sure that the adjustment doesn't affect any pixels near the top or bottom.

6. Hugin

Once you've done the capture, it is time to assemble the images in Hugin. The program actually does a very good job of getting this right all by itself. Two things that I've noticed, though:

  1. The "up" and "down" images need not be connected to each other, only to the images in the equator band. Very often the up and down images are nothing but empty sky or clouds; making for lousy feature points. Better to use the part of the horizon that is visible in them for alignment. I delete any control points between two "up" or two "down" images, as well as any from an "up" to a "down" image.

  2. You need to optimize view and barrel. The lens data isn't quite complete, so if you rely on it for view you will get one image along the equator that just won't fit, no matter what. Let Hugin adjust the view and barrel and you'll be fine.