Dev Tutorial [Editor] Digital Elevation Model (DEM) Data (1 Viewer)

Road-hog123

An Orange Bus
Administrator
UKDT
Founding Member
1,906
2,709
Since Omsi 2, it has been possible to import DEM data into Omsi maps to allow for more realistic real-world maps with nice gradients and hills that aren't isolated on a flat map. For the DEM data to work, your map must be using real-world coordinates.

To be able to use DEM data, you first have to download the files for your area. Now, there are several places you can get them from, both free and paid. The data I choose to use is from NASA's SRTM (or, if you're in the USA, you can get higher definition imagery from the same source). This data is from the 'Shuttle Radar Topography Mission' that NASA carried out in February 2000 using the Space Shuttle Endeavour and this 60 metre pole with a radar on the end of it:
0a5ab93aa56264fb417475def3182133.jpeg

What this means is that although this data is some of the best out there (I don't know of any free data that's better), any changes since February 2000 won't be shown; the height data is sampled about every 30 metres, so details less than that size won't be seen (particularly steep slopes like embankments or cuttings for example); and because it's radar reflection from orbit, things like trees and buildings prevent the radar seeing the ground and result in falsely high readings and even February 2000's weather can affect the accuracy. You shouldn't rely on this data being perfect, but it significantly reduces the amount of work that has to be done to the terrain to make it look right.

Now the next thing you'll need in order to download your data is to know which file(s) you want. For Europe you'll want to select "Eurasia" and then download the correct file(s) based on the coordinates of the location. If for example I wanted to download the data for 51.389500, 30.099139, I'd want N51E030.hgt and if I wanted -22.899500, -43.209000, I'd want S23W044.hgt (that is to say that you'd round down for places South of the Equator or West of the Meridian, the values are prefixed with S and W and still rounded down, but then converted to positive after rounding down).

Depending on the length of your route and how close it is to file boundaries, you may find you have to get more than one file. It's quite obvious if you run off the edge of a DEM file as there will be a cliff in the middle of a tile down to 0 height. The downloaded files should be placed in \OMSI 2\DEMImport\SRTM\Data\.

From there you can go into the Editor onto your map and select the "Tile" tab. There is then a "DEM" section from where you can select the importer DLL in the drop-down (it's not pre-selected for some reason) and click "Run curr. Tile" to import DEM for the tile you're on, noting that it will erase all terrain extant on the tile to replace it with DEM.
upload_2017-1-15_12-15-34.png
 
Last edited:

Advertisement

Raymond Souster

Banned Member
13
4
Hi guys , I am trying to get Finsbury park into the game but having no luck what so ever.

the google map coordinates are :

51.565913, -0.106668

in game editor it shows as N51 W006

So i have in my data folder , N51W005 , N51W006,N51W008 (There is no N51W007) in the DEM database but still when i press on the "Run current tile" it don't effect anything or change the tile and wondering what files i do need since i seem to be selecting the wrong files

Kind regards

Raymond
 

WTR33660

Active Member
300
50
22
Should the terrain be set in omsi editor automatically, or do I still need to do it my self?
 

Zinx

New Member
6
3
18
Having an issue the same as Raymond, tried downloading files surround the area of N55 although no terrain change is happening, a little help would be cool ;)
 

Road-hog123

An Orange Bus
Administrator
UKDT
Founding Member
1,906
2,709
Two things:
  1. Make sure you are loading the correct map - the conversion to world coordinates creates a copy of your map, so you need to ensure you load that and not your original map.
  2. You might have converted the coordinates to filename incorrectly - without knowing what your coordinates are I can't tell you which file you need. Make sure you're rounding towards negative infinity, not 0, and that you've got your directions round the right way.
 

Zinx

New Member
6
3
18
basically, my coordinates are
Lat: 55.857984
Long: -4.253393

I also downloaded "N55E051.hgt" which did not work either..
 

Advertisement

Zinx

New Member
6
3
18
hey, just wondering, how does it become +55, -5? confused me a little there

Edit: nevermind i read your reply wrong..

Update: i tried this with the exact info you passed, didn't seem to work..
 
Last edited:

LT586

Living in the editor
1,015
1,067
Hi all
Not sure if this thread is still going, with the current situation I hope there is a response as there's no excuse to be out! lol

Jokes aside, if I add DEM data to an already populated tile does that work? So for example I've got some streets, pavements, bus stops and such down but I am working on a map which has a lot of hills and distant hills as well.

The problem I have with OMSI at the minute is it just doesn't play ball with it, it would be easier to know what the terrain heights are and we level the map ourselves, is there any way to find out this data?
 

BlueOrange

Founder of Masterswitch Studios
Masterswitch Studios
435
2,847
20
Jokes aside, if I add DEM data to an already populated tile does that work?
If the map has already been converted to real world coordinates, I think you can, but the terrain will likely be higher than what the objects are
 
  • Like
Reactions: LT586

szpHD

Ur going AE!!!
123
270
Hi all
Not sure if this thread is still going, with the current situation I hope there is a response as there's no excuse to be out! lol

Jokes aside, if I add DEM data to an already populated tile does that work? So for example I've got some streets, pavements, bus stops and such down but I am working on a map which has a lot of hills and distant hills as well.

The problem I have with OMSI at the minute is it just doesn't play ball with it, it would be easier to know what the terrain heights are and we level the map ourselves, is there any way to find out this data?
This will work, but you will need to change the height of the objects and all that.
 
  • Like
Reactions: LT586

Alex Davies

Well-Known Member
317
117
Two things:
  1. Make sure you are loading the correct map - the conversion to world coordinates creates a copy of your map, so you need to ensure you load that and not your original map.
  2. You might have converted the coordinates to filename incorrectly - without knowing what your coordinates are I can't tell you which file you need. Make sure you're rounding towards negative infinity, not 0, and that you've got your directions round the right way.
How can I make an elevated section of map with retaining wall without going past the wall using the terrain tool?
 

whistlehead

Alias Mr Hackenbacker
Staff Team Leader
UKDT
Premium Subscriber
Founding Member
1,582
2,909
How can I make an elevated section of map with retaining wall without going past the wall using the terrain tool?
You can't, due to the resolution of the terrain mesh.

The workaround is to raise the terrain up just behind the retaining wall and to use terrain splines to fill in the gap.
 
  • Like
Reactions: Alex Davies

Advertisement

liampidwell

New Member
1
0
I've managed to get DEM data in and my tiles are all the right height etc, is there an easy way to make my road splines 'climb' those hills? Thanks
 

Emmanuel Conteh

I’m building a map
62
96
Works perfectly, one thing I don't actually know how to do yet is Align the objects to the terrains, or would I have to adjust them myself?
 

LT586

Living in the editor
1,015
1,067
I didn’t do this, so will be a future thing now I know how to use the editor. I hope this thread is still here by time I need it
 

Members viewing Thread (Users: 0, Guests: 1)