04.05.2014, 00:01
My MapAndreas.cpp (I made loading into memory on init, and added function for more precise Z calculation).
Whole ZMap loads into memory in ~1 second.
Function "GetAverageZ" returns quite accurate values. (I found someone similar function, but it's broken, so I decided to rewrite it again).
Example: (red balls are "laying" on the ground in straight line, coord. Z got by function GetAverageZ)
High resolution images are available on click.
http://pastebin.com/fkhFgq9u
Whole ZMap loads into memory in ~1 second.
Function "GetAverageZ" returns quite accurate values. (I found someone similar function, but it's broken, so I decided to rewrite it again).
Example: (red balls are "laying" on the ground in straight line, coord. Z got by function GetAverageZ)
High resolution images are available on click.
http://pastebin.com/fkhFgq9u