Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Library of Enlightenment > Thread: How to generate a map from an image?
Thread: How to generate a map from an image?
Nightshine
Nightshine


Adventuring Hero
posted May 18, 2016 02:37 PM

How to generate a map from an image?

Hey. I've seen a bunch of those beautifully made maps that are generated based on images (the landmass of course). But I can't nail it on Google anywhere.

Also, I believe it's a WoG/Era utility? If so, is it possible to create a landmass there and then somehow copy it to normal HoMM/Hota editor?

Thanks a bunch.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
potmdehex
potmdehex


Known Hero
professional ERM™ scripter
posted May 18, 2016 03:17 PM
Edited by potmdehex at 15:19, 18 May 2016.

I made some utilities for this, but I never really talked about them anywhere and they are not for WoG/ERA (instead RoE, AB and SoD) so I guess you are thinking of someone elses'. Regardless, what I made might be of some interest to you, even though it's mostly technical:

Here is an input file:


And here is its randomly generated output (the fact that the "painted" terrain regions don't look so good is not a negative part of the herringbone wang algorithm used, it's separate basic PoC code as all the herringbone wang algorithm does is select which regions should have terrain and which shouldn't):


As for how to use my utlities for this... At this point I can unfortunately not recommend even giving it a try unless you have solid skills in C and C++ (I made Python bindings too but they are currently unsupported). Maybe at some point I will wrap it in a utility that's easy to use. To anyone interested the code is in my repo with most of my other H3 stuff: https://github.com/potmdehex/homm3tools/

Some technical info on how it works:
http://nothings.org/gamedev/herringbone/herringbone_src.html

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted May 18, 2016 03:58 PM

@Nightshine, read this post by Sav.

It will enable some features from wog editor to Hota, I hope image conversion to h3 palette is in.
____________
Era II mods and utilities

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Biobob
Biobob


Famous Hero
the Bobler
posted May 18, 2016 08:37 PM

@potmdehex Now this feature looks extremely useful! I suggest however to remove shrubs from the placing pool, as those objects dont show up on the minimap, as well as an option to ONLY place shrubs, so as to not spoil the minimap. Then it would be a huge relief for mapmakers aiming for the perfect design

Greets
____________
Maps
The Mapmaker's Thread

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Nightshine
Nightshine


Adventuring Hero
posted May 19, 2016 01:18 PM

@potmdehex
I actually meant the utility that places the various terrains to create colorful images, but your thing looks really cool too Good job!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
RoseKavalier
RoseKavalier


Admirable
Supreme Hero
posted May 19, 2016 04:33 PM

Nightshine, in case you are still wondering how to do it, I've made a very basic and short tutorial in the Mapmaker's Thread.

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
Baronus
Baronus


Legendary Hero
posted May 20, 2016 10:39 AM
Edited by Baronus at 10:45, 20 May 2016.

Very good idea!
There is another nice programm. Picture to Heroes III map converter :-)
You can convert your picture to map: Mapmagic.

Useful  too if you want paint map in paper and generate. You mustnt do it point by point.
http://kirinyale.net/treasury.php
Maybe it will be possible join your utility to this and make one powerfull and easy to use?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0422 seconds