Great job RobA!
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:
shuffle1.png
The result:
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):
shuffle4.png
And after running the script:
shuffle5.png
Just unzip the file into your gimp scripts directory. The script registers as Filter>Distorts>Tile Shuffle
-Rob A>
My tutorials: Using GIMP to Create an Artistic Regional Map ~ All My Tutorials
My GIMP Scripts: Rotating Brush ~ Gradient from Image ~ Mosaic Tile Helper ~ Random Density Map ~ Subterranean Map Prettier ~ Tapered Stroke Path ~ Random Rotate Floating Layer ~ Batch Image to Pattern ~ Better Seamless Tiles ~ Tile Shuffle ~ Scale Pattern ~ Grid of Guides ~ Fractalize path ~ Label Points
My Maps: Finished Maps ~ Challenge Entries ~ My Portfolio: www.cartocopia.com
Great job RobA!
My Finished Maps | My Challenge Maps | Still poking around occasionally...
Unless otherwise stated by me in the post, all work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.
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:
ts1.png
I then ran the tile shuffle:
ts2.png
-Rob A>
My tutorials: Using GIMP to Create an Artistic Regional Map ~ All My Tutorials
My GIMP Scripts: Rotating Brush ~ Gradient from Image ~ Mosaic Tile Helper ~ Random Density Map ~ Subterranean Map Prettier ~ Tapered Stroke Path ~ Random Rotate Floating Layer ~ Batch Image to Pattern ~ Better Seamless Tiles ~ Tile Shuffle ~ Scale Pattern ~ Grid of Guides ~ Fractalize path ~ Label Points
My Maps: Finished Maps ~ Challenge Entries ~ My Portfolio: www.cartocopia.com
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.
Is it possible to add an option to randomly rotate the tiles by 90 degree increments (some 90, some 180, some 270)?
seeing as in the last 8 YEARS the API gimp uses changed
gimp is dumping gtk ( Gimp Tool Kit ) and moved to GEGL
use the new and current Gmic gimp 2.8.6 plugin
http://gmic.eu/
it has this option already built in
Last edited by johnvanvliet; 10-06-2017 at 11:19 PM.
--- 90 seconds to Midnight ---
--------
--- Penguin power!!! ---
Yes, that works, but a little different. I guess you mean the tile array random filter? The issue is that tiles can be repeated, randomized not shuffled. If I have a 4x4 set of unique tiles, then the new 4x4 may have some repeated and some missing from the original set.
As far as GTK goes, I thought it was unrelated to GEGL. Isn't GTK more of a user interface and GEGL more of a math thing, not so much interface? I must admit I really don't understand this stuff.
Update: Indeed Gmic does this with the 'taquin' filter.
My tutorials: Using GIMP to Create an Artistic Regional Map ~ All My Tutorials
My GIMP Scripts: Rotating Brush ~ Gradient from Image ~ Mosaic Tile Helper ~ Random Density Map ~ Subterranean Map Prettier ~ Tapered Stroke Path ~ Random Rotate Floating Layer ~ Batch Image to Pattern ~ Better Seamless Tiles ~ Tile Shuffle ~ Scale Pattern ~ Grid of Guides ~ Fractalize path ~ Label Points
My Maps: Finished Maps ~ Challenge Entries ~ My Portfolio: www.cartocopia.com