Results 1 to 7 of 7

Thread: GIMP Script: Mercator to Dodecahedron

  1. #1
      saulgoode is offline
    Guild Applicant
    Join Date
    Mar 2010
    Posts
    2

    Default GIMP Script: Mercator to Dodecahedron

    Though it may not be particularly useful, I have written a script for GIMP which will map an Mercator projection to a result than can be printed, cut, and folded into a dodecahedral "globe".

    The mapping is not perfect, since the faces of the "globe" are flat, but it generally achieves the result I wanted. Note that the original projection should have a 1:1 width-to-height aspect ratio. The actual width of the original does not matter other than larger projections will result in sharper results (the following image used an original projection that was only 320x320 pixels).

    Last edited by RobA; 02-02-2011 at 02:31 PM. Reason: Updated link to renamed version

  2. #2
      Jaxilon is offline
    Community Leader Gracious Donor Jaxilon's Avatar
    Join Date
    Nov 2009
    Location
    Arizona
    Posts
    3,954

    Default

    That's pretty cool. Imagine a bunch of these hanging in my office.
    “When it’s over and you look in the mirror, did you do the best that you were capable of? If so, the score does not matter. But if you find that you did your best you were capable of, you will find it to your liking.” -John Wooden

    * Rivengard * My Finished Maps * My Challenge Maps * My deviantArt

  3. #3
      Redrobes is offline
    Software Dev/Rep Redrobes's Avatar
    Join Date
    Dec 2007
    Location
    England
    Posts
    4,803
    Blog Entries
    4

    Default

    Oh that could be ever so useful. The sample you provide looks like the original image was of low res cos its blurring badly on the globe. Can it handle large initial images to prevent that. We have loads of people here who make world maps which are about 4K in size and I am sure would like to see them as a globe.

    I will rep you for this great work.

  4. #4

  5. #5
      Hai-Etlik is offline
    Guild Expert Gracious Donor Hai-Etlik's Avatar
    Join Date
    May 2009
    Location
    48° 28′ N 123° 8′ W
    Posts
    1,129
    Blog Entries
    1

    Default

    Equirectangular mercator? Those are two different projections.

  6. #6
      saulgoode is offline
    Guild Applicant
    Join Date
    Mar 2010
    Posts
    2

    Default

    Quote Originally Posted by Redrobes View Post
    Oh that could be ever so useful. The sample you provide looks like the original image was of low res cos its blurring badly on the globe. Can it handle large initial images to prevent that. We have loads of people here who make world maps which are about 4K in size and I am sure would like to see them as a globe.
    I was able to create a globe from this NASA image (rescaled to 2700x2700) on my puny 1.8 GHz single-core computer with 1 gigabyte of RAM (GIMP used about 400 Mb during processing) with little problem other than it taking about 20 minutes. I could re-structure the code to require less RAM but there is little I can do about the speed since the lion's share of the time is spent by the GIMP's mapping plug-in (written in C). Most modern processors should be about five or ten times faster than mine.

    Quote Originally Posted by Hai-Etlik View Post
    Equirectangular mercator? Those are two different projections.
    I appreciate your correction and I have updated the script's name (see original post for links). Please let me know if my terminology is still off or I exhibit any other misconceptions.

    I am not very knowledgable about cartography and mainly wrote this script as an excercise to learn how to invoke GIMP's "Map Object" plug-in from a script. The plug-in interface has 49 different parameters which are all but undocumented (I wasted a good portion of a Saturday because I failed to realize that the reference axes were not [1,0,0] and [0,1,0] but [0,1,0] and [0,0,-1]).
    Last edited by saulgoode; 01-31-2011 at 10:44 PM. Reason: Added link to hi-res globe image (2.5M)

  7. #7
      cantab is offline
    Guild Journeyer
    Join Date
    Jun 2011
    Posts
    145

    Default

    Just one comment: the dodecahedron is a great choice for a globe. However, with pentagonal faces there have to be many gaps in the flat map. An icosahedron can be used to make some interesting flat maps, http://www.progonos.com/furuti/MapPr...cosahedralMaps So if you did want to take the plugin further, adding icosahedral options may be an idea.

Posting Permissions

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