TUTORIAL: How to make little planets from photos
tutorial·@wiering·
0.000 HBDTUTORIAL: How to make little planets from photos
<html> <center><img src="https://steemitimages.com/DQmaFUQTodH7SFykVnSFySLmq1HAhx1vNXN79VmkSYG8o7x/002-staddijk-planet.jpg"/></center> <p/> In this little tutorial I will explain how you can make little planets like the one above from a number of photos using the free program <a href="http://hugin.sourceforge.net/">Hugin</a>. I'll show 4 different example sets of photos taken with different cameras or lenses and go through the process of turning each of them into a little planet. <p/> <h2>Choosing a location</h2> There are a few things to consider when choosing a suitable location for making a little planet. First of all, try to avoid being close to really high objects. If you have tall trees next to you, their tops will be blown out of proportions. In the original photos, the treetops will be small and blowing them up will make those areas blurry, see the example below. <p/> <center><img src="https://steemitimages.com/DQmTuJ93Bck11rFgwohBY8cEEtqMvGCuEHPuhkXEBf74JR2/009-my-first-planet.jpg"/></center> <p/> Since you'll be stitching photos together, be careful with anything that moves, for example Water can cause problems if there are waves. If you do have moving subjects, try to get them in the center of your photos and not at the edges where the photos will be merged. <p/> <center> <img src="https://steemitimages.com/DQmbUrFy8hJoMMdbyRLSgEraMPFa9Q4mAshmdyk3apeVYyL/schaatsen-op-het-staddijk.jpg"/> </center> <p/> <h2>What you'll need</h2> <ul> <li>Obviously, you'll need a <b>camera</b>. Any kind of camera will do, but the wider the lens is, the less photo's you'll need to make and the easier and faster it will be to merge them.</li> <li>Unless you are using a fisheye lens, you'll probably need a <b>tripod</b> (optionally with a <i>panohead</i>, as I'll explain later) or some other kind of stand.</li> <li>And of course you'll need a <b>computer</b> (PC or Mac) to run Hugin.</li> <p/> <h2>Taking the photos</h2> Basically, what you'll need to do is choose a point in space and take pictures in all directions from that point (except that you don't really need the entire sky). All those pictures will need to have enough overlap so that they can be stitched together. How many pictures you'll need depends on how wide your lens is. With a fisheye lens, just 4 is enough, but using a cell phone, you might need 50 or so. The order in which you take the pictures is not important, but you need to make sure you cover everything. <p/> Whenever you take pictures that will be stiched together, it's good to have the same settings for each photo. Some people say you have to use manual mode. From my experience however, hugin is very well able to compensate for any change in exposure, so using auto mode is fine. But autofocus can sometimes cause problems if one image is focused differently than the next, the stitching might not work. <p/> But before you start, there is something important to know. Consider the following setup: <p/> <center> <img src="https://steemitimages.com/DQmVH7eapSsjeB55Pq5WLFQCChMCrFe5y4XUxzG36J6AQpi/setup2.jpg"/> </center> <p/> Here is a camera on a stand in front of two trees. Now if we take photos and simply rotate the camera using the tripod mount, we get the images below. Notice how the position of the tree in the back changes in relationship with the tree in the front when the camera is rotated. Such differences can cause huge problems when you try to stitch such photos together. <p/> <table><tr><td> <img src="https://steemitimages.com/DQmevMF7a8zvLUM1qKc6JiA65yGqdWJiiacdz5eDQJRJMjU/1a.jpg"/> </td><td> <img src="https://steemitimages.com/DQmQ6pdAuLH7fQpFRXLomYD5aA4pUWr7N9wQvV9HfbT41fs/1b.jpg"/> </td><td> <img src="https://steemitimages.com/DQmWmWSG8EaQNeGVLVp3QvUu16aNN6kjyixm3C2oWsss7mo/1c.jpg"/> </td><tr> </table> <p/> Every lens has a so called <i>nodal point</i> (or <i>no parallax point</i>). If you rotate around that point, the images will overlap correctly. You can easily find the nodal point of your camera by experimentation. You need a little object in front of the camera and a reference object in the distance. Try rotating the camera at different points and find the point where those objects remain the same when you rotate. <p/> <center> <img src="https://steemitimages.com/DQmXFfb72Bb5A7j1q5zkcM8PbBpxdvbcQYjeVXrFJEFLevi/nodal.jpg"/> </center> <p/> For this lens, the nodal point is almost all the way at the front, if you rotate around that point, you get the images below (that's my fisheye lens BTW). <p/> <table><tr><td> <img src="https://steemitimages.com/DQmcFvv1oheq8iZemm9rt3GvZk9JeZ9E86d3nbztN9cR5LC/2a.jpg"/> </td><td> <img src="https://steemitimages.com/DQmYCP43aVQa3Ny5pr6pX1WxnYJv3iALW6MXxAW5PekGcSn/2b.jpg"/> </td><td> <img src="https://steemitimages.com/DQmV23UkKtB6pn2MWjUWzTfU6JJMsFGUm21G75mP75CfoM7/2c.jpg"/> </td><tr> </table> <p/> There are special <i>panohead</i> mounts that will let you mount your camera at the correct distance to the axis so you can just rotate your tripod. If you have one, that's great, but you don't really need it. There are also tripod mounts that let you easily rotate a certain number of degrees, so you can be sure that all your photos will have the exact same overlap. Also great if you have it, but you can do without. <p/> I usually just use the stand or tripod as a reference point and hold the camera by hand, making sure the nodal point is above the stand. It's good to have some kind of system to make sure you cover the entire view. I usually take the photos vertically and often start by going around the horizon. <p/> <h2>Example photos</h2> The first set of photos were taken with a Sony mirrorless camera with the 16-50mm kitlens at 16mm. Here I used 12 vertical photos to cover the horizon (there is more overlap than really needed, so probably 10 would also have been enough), and 7 for the ground (also more than really needed). I'll usually take photos with a little more overlap than really necessary, just to be sure. If the overlap is too small, you'might end up having to set up control points manually and that is a lot of work. <p/> <img src="https://steemitimages.com/DQmWRvtuaR22hpbwBaa9XVcwj1EGccZzRR5XdwUgVyNJa8n/3a.jpg"/> <img src="https://steemitimages.com/DQmf6nhcqXvYuUwnasDQVX9HewwfJPw6ULrHAeRmH1LAg5M/3b.jpg"/> <p/> As a second example, I'm using an action camera (Gitup Git2), which has a pretty wide lens. Even though this camera is really small, it has a nodal point too (also at the front of the lens) and you get the same kind of distortion as above if you don't use it. <p/> <center><img src="https://steemitimages.com/DQmbs4WyxkZcjD91FuhXrm2CEiqar2rks7punwmJPVrJDia/git.jpg"/></center> <p/> We still need two photos for each direction (one to the horizon and one a bit down, where you start to see the bottom of the tripod). Here , taking photos in 7 directions covers the whole scene. <p/> <center><img src="https://steemitimages.com/DQmS8tbHuXFurXXvBPnGkXtrPJteeq9XLP9qnXmjrF8cRoH/git_sunset.jpg"/></center> <p/> The third set of photos are taken with a Canon 10-18mm lens at 10mm. Because of this wide lens, the water can be stitched without problems. I tried this same scene years ago with a much narrower lens and could never get it to work. <p/> <center><img src="https://steemitimages.com/DQmUPQSi3FHkjHuJNEvSZQ5D6WpDEZGaKEKWGvnKNfbvSpW/canon.jpg"/></center> <p/> The final set of photos was taken using a fisheye lens, which is by far the easiest way. You only need 4 photos (actually it can be done with 3, but 4 is easier and safer) and you can do it handheld.<p/> <center> <img src="https://steemitimages.com/DQmUKFtUHgFTSHpPU8Lj68nRwm2NB2Jo8Q8fbNeCzSXHqPe/handheld.jpg"/> </center> <p/> For any handheld photos you take, it's probably a good idea to always take 2 or 3 shots, just in case you don't hold still. <p/> <h2>Installing Hugin</h2> You can download and install Hugin from the website <a href="http://hugin.sourceforge.net">hugin.sourceforge.net</a>. You can probably use the newest version. <p/> However, I'm using an older version, since I wanted to be able to use Autopano-SIFT-C (which I think used to be included with Hugin and is very good at automatically finding control points). I couldn't get it to work with newer versions. Eventually, I followed the steps in <a href="https://www.youtube.com/watch?v=Dl_Js3vHSDk">this video</a>, using the 32-bit version of Hugin (it won't work with the 64-bit version). You can extract files from a zip file from <a href="http://lemur.dreamhosters.com/hugin/">here</a> over the installed program and that adds support for Autopano-SIFT-C. For me it works great now and I haven't tried to update the program since then. <p/> <h2>Creating the planets</h2> When you start hugin you get the Assistant screen and you can start by loading images. In this case, I loaded the images from the first panorama (Sony 16mm). It automatically detects the information (focal length, crop factor) from the exif data of the photos. <p/> <center> <img src="https://steemitimages.com/DQmc6b6pkSLB2SNCjkEe3pWkjAFvy5sDfrRSPZNuByq6E5q/hugin1.jpg"/> </center> <p/> After clicking <b>Align...</b> (and waiting about 5 minutes) the program shows the stitched panorama: <p/> <center> <img src="https://steemitimages.com/DQmTVAJDBr4hjkqa7Bc28dbEyTYFAhFJE4JdNtqMf7q9Cwp/hugin2.jpg"/> </center> <p/> To make the planet, you first need to go to <b>Move/Drag</b> at the top. Type 90 for pitch and click Apply. <p/> <center> <img src="https://steemitimages.com/DQmdpqME9gizBxDAmEfnn9frtob7P6MuKjd7NF1PYFCURSA/hugin3.jpg"/> </center> <p/> Then go to <b>Projection</b> at the top and choose <b>Stereographic</b>. Now you'll see just a small spot in the middle of the screen and you need to drag the little handle at the bottom right to the left to resize your planet so that you can see it. <p/> <center> <img src="https://steemitimages.com/DQmdtTvXEnX4BL9kVLoEonV3YkmautLCcTuxMxrx9xT2pJ1/hugin4.jpg"/> </center> <p/> Now you can optionally go back to Move/Drag and change your planet a bit. Try dragging a point with the mouse. Here I drag the trees at the bottom up a little, until I think the balance is right. Now switch to the other Hugin window (Alt+Tab) and go to <b>Stitcher</b> at the top right. <p/> <center> <img src="https://steemitimages.com/DQmY3464rjNT2GTrdfVEgXbXbnWDevF7rqT6GvHWPe7pydX/hugin6.jpg"/> </center> <p/> Here you can enter the size of the final image. Choose a size, for example (4000, 4000), then set the crop to (0, 0, 4000, 4000). Switch back to the Fast Panorama preview (Alt+Tab), Crop panel, and adjust the size of the planet so that it fits well in the cropped area. Then back to Stitcher and choose the output file type (I usually use PNG or JPG instead of TIFF) and then hit <b>Stitch now!</b>, enter a name for your image. In this case, the result is: <p/> <center> <img src="https://steemitimages.com/DQmTfkjwXP2PEmT7mUFaU6W8mq5dogocx6rJCTH6oKfejWU/b.png"/> </center> <p/> Here there is quite a big gap in the middle because I didn't aim the last shots low enough (there should be some where you see the tripod). Sometimes at the end, I'll take away the tripod and take a photo of the ground (but didn't think about that here). But we can easily correct that with Photoshop or Lightroom. See the final result at the bottom. <p/> The second set of images (made with the action camera) doesn't have enough information in the EXIF data, so you need to supply it. The wide lens is kind of like a fisheye lens, so I select Circular Fisheye, and from trial and error I've found that 17 works as focal length. <p/> <center> <img src="https://steemitimages.com/DQmf4bD7VZZ2WTUnDEhMHBKzW4KpN8ihP7zp7Qwq3guh1Bc/hugin7a.jpg"/> </center> <p/> After running Align... the image looks like this: <p/> <center> <img src="https://steemitimages.com/DQmdgSPWSiyVXf47RUyfYZgR2ZrLK7eByjFngfoUWq4jaio/hugin7.jpg"/> </center> <p/> Again we go to Move/Drag and apply a pitch of 90 degrees, go back to Projection and select Stereographic and scale it up using the slider at the bottom: <p/> <center> <img src="https://steemitimages.com/DQmUB18MaVMRDHuE87vHVbKDxNP26RQKXZ3HS4XoDVzU1iL/hugin8.jpg"/> </center> <p/> Then we go back to the Stitcher and set the size (4000, 4000) and crop (0, 0, 4000, 4000). Go back to the Fast Panorama preview and adjust the size of the planet again to fit nicely into the crop. Go back to Stitcher, select the file type you want (I use PNG) and run Stitch now! and I get the following result: <p/> <center> <img src="https://steemitimages.com/DQmZgJZ3hctYepUBLhV119pbnCifdhwVyFYt3Z4GiQhrdmS/sunset_fused.jpg"/> </center> <p/> You can still see parts of the tripod in the middle so this image needs to be edited a little too. <p/> For the third set of images (Canon 10mm) we don't need to change any lens data and everything loads correctly. <p/> <center> <img src="https://steemitimages.com/DQmRxQNuHXC9ZBnqUggFR9sU8S5THv4kf5wbSjWwaUQ1966/hugin9.jpg"/> </center> <p/> Here we go through the same process again: apply 90 degrees pitch, stereographic projection, enlarge, stitch and crop. Here is the result (which also needs to be edited a little): <p/> <p/> <center> <img src="https://steemitimages.com/DQmctk5Bi922y4keEV6VZ3GjgAoGqgVirz7bheV6TtAJ3VC/bridge.jpg"/> </center> <p/> For the last set of images (made with the fisheye lens) we do need to supply data, since it is a fully manual lens. Lens type is Circular Fisheye, focal length 8mm and the multiplier is 1.6. Importing goes fast with only 4 images: <p/> <center> <img src="https://steemitimages.com/DQmRP4mPHdXbZQPbFWve52cwwhPYXCJZE9E9Js848QDuH8w/hugin10.jpg"/> </center> <p/> After going through the same process as above, the exported image looks like this: <p/> <center> <img src="https://steemitimages.com/DQmRbae5jQ98VtD86CNjg59gEgSzXTUMr3n7ygdf6oYcayZ/handheld.png"/> </center> <p/> Here are the 4 final images after doing some editing in Lightroom: <p/> <center> <img src="https://steemitimages.com/DQmf7mUg4tzMZ41aiS4gBDA7hNQRA15BGhgeMyjqBKZ5q1y/001-b.jpg"/> </center> <p/> <center> <img src="https://steemitimages.com/DQmXGK7DerDDoAXk2wEHCR63aiUTSNzNEcCyWmWgS31sW9N/004-sunset_fused.jpg"/> </center> <p/> <center> <img src="https://steemitimages.com/DQmR3nCTCh9kW9xmegYkr2HaNX5gpYUw79AjhHn5HBiXFGX/002-bridge.jpg"/> </center> <p/> <center> <img src="https://steemitimages.com/DQmWoaJmeippKcqdsexzatddR6ZYUZF3besXtzhJdNgR8vn/003-handheld.jpg"/> </center> <p/> Thank you for reading, I hope this tutorial is useful. If you followed it to create your first little planet, please post the result in the comments! </html>
👍 wiering, bitcoinparadise, thatdamiguy, tormiwah, saimegh, tinypaleokitchen, dante31, misterakpan, liberosist, meerkat, curie, hendrikdegrote, anwenbaumeister, ianboil, kushed, pharesim, murh, ratel, velourex, solar, wandereronwheels, pairmike, tabea, maxer27, azirgraff, ausxen, steemedia, steemfactory, diggerdugg, robins, randyclemens, blackwidow7, locikll, coruscate, dirty.hera, arrliinn, luisucv34, toxichan, sethlinson, john-gpr, bp423, cotidiana, awesomianist, bitrocker2020, shahzadnisar, cebymaster, deepweeb, lexie54, twolittlebirds, simgirl, bobinson, aci7, zararina, alexander.alexis, sergey999, justindaviesart, barcisz, rickvanboxtel, thechange, allowisticartist, firepower, krazypoet, sawarinp, plushzilla, mys, opalmae, silbart, azhariel, joynalabedin, raynizm, iftikhar01, trevallion, landmine, davidshayne, stefanlucasart, sunray, middlechild, anthonyj, wuhotan, elyiouvax, wamsverrucko,