Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By RobA

Thread: GIMP Script: Tile Shuffle

  1. #1
      RobA is offline
    Administrator RobA's Avatar
    Join Date
    Apr 2007
    Location
    Niagara, Canada
    Posts
    5,549

    Post GIMP Script: Tile Shuffle

    Over in Woekan’s Dungeon Tiles in Adobe Photoshop Tutorial I mentioned doing this with gimp, and referenced a script I wrote to shuffle tiles.

    When run, the script prompts for X and Y tile size. The default is 100 for both.

    Here is a sample source:
    GIMP Script: Tile Shuffle-shuffle1.png

    The result:
    GIMP Script: Tile Shuffle-shuffle3.png

    If the width or height aren't evenly divisible by the tile size, then the strip of partial tiles on the right and/or the bottom are shuffled. If both aren't divisible the lower right part tile will not get moved. (This is shown in the previous example.)

    Now where this comes in handy (for example) is if you have a nice rendered noise (like this level adjusted difference clouds with a grid to help show the effect):
    GIMP Script: Tile Shuffle-shuffle4.png

    And after running the script:
    GIMP Script: Tile Shuffle-shuffle5.png

    Just unzip the file into your gimp scripts directory. The script registers as Filter>Distorts>Tile Shuffle

    -Rob A>
    Attached Files Attached Files

  2. #2
    Community Leader Facebook Connected Steel General's Avatar
    Join Date
    Jun 2008
    Location
    Ft. Wayne, IN
    Posts
    9,464

    Default

    Great job RobA!
    My Finished Maps | My Challenge Maps | Ghoraja Juun, my largely stagnated campaign setting.

    Unless otherwise stated by me in the post, all work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.



  3. #3
      RobA is offline
    Administrator RobA's Avatar
    Join Date
    Apr 2007
    Location
    Niagara, Canada
    Posts
    5,549

    Post

    Another good use for this tool is to make better use of random tile sets in GIMP. Here I show how to make such a set but there are lots for download over in the Dundjinni forums, too.

    Here I filled horizontal rows with the same tile:
    GIMP Script: Tile Shuffle-ts1.png

    I then ran the tile shuffle:
    GIMP Script: Tile Shuffle-ts2.png
    -Rob A>

  4. #4
      jfrazierjr is offline
    Community Leader jfrazierjr's Avatar
    Join Date
    Oct 2007
    Location
    Apex, NC USA
    Posts
    2,963

    Post

    Hmmm.. i might have to play with Genetica Viewer and create a few tiles to see how random I can make them and still look halfway decent.
    My Finished Maps
    Works in Progress(or abandoned tests)
    My Tutorials:
    Explanation of Layer Masks in GIMP
    How to create ISO Mountains in GIMP/PS using the Smudge tool
    ----------------------------------------------------------
    Unless otherwise stated by me in the post, all work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.

Tags for this Thread

Posting Permissions

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