Quote:
Originally Posted by Pursuivant
Since on just about every map roads are lighter in color than the surrounding terrain, the "color picker" selects adjacent pixels of "road color" and plots a line based on that info.
|
Yes, something like that would be the easiest way as far as ground units are concerned. All the more so, as maps are generated from a set of greyscale images, where the 'tile map' actually uses a brighter shade to specify tiles with roads. So summer and winter maps are all the same in this respect. Nevertheless, the tile map is a low resolution image, so keeping
on the road could not be guaranteed that way, unless combined with bezier curve calculations between waypoints.
Now it works like you go from A to B in a straight line, there you turn for C, and go from B to C in a straight line again. All three waypoints are specified in the mis file. But with A, B, and C we also have all the coordinates for a bezier curve between A and C. All you need is to add the info that B is only a virtual coordinate to be used by the plotting algorithm.