Results 1 to 2 of 2

Thread: Fixing your equirectangular poles

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Guild Journeyer Guild Donor mbartelsm's Avatar
    Join Date
    Aug 2010

    Tutorial Fixing your equirectangular poles

    Has it ever happened to you that you invest a LOT of time drawing a beautiful map that you just love, and one day, for whatever reason you decide to put it on a sphere or take a shot of how the poles look like and you realize they look horrible? then this tutorial is for you.

    Let's say the ugly black and white thing below is your map.

    Click image for larger version. 

Name:	map-part-1.jpg 
Views:	191 
Size:	117.4 KB 
ID:	52744

    And this is the map on a stereographic projection seen from a pole and from the side

    Click image for larger version. 

Name:	map-part-2.jpg 
Views:	143 
Size:	59.4 KB 
ID:	52745Click image for larger version. 

Name:	map-part-3.jpg 
Views:	229 
Size:	64.6 KB 
ID:	52746

    The problem is that the equirectangular projection (the 2:1 rectangle in which world maps are usually drawn) heavily distorts poles and when people draw on in, they often don't take into account this distortion or simply fail at doing so. This tutorial focuses on fixing that problem with a method that is NOT redrawing your map multiple times until you get it right.

    You are going to need:
    1. G.Projector
    2. Hugin
    3. A raster graphics editor (Photoshop, GIMP, Paint.NET, etc.)

    Step 1
    Reprojecting your map to stereographic in G.Projector

    1. Launch G.Projector
    2. Open your map
    3. Select the Stereographic projection from the drop down list
    4. Set it to latitude 90 (or -90) and radius 90, longitude does not matter
    5. Make sure the graticule is on - this is to make sure the process has gone right.
    6. Save the newly projected map.
    7. Repeat the process for the opposite pole

    It should look like this now:

    Click image for larger version. 

Name:	map-part-8.jpg 
Views:	140 
Size:	118.5 KB 
ID:	52737

    Step 2
    Cropping and fixing

    1. Open your map in whatever raster graphic software you use
    2. Crop the gray borders VERY carefully, the circular area of the map must remain intact
    3. remove the remaining gray area leaving it transparent
    3. Redraw your poles
    4. Save as PNG or another format that supports transparency

    Click image for larger version. 

Name:	map-part-12.png 
Views:	98 
Size:	108.7 KB 
ID:	52738Click image for larger version. 

Name:	map-part-11.png 
Views:	96 
Size:	104.4 KB 
ID:	52739

    Step 3
    Restoring the projection

    1. Open Hugin
    2. Load both of your poles
    3. Set in the load dialogue 'Stereographic' and '180' degrees

    Click image for larger version. 

Name:	SS1.jpg 
Views:	91 
Size:	171.4 KB 
ID:	52740

    4. Now position your images

    Click image for larger version. 

Name:	SS2.jpg 
Views:	110 
Size:	269.5 KB 
ID:	52741

    4.1. Open the preview
    4.2. Select the 'Move/Drag' tab
    4.3. Select only one pole
    4.4. Write in 'Pitch' 90 if it's the north pole, -90 if it's the south
    4.5. Apply
    4.6. Deselect current pole from step 4.3.
    4.7. Select the other pole and repeat
    4.8. If you feel comfortable, you can also just drag them
    4.9. Show both poles to verify they are correctly placed
    4.10. Close the 'Fast panorama preview dialog

    5. Now save the map

    Click image for larger version. 

Name:	SS3.jpg 
Views:	98 
Size:	234.3 KB 
ID:	52743

    5.1 Back in hugin main window, select the 'stitcher' tab
    5.2 Set projection to equirectangular
    5.3 Field of view to '360' and '180'
    5.4 Click 'calculate optimal size'
    5.5 Click 'Fit crop to images'
    5.6 Select the file format you desire
    5.7 Stitch!

    6. A couple of windows will pop up, when finished, check your final image.

    Click image for larger version. 

Name:	map-part-11-map-part-12.jpg 
Views:	92 
Size:	71.2 KB 
ID:	52742
    EDIT: I just noticed the black lines at the equator, I was in a hurry and just dragged the images, if you do it with care and the pitch dialog, this shouldn't happen, also, the yaw dialog moves the images to the side, in case they are not properly aligned

    I know this sounds like a lot, but the process, not including the redrawing, shouldn't take more than 10 minutes, which is a lot less than redrawing over and over and over and over again until you get it right
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	map-part-4.jpg 
Views:	62 
Size:	125.0 KB 
ID:	52736  
    Last edited by mbartelsm; 03-09-2013 at 11:25 AM.
    All my works are under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License unless otherwise stated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts