So my challenge is to create an online map with an height map of Chernarus with a color pallete representing the terrain height. Anyone could open the map and in 5 seconds look for the terrain changes.
So far I've got this map and it's obviously not perfect http://imgur.com/6sZAd
Then I wanted to create an API for retrieving terrain height giving a point (x, y). I would use an existing online map such as http://dayzdb.com/map and edit it to include the z coordinate in the lower bar (the bar with x y coordinates)
I've extracted Chernarus terrain data from pbo files and now I have a file with x y z coordinates for the entire Chernarus. You can download it here http://www.mirrorupl...ernarus_xyz.rar
XYZ File contents (http://www.mirrorupload.net/file/1KNFEC3R/chernarus_xyz.rar):
Each line contains height information for the terrain at a given X and Y coordinate.
2048x2048 points across 15360m X and Y. First point starts at X=0 Y=0 Z=-51.600, second one is X=7,5 Y=0 Z=-51.660 and so on (the Z coordinate is the variable, X and Y always increment by 1, obviously). The distance between each point in a vertical or horizontal line is 7,5 meters (10,60m diagonally), so 2048 points x 7,5m = 15360m = 15,36km for the X and Y coordinate.
X=0 Y=0 represents the bottom left corner, x=2048 Y=2048 represents the top right
How I did it:
It was not directly accessible from the pbo. It was hard to find but from the chernarus.PBO I got chernarus.wrp, then I convert the WRP file to 8WVR (another kind of wrp), then I used a program called Roller to extract RAW xyz coordinates from the terrain. With that XYZ file you can open it in a program called L3DT and do whatever you want.
If you want to continue my work, keep going and post updates, otherwise please tell me the best way to store all these points online to build a simple API to retrieve the Z coordinate giving the X and Y one.
Height map w/ cities and roads & shadow (2048x2048px)
Plain height map w/ shadow (4076x3926px)
Plain height map (gray scale shadow) (2048x2048px)
Plain Height map 1 (830x830px)
Plain Height map 2 (4092x3944px)
Roads & Cities (7236x5965px)
Contour Lines (7205x5975px)
Overall 3D terrain
Edited by andrepcg, 18 July 2012 - 08:01 PM.