Wednesday, 23 March 2016

Maps from BMP using FPGE

The rough steps:
Prepare BMP file using special colors
The each title on map is around 5 pixels. The colors:
{  0,   0, 127}, //dark blue ...  ocean
{  0, 127,   0}, //dark green ... forest
{255, 255, 255}, //white ........ mountains
{255,   0,   0}, //bright red ... road
{  0,   0, 255}, //bright blue ...river
{255, 255,   0}, //yellow ........desert
{  0, 255,   0}, //light green ...clear
{127, 127,   0}, //dark yellow....rough
{127, 127, 127}, //dark grey  ....city
{127,   0,   0}, //dark red   ....bocage
{  0, 127, 127}, //deep cyan  ....swamp

You can use BMP with 8, 24, 32 bites per pixel only.

Run FPGE and use Tools->BMP to Map from menu options



One will get something like this:

Run Tools->Make Tiles


Check layers: terrain and names are all zeros:

Once can choose to fix this using Tools->Generate Layers


The map could be further improved by randomizing tiles:
And the result


 Now is the time to manually fix the map. The Generate Layers step can also be run later. Check help for some more options (shortcut h).


No comments:

Post a Comment