Yesterday worked a bit on the thing again and finally took decision not to mess with minimap anymore and use the "ground_type" flag from map to actually build some usable minimap.
Works and looks pretty well:
Blue is water obviously. Green is field, gray are pavements, and darkgray roads.
I tried to find better method, but they are too slow.
This current one is fastest.
Tried to get average color for tiles, but its too slow, because of ~500 tiles loaded for map.
If not more.. But colors were much better but algorithm needs rewriting.
Maybe should make sheet of tiles and get average colors of that?
I have seen something like this done in one open source Delphi game. I even downloaded src from svn. But still i dont understand everything in it.
Editor src.
https://code.google.com/p/castlesand...k%2FKaM Editor
Bookmarks