View Single Post
  #202  
Old 06-15-2016, 09:41 AM
sniperton sniperton is offline
Approved Member
 
Join Date: Mar 2011
Posts: 253
Default

Quote:
Originally Posted by Pursuivant View Post
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.

Last edited by sniperton; 06-15-2016 at 12:50 PM.
Reply With Quote