Terraform your UK Route in 5 Easy Steps [using DEM data]

The MSTS 1 Route Editor can be a beast to use, but it's capable of some amazing results, here you can talk with the wizards that are building some of the fantastic routes available and learn how to make your own.

Moderator: Moderators

Locked
User avatar
LucaZone
vCTRL Developer
Posts: 4312
Joined: Sat Aug 24, 2002 9:35 pm
Location: Only in boxes of Special K
Contact:

Terraform your UK Route in 5 Easy Steps [using DEM data]

Post by LucaZone »

Terraform your UK Route in 5 Easy Steps [using DEM data]
By LucaZone



1] Getting the data u need
Ok so first off you need to know where your route is in the UK, to be able to choose the right DEM files to download. To find out, simply download the map in the UKT file library that shows the UK in grid form and indicates the long/lat lines. Provided very kindly by mdanie

UK 1 degree map grid for 90M DEM Route Builders

From that map you can then see roughly what long/lat numbers you need to look for to get the landscape relating to your route.

The actual 90m projection data can be found here :: SRTM FTP server

Simply click on the link near the bottom of the page that says Eurasia (the continent of Europe). This then brings up links to download all the 1 degree blocks of landscape for the whole of Europe. The files you will be looking for to make a route in the UK, will be in the region of N48 > N58 and W006 > E002 (W 6 5 4 3 2 1 0 1 2 E). So for example to get Liverpool you want to find the file named N53W002.hgt.zip.

2] Downloaded the files, now what?
You will notice that the files you download are ZIP files, so you will need to open them up and extract the files in them. Make sure if you need to download more than one file, to put all the hgt files from inside the zip's into the same folder. Will make things alot easier later.

Once you have all the files you think you need, and they are all unzipped, you will probably see they are all .hgt files. What you suppose to do with these then? Well its unlikely you will have anything that can open them, and they are still a way off being able to make MSTS landscape. So right now we need a program called 3Dem.

Click here = 3Dem v18.2
then click 'Download 3Dem'. Then on the next page, navigate and click 'Download Now', which is next to 'Get this on CD'

Now i know i said this was easy, and yet im seemingly writing alot, well its just so that im making it as obvious as possible, so that its easy. ok :)

Now once youve got 3Dem downloaded and installed, you can go ahead and open it up. May look confusing but that doesnt matter. All you have to do is 'Load Terrain Model' from the file menu, and select the second option down on the left side. Notice it says .hgt. file type :) This is where you navigate to the folder you extracted all the hgt files into. Simply bring one up and you will find out what that file looks like in graphical terms.

3] Converting the files for use
Now that you have the hgt file open, DONT DO ANYTHING, except bring the file menu back up and click Save GeoTiff DEM. When doing this you will be prompted to give a name, where i simply use the same name it was called as a hgt file. That way i can track the same file in multi-formats if any problems come up.

Repeat this for all the HGT files you have downloaded that you think you need, and thats about it for 3Dem. Thats all its for. Opening one format so you can save it as another.

4] Creating MSTS Terrain in DEMEX
This is where the fun starts and things begin to look exciting.

To take these new 'GeoTiff' files you just created and make them into a 3d landscape in Microsoft Train Simulator we need one other program called 'DEMEX'. This program takes the GeoTiff and works with MSTS to create the landscape for your route. :)

Get DEMEX from here = Digital Rails.

Once on the site, find the products, and then the tools section. From there you want to select DEMEX, and then download the 'Evaluation' version. This is because its freeware, and although not all the functionality is available, you can complete what we need. (if you wish to have access to all features without any time limit, DEMEX can be purchased for $20 off the same site)


This is where a little effort is needed in the process of creating landscape. Now although DEMEX will be doing all the leg work and turning the flat pool table land into glorious rolling hills, before it can do that it needs a route and more specifically 'world tiles' to work with. So at this point you need to go into the Route Geometry Editor from the Train Simulator default tools, and select the land / tiles that your route is going to run on.

Sadly as this tutorial is not about creating route tiles, but about terraforming (making the landscape on them), im not going to go through setting up the route, and getting those world tiles. There are enough other helping hands out there that cover it so if you dont know, this is where you go find out :)


5]I've got the route, the tiles, the landscape data, now what about my hills!
Ok so lets open up DEMEX. A blue screen and lots of greyed buttons. First things first before you get any landscape data, you need your route in there. Go to File and then 'Select Route'. At which point your given only the route folders in MSTS to choose from. This makes it very easy, and all you have to do is click on the one thats yours. If however you cant see the route folders, simply click 'select manually' and you can navigate through your computer until you get the route folder from MSTS.

Once youve selected your route folder and pressed OK, up in that blue screen comes all the tiles that you seleted in RGE laid out at a funny angle. Now its not really that important why they are angled so i wont go into it.

What we now need to do is get some data that covers those tiles. So go to File and this time 'Open'. navigate to the folder that contains all the files you saved in 3Dem. the GeoTiff's. Highlight one and click OK. This then loads the DEM data onto the screen, in a position that is relative the tiles you picked in RGE, as well as its global position on the planet. Denoted by the long/lat of the file name. Confusing, but it doesnt matter. What matters is that hopefully if you picked the right tiles in RGE, the grey scale image that youve now loaded into DEMEX falls underneath those tiles.

If all the tiles on your route are now backed by the grey image showing the landscape, only one step further remains. Telling DEMEX to turn the tiles on that image into MSTS terrain.

But if they dont, then well we need to get the other images in that you downloaded and converted. To do this, we want to merge the images together. If you try and open another image, it will disguard the first and only show the second. To get both up, we choose File and then 'Merge DEM'. You will then be asked to select another image from the same folder. If the numbers are next to each other, chances are the image when it loads in will sit next to the first image we opened up.

Repeat this process until you have loaded all the files in that are needed to cover all the tiles on your route.

Once we have that done its time to get that terrain into MSTS. So make sure to check that all the tiles have little X's in them. Simply click 'All' from the line of buttons. Now go to the menu and choose Standard Terrain and then from the drop down menu click Create Route Terrain. A bit of loading takes place, and you will see 2 numbers, one rushing up and the other very high (dependant on the tiles in your route). This is DEMEX drawing the landscape on each tile. Once finished simply open up Route Editor, and view your lovely environment. Maybe press + or - to get a bit of shadow.

And thats it, when your happy doing this and everything in the route appears to be correct, you can go ahead and start laying track.

Terrain done!
Last edited by LucaZone on Tue Mar 15, 2005 11:34 pm, edited 4 times in total.
. . : :Simulating the UK's first dedicated high speed line for MSTS: : . .
Image
User avatar
LucaZone
vCTRL Developer
Posts: 4312
Joined: Sat Aug 24, 2002 9:35 pm
Location: Only in boxes of Special K
Contact:

Post by LucaZone »

Obvious thanks must go out to JohnCS for providing the base of links and information for this process to be possible. It has certainly vast;ly improved all UK routes now in production.

His initial thread and subsequent community discussion about this discovery can be found here = new DEM data source for Europe & Asia
. . : :Simulating the UK's first dedicated high speed line for MSTS: : . .
Image
JohnCS
Getting the hang of things now
Posts: 17
Joined: Sat Feb 08, 2003 12:16 am

Post by JohnCS »

Nice work there :D

One edit however: DEMEX now directly reads HGT files so the 3Dem step is no longer necessary.
User avatar
bpbill
Been on the forums for a while
Posts: 237
Joined: Sun Nov 23, 2003 9:05 pm

Post by bpbill »

Im no route builder, at least not yet, but that was a good read and certainly will have to revisit if I ever want to delve into route building :)

Deserves a sticky IMO.
User avatar
longbow
Very Active Forum Member
Posts: 3608
Joined: Mon Mar 18, 2002 12:00 am
Location: Noosa, Australia
Contact:

Post by longbow »

Thanks for this tutorial - everything is very clear and I had my entire route terraformed starting from scratch in an hour or two. Only problem eas I couldn't reach the SRTM ftp server using your link so I used this:

http://edcsgs9.cr.usgs.gov/pub/data/srtm/Eurasia/

Quick impressions of results vs terraforming using TSTF:

Pros: very quick, no terracing, holes or spikes.
Cons: lack of detail, low resolution especially obvious at shorelines, ridges and narrow valleys.

One option seems to be to use TSTF contour tracing along the tracks and shorelines and DEMEX for distant contours, if that's possible. I just need to figure out how to synchronise the two.
User avatar
jains15
Established Forum Member
Posts: 448
Joined: Fri May 24, 2002 12:00 am
Location: Front row of the mosh pit

Post by jains15 »

longbow wrote:Cons: lack of detail, low resolution especially obvious at shorelines, ridges and narrow valleys.
duly noted.

however the data is free, and once its downloaded it takes longer to read LucaZone's tutorial than it takes to actually do. Within an hour of starting building my route, I had terrain done! its takes some route builders months to do this. Also, if you feel that it's not good enough you could always edit coastlines and such like using RE's tools.

So yes its low detail (due to low resolution) but this is made up for by the fact that it is free, easy and quick. For me, the first time i opened RE, i had lovely terrain. No more snooker table landscape! 8)
New XXXXXXX route under construction... ;)

<IMG width="251" height="77" SRC="http://www.atomic-album.com/showPic.php ... vsmall.jpg">
The original MG nut
User avatar
johny
Very Active Forum Member
Posts: 2609
Joined: Fri Dec 07, 2001 12:00 am
Location: N. Warks, UK.

Post by johny »

Microdem also reads the .hgt files, you can then convert to the xyz files required for use in TSTools.

John
User avatar
spinemaligna
Established Forum Member
Posts: 304
Joined: Thu Jan 17, 2002 12:00 am
Location: East Kilbride via Nottingham and Hackney

Post by spinemaligna »

Following on from Johns post above. Once you have the terrain in TsTools you can then use all the functions that program has to futher enhance your topography. The trackbed tool will cut gorges and the contour tool can be used to define shorelines etc. So you can use the 90M dem to provide a backcloth and how much further fine detail you add is up to the individual.

Ross
Timcourt1
MidEast UK Author
Posts: 2552
Joined: Mon Dec 03, 2001 12:00 am
Location: Michigan USA
Contact:

Post by Timcourt1 »

Nice one, this should make life easier for the terraforming stages of any route, Originally Mideast was demmed and its a nightmare to do!

Nice to have this info!

Thank you!
"No News is good news" - Lack of Morale Officer
User avatar
davidaward
Very Active Forum Member
Posts: 3593
Joined: Wed Oct 01, 2003 9:02 am
Location: Liverpool
Contact:

Post by davidaward »

DEM is probably the greatest advance we have seen in ease of route building:D :D
User avatar
pepsipowell
Well Established Forum Member
Posts: 896
Joined: Thu Apr 10, 2003 8:07 am
Location: skiing! (probably)

Post by pepsipowell »

Excellent tutorial Lucazone :) - should this thread be made a sticky?

Jonathan 8)
Last edited by the ghost of Christmas future on 25 Dec 2054 22:06; edited 13 times in total
User avatar
tony25
Been on the forums for a while
Posts: 160
Joined: Sat Jan 12, 2002 12:00 am
Location: Port Talbot, South Wales

Post by tony25 »

Thanks for that post, Lucaszone!
I'm very tempted to restart my first route that i abandoned 12 months ago, after a major hard drive crash wiped out 3 months of hand drawn contours for my entire South Wales coastline from Swansea to Severn Tunnel Junction! :(
Before i decide if i'll start my project again, can someone please kindly post a picture of some landscape terraformed using Lucazone's tutorial? Please?
TONY25
Image
User avatar
allypally
Very Active Forum Member
Posts: 6519
Joined: Thu Aug 22, 2002 2:28 pm
Location: West Midlands

Post by allypally »

omg what an excellent tutorial. im going to build a route(it is only smallish, not much to do on it since it runs through countryside most of the time), Wolverhmapton to Shrewsbury. would like to do birmingham, but i couldnt handle the tracjking. thanks so much luca :D
cgood124
Established Forum Member
Posts: 387
Joined: Tue Jan 21, 2003 6:06 pm
Location: On the Heart of the Wessex Mainline

Post by cgood124 »

very impressive and helpful it got my route done in about 5 or 10 mins
(yes i am doing a route)

thanks Luca great guide
Working on Wessex area for MSTS
User avatar
LucaZone
vCTRL Developer
Posts: 4312
Joined: Sat Aug 24, 2002 9:35 pm
Location: Only in boxes of Special K
Contact:

Post by LucaZone »

Can i just add, to all those who laughed in my face when i said terraforming with this method ment you could have hundreds of miles done in no time at all.

I told u so.
. . : :Simulating the UK's first dedicated high speed line for MSTS: : . .
Image
Locked

Return to “[MSTS1] Route Building”