Jump to content

Back to dayzgame.com
Photo

Chernarus Height Map

height chernarus terrain map

  • Please log in to reply
55 replies to this topic

#1 andrepcg

andrepcg

    Scavenger

  • Members
  • PipPip
  • 11 posts

Posted 16 July 2012 - 04:48 PM

Since I started playing DayZ, I wanted learn the terrain, the best spots to snipe and camp. Now we have dozens of online maps to choose and thei have contour lines but it's difficult to read directly from it, you have to follow the lines to see if the terrain is at the same height.

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)
Posted Image

Plain height map w/ shadow (4076x3926px)
Posted Image

Plain height map (gray scale shadow) (2048x2048px)
Posted Image


Plain Height map 1 (830x830px)
Posted Image

Plain Height map 2 (4092x3944px)
Posted Image


Roads & Cities (7236x5965px)
Posted Image

Contour Lines (7205x5975px)
Posted Image

Overall 3D terrain
Posted Image

Edited by andrepcg, 18 July 2012 - 08:01 PM.

  • bebonzy09, Dsi1, hobbicon and 28 others gave their beans

#2 Dead McDekh

Dead McDekh

    Helicopter Hunter

  • Members
  • PipPipPipPip
  • 67 posts
  • LocationHills Northeast of Cherno

Posted 16 July 2012 - 05:04 PM

Impressive work sir.
Height of item in inches x 27.8 (25.4)/Mils read = Distance to target in yards (meters)

#3 joemiken

joemiken

    Helicopter Hunter

  • Members
  • PipPipPipPip
  • 86 posts

Posted 16 July 2012 - 05:13 PM

I'm assuming you digitized the contour lines on the map to create the color key? I used to do a lot of 3D terrain modeling and had thought about doing something very similar.
  • FoulMouth gave their beans

#4 andrepcg

andrepcg

    Scavenger

  • Members
  • PipPip
  • 11 posts

Posted 16 July 2012 - 05:20 PM

I'm assuming you digitized the contour lines on the map to create the color key? I used to do a lot of 3D terrain modeling and had thought about doing something very similar.


no. I extracted the terrain height data from the PBO files from ArmA folder. The file type is called .xyz and it contains raw information for each point. I put the xyz file for download, look at the post.

I don't know very much about terrain modelling and I don't know the best programs to export color ramps like this one. I used MicroDem but it's buggy as well in Win7 and a lot of functions just crash the program...

Edited by andrepcg, 16 July 2012 - 05:22 PM.


#5 SKuDD3r

SKuDD3r

    Helicopter Hunter

  • Members
  • PipPipPipPip
  • 96 posts

Posted 16 July 2012 - 05:28 PM

Google maps API and map markers. Use overlays to add color-mapping

Edited by SKuDD3r, 16 July 2012 - 05:29 PM.


#6 andrepcg

andrepcg

    Scavenger

  • Members
  • PipPip
  • 11 posts

Posted 17 July 2012 - 09:46 PM

http://www.reddit.co...d_wo_roads_and/
  • Leeu gave their beans

#7 DemonGroover

DemonGroover

    Bean King

  • DayZ Forum Team
  • PipPipPipPipPipPip
  • 5733 posts
  • LocationAustralia

Posted 17 July 2012 - 09:51 PM

Nice - i do thias sort of thing for my job so i might have a play with the data when i get a chance.

Posted Image


#8 *=LP=*Cpt.Kawa

*=LP=*Cpt.Kawa

    Survivor

  • Members
  • PipPipPipPipPip
  • 111 posts

Posted 17 July 2012 - 10:02 PM

Really nice work. Maybe don't make the 0-altitude blue, as it looks right now that cherno is underwater. And putting your heights on a high-res map would also be helpful.

Edited by *=LP=*Cpt.Kawa, 17 July 2012 - 10:03 PM.

Lost Platoon
Dis Iratis Natus

www.lost-platoon.be

#9 Xaiier

Xaiier

    Helicopter Hunter

  • Members
  • PipPipPipPip
  • 63 posts

Posted 17 July 2012 - 10:15 PM

Good job, you have prompted my first post on this forums...

Anyways, I actually did a similar thing to you recently, pulled the height-map out of the .pbo and loaded it into a 3d imaging software then overlaid a normal map so I could look around the map in 3d. I am curious though, how did you get so much detail out of the height-map? I opened the chernarus file in one of the editing programs and then used it to save a vector image of the terrain it showed me, but it was utterly horrible quality wise compared to the actual shape. It worked enough for what I wanted, but I would like to know how to get the raw data. ^_^

#10 andrepcg

andrepcg

    Scavenger

  • Members
  • PipPip
  • 11 posts

Posted 17 July 2012 - 10:30 PM

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.

The guy from DayZDB said on Reddit that he might add the feature to display an height field overlay. He needs an higher resolution for it though.. I'm not the best guy working with this stuff (first time) but I managed to do a great job I think :P If you keep doing work around this, you have on the main post a link to the RAW XYZ file so you can work with RAW data from the terrain. :D

http://www.reddit.co...d_wo_roads_and/

Edited by andrepcg, 17 July 2012 - 10:30 PM.


#11 Xaiier

Xaiier

    Helicopter Hunter

  • Members
  • PipPipPipPip
  • 63 posts

Posted 17 July 2012 - 10:49 PM

Hmm...thats very interesting. I got rather irritated messing with all the strange file systems used so I kinda gave up on getting a super good image.

It will take me a bit to get the raw data sorted out, but I will try and see what I can come up with. Could prove very interesting...

#12 WoRtEx

WoRtEx

    Survivor

  • Members
  • PipPipPipPipPip
  • 372 posts

Posted 17 July 2012 - 11:36 PM

Hello, andrepcg. Mind if I add this map to my DayZ Mobile app's maps section? Credit will be given on About tab & under the map + a watermark on the map. Check my signature for more information.
== DayZ Guide for Android ==
VERSION 2.31 IS OUT! (8/15/12)

#13 andrepcg

andrepcg

    Scavenger

  • Members
  • PipPip
  • 11 posts

Posted 18 July 2012 - 04:25 AM

WoRtEx, of course you can ;)
  • WoRtEx gave their beans

#14 andrepcg

andrepcg

    Scavenger

  • Members
  • PipPip
  • 11 posts

Posted 18 July 2012 - 01:21 PM

Gray scale height map:

Posted Image
  • Leeu gave their beans

#15 Red_Sky

Red_Sky

    Survivor

  • Members
  • PipPipPipPipPip
  • 294 posts
  • LocationSouth Australia

Posted 18 July 2012 - 01:37 PM

Did you know the highest accessible point in Chernarus is the tower in Green Mount-
  • KoS and King of kong gave their beans

There's no hacking on counsoles. There's no piracy on counsoles.


#16 Xaiier

Xaiier

    Helicopter Hunter

  • Members
  • PipPipPipPip
  • 63 posts

Posted 18 July 2012 - 05:22 PM

So after some messing around, I was able to use MeshLab to save the point cloud as a .obj file, usable by most 3d programs. Loaded it into Maya, will work more on it later. :lol:

Posted Image
  • andrepcg, bogroll and Leeu gave their beans

#17 andrepcg

andrepcg

    Scavenger

  • Members
  • PipPip
  • 11 posts

Posted 18 July 2012 - 05:41 PM

It's good to see people working on this :D Everyone working with the terrain data please provide us updates :)

#18 DayZPvP.com

DayZPvP.com

    Bean King

  • Members
  • PipPipPipPipPipPip
  • 638 posts
  • LocationStary Sabor

Posted 18 July 2012 - 05:50 PM

I wrote about your heightmap here.

Thank you, it is very useful.

#19 andrepcg

andrepcg

    Scavenger

  • Members
  • PipPip
  • 11 posts

Posted 18 July 2012 - 08:02 PM

What I have so far in a small list

Height map w/ cities and roads & shadow (2048x2048px)
Posted Image

Plain height map w/ shadow (4076x3926px)
Posted Image

Plain height map (gray scale shadow) (2048x2048px)
Posted Image


Plain Height map 1 (830x830px)
Posted Image

Plain Height map 2 (4092x3944px)
Posted Image


Roads & Cities (7236x5965px)
Posted Image

Contour Lines (7205x5975px)
Posted Image

Overall 3D terrain
Posted Image
  • Leeu, DayZPvP.com, Xaiier and 2 others gave their beans

#20 DayZPvP.com

DayZPvP.com

    Bean King

  • Members
  • PipPipPipPipPipPip
  • 638 posts
  • LocationStary Sabor

Posted 18 July 2012 - 09:10 PM

Wow dude some detailed info there...

Now I just wonder how I can use it all.





Also tagged with one or more of these keywords: height, chernarus, terrain, map