Jpeg screenshot to map converter?

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Jpeg screenshot to map converter?

Post by GottaLove88s »

Has anyone ever created an app that converts a jpeg screenshot to a terrain map for BA?

Light greens to grass terrain, Dark greens to forest, Blues to water, Yellows to fields, Browns to ploughed fields, Whites or greys or reds to urban open ground, etc... Doesn't need to be perfect, but just something that would let us quickly take a Google Maps satellite view, so we could then enhance the basic conversion and populate it with objects.
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Re: Jpeg screenshot to map converter?

Post by pipfromslitherine »

Hmmm - not sure it would really be doable. There is no way for a script to grab a data file and interogate it.

Cheers

Pip
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Jpeg screenshot to map converter?

Post by GottaLove88s »

I guess it would need some sort of image processing to run a "mosaic" transformation, to simplify a google maps screen capture into X by Y tiles, with colour determined by the dominant colour for each tile. Then it would have to assign a conversion colour, eg. blue for water, green for grass, white/red for urban, to each of the "mosaic-ed" tiles. That becomes the base for a BA map... Suddenly massive maps become a whole lot easier :-) I suspect it's not easy tho...
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Richcat
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 219
Joined: Sun Nov 07, 2010 10:09 pm

Re: Jpeg screenshot to map converter?

Post by Richcat »

Just a thought I know its not a jepg to map converter - but have you come across Amaris randon map maker https://sites.google.com/site/bbcbaamar ... dom-plugin, he also has a section on how he makes maps.
Last edited by Richcat on Fri Jul 27, 2012 12:28 pm, edited 1 time in total.
Cheers
Richcat
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Jpeg screenshot to map converter?

Post by GottaLove88s »

Thanks Richcat, Wow, that's really handy. Sensible advice on how to create maps too. Great link! :-)
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Post Reply

Return to “Battle Academy : Modders Corner ”