.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 3: The Awakening (http://forum.shrapnelgames.com/forumdisplay.php?f=138)
-   -   Turn Any Image Into Map (http://forum.shrapnelgames.com/showthread.php?t=39306)

wazawak June 15th, 2008 06:04 PM

Turn Any Image Into Map
 
On the "Features" list, it says that you can turn any image into a map. That intrigues me. How can I do this?

Aezeal June 15th, 2008 06:24 PM

Re: Turn Any Image Into Map
 
I can only think of just loading it in a program that can save it as a file the game can use for maps.. and then do the white dots needed for the game to recognize provinces and bright red lines to mark borders...

I'd more work than you'd think though http://forum.shrapnelgames.com/images/smilies/laugh.gif

Gandalf Parker June 15th, 2008 06:54 PM

Re: Turn Any Image Into Map
 
There are a couple of people working to make it easier. But in the simplest sense...
If you load an image of Madonna into a paint program, remove all COMPLETELY white pixels (255, 255, 255) which is usually done just by makng them a light grey. Then put the tiniest possible white dot in each location that would be a "flag" when you played it. Then you can load that image into the Map Editor in the Tools part of Dominions and have it generate a .map file for it.

The results would be bad. http://forum.shrapnelgames.com/images/smilies/happy.gif
But yes its possible. Usually its better to choose a decent image (like a sattelite photograph of Europe?), add borders, then the dots, and reasonable neighbor connections.

Endoperez June 16th, 2008 02:27 AM

Re: Turn Any Image Into Map
 
Even the borders aren't necessary. The map editor in game tools is quite bad at guessing correct neighbours, and very bad without red borders, but you can just assign neighbours manually if you have to.

Agrajag June 16th, 2008 04:26 AM

Re: Turn Any Image Into Map
 
My RMG in progress will be able to take an image and turn it into a map, but unless you supply it with an image and it's own "format" for storing per-pixel terrain bitmasks, it will only be able to plonk down random provinces and provinces and connect them (so some polygon over Madonna's nose might be deep sea, while another that contains her left earlobe would be a mountainous forest).
Though I haven't made much progress on it for the last couple of days because I'm a bit sick http://forum.shrapnelgames.com/images/smilies/frown.gif

chrispedersen June 16th, 2008 10:30 AM

Re: Turn Any Image Into Map
 
Why does this conjure images of a lower GI track...

Oh yes.. for our next move, we're going to invade the colon...


All times are GMT -4. The time now is 06:09 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.