Gimp-Forum.net
One heightmap out of many gimp 2.8 - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: One heightmap out of many gimp 2.8 (/Thread-One-heightmap-out-of-many-gimp-2-8)



One heightmap out of many gimp 2.8 - JKLopez - 10-06-2018

Hi everyone, I need help figuring out how to make a single hight map out of 6 height maps I have, there in .png format I downloaded them from terrain.party, I’d just download as one but the area is to big, so I was wondering if anyone knew how to make them into one map, it’s for unity 4, thanks for any help ...


RE: One heightmap out of many gimp 2.8 - rich2005 - 10-06-2018

These are tlles that will abut into a single layer?

How many rows and columns? Do they overlap? What size in pixels are they?
There are scripts and plugins that might work.


RE: One heightmap out of many gimp 2.8 - JKLopez - 10-06-2018

(10-06-2018, 05:17 PM)rich2005 Wrote: These are tlles that will abut into a single layer?

How many rows and columns? Do they overlap? What size in pixels are they?
There are scripts and plugins that might work.

2 rows of 3 ,so 6 height maps in total, there 512 x 512 and there’s overlap, i was thinking of cropping the overlap or something , I would like it as accurate as possible...thanks


RE: One heightmap out of many gimp 2.8 - rich2005 - 10-06-2018

I had a look at the site terrain.party. Are these dark grayscale images that you download. Tried some but got about 1000 pix square.

If those are the type then not too easy to identify matching points.

Get this plug-in ofn-layer-aligner.py from http://sourceforge.net/projects/gimp-tools/files/scripts/ about 22 down

direct link https://sourceforge.net/projects/gimp-tools/files/scripts/ofn-layer-aligner.zip/download

Unzip, it comes with documentation which you should read, plugin goes in your Gimp user profile plugins folder

This is in Gimp 2.10, forgot you are OSX and Gimp 2.8 but all the same.

Make a canvas big enough for the joined up tiles. Then File -> Open as layers the first 2 or 3 (do not be over ambitious)

Line them up and identify matching points. Not easy on the set I downloaded. (I put up an overlay layer and some dots, just for screenshots, not absolutely necessary)

Join the matching points with a single path, make sure you are on the correct layer (important or layers fly off)

Apply the plugin.

Some screenshots of that: https://i.imgur.com/q33Dyni.jpg

Same procedure when it comes to the second row

Make a new path, careful with layer positions, apply plugin. https://i.imgur.com/KKYvOT6.jpg
That should get you started. I expect there will be some cropping to do.


RE: One heightmap out of many gimp 2.8 - JKLopez - 10-06-2018

Thanks, this looks promising, I’m trying to copy the plug in to the right directory, I’ll keep you posted...


RE: One heightmap out of many gimp 2.8 - JKLopez - 10-06-2018

I’ve kept on playing with it but there’s no realign layer under the layer tab... I put the .py file in the plugin folder and even tried putting it in the python folder because some .py plugins only work in that folder but no dice... I’ve closed and reopened gimp and still no layer>realign layers...any ideas...I’m looking at the top bar menu.. is it in the toolbox or some other place...?


RE: One heightmap out of many gimp 2.8 - rich2005 - 10-07-2018

Do not put it in the Python folder. Did you make the plugin executable?

In a terminal the command is chmod a+x 'path-to-the-file\filename.ext'

For better or worse I made a little video. https://www.gimp-forum.net/Thread-Install-scripts-and-plugins