HGT data into Sim

Use the simple World Editor tool and other advanced developer tools to create your own world, whether it's fictional or based on a real world location. You'll find help and advice here.

Moderator: Moderators

Locked
Sly401
Very Active Forum Member
Posts: 1860
Joined: Thu Apr 07, 2005 9:48 am
Contact:

HGT data into Sim

Post by Sly401 »

Hi Guys

Quick one... I have set up my route, and blueprints, markers etc

Now I want to get the DEM data into the route

I have downloaded the data in HGT format... how does it go in the terrain folder?
and if its converted what with ?
and to what?

Thanks Sly
godabyc
Getting the hang of things now
Posts: 70
Joined: Tue Feb 12, 2008 10:09 pm

Re: HGT data into Sim

Post by godabyc »

HGT is the correct format and the files need to go in the folder ?\Rail Simulator\DEM\SRTM, which I think you need to create iirc.
Sly401
Very Active Forum Member
Posts: 1860
Joined: Thu Apr 07, 2005 9:48 am
Contact:

Re: HGT data into Sim

Post by Sly401 »

Thanks for the reply

However it doesn't seem right somehow :D

In any default Route
There is a terrain folder that has .bin files.. nowhere are there any hgt files

It seems logical to presume that I have to convert my hgt data and add it to a terrain folder within my route.

conformation of this and a quick hint at the method to convert is what I need.. urgently :D

I have scanned the dev docs and can find no mention of converting hgt to bin..

Sly

Please anyone :D
User avatar
karma99
Very Active Forum Member
Posts: 2329
Joined: Wed Oct 17, 2007 8:21 pm
Location: Portsmouth, UK

Re: HGT data into Sim

Post by karma99 »

The hgt files are used by the editor to edit the default terrain, so the hgt's are just used once and then not needed by the route, so no need to convert them or even keep them once you've created your terrain.

Add the files as listed above to the correct folder, go into your route, position yourself where you need the terrain (I would advice putting the large grid overlay on) and press T. If you are in the right place and the hgt files are for the correct area, the terrain will LEAP into it's correct shape.. and you'll think COOOOL!
If it doesn't work, post back with what you did.. I had some trouble getting this stuff to work and might be able to help.
If not someone clever will be able to! :)

Edit: You need to be in object or geometry edit mode, not scenario or oddly scenery edit modes!
Image
Links: Shop <> Blog <> Facebook
Sly401
Very Active Forum Member
Posts: 1860
Joined: Thu Apr 07, 2005 9:48 am
Contact:

Re: HGT data into Sim

Post by Sly401 »

Thanks Pete

will try it now and see what the result is :D

Sly
Sly401
Very Active Forum Member
Posts: 1860
Joined: Thu Apr 07, 2005 9:48 am
Contact:

Re: HGT data into Sim

Post by Sly401 »

Hi Pete

I can't believe that i can't find this stuff written down anywhere !

Right from the begining

I have A developer folder "Sly" in Rail Simulator\ Source
........An Addon Folder "Midland"
A route Markers folder with a csv and named Route Marker Blueprint
A route folder in which I have a route blueprint

Should the route marker folder be in the route folder or visa versa or side by side?
What is the folder structure for the terrain folders (in Source\Developer\Addon)

Anyone got a screenshot of the source \developer tree to create a new route?

Maybe I am being thick.. lol :D

Sly
User avatar
karma99
Very Active Forum Member
Posts: 2329
Joined: Wed Oct 17, 2007 8:21 pm
Location: Portsmouth, UK

Re: HGT data into Sim

Post by karma99 »

Don't worry it took me 2 whole evenings to figure out how to get started! However once that's done I'm pleased to say RS is an absolute breeze to build in :D
I know you know some stuff about this having seen your excellent loco but I'll put it in "simple speak" so hopefully it's useful to others as well :)

Ok, Question 1.. do you have Mike Simpson's TMB tools? If not, get them :P
I got most of my help from the help files that he provides, coupled with some searching on here and some guesswork.

Sounds like you have the folders set up correctly:
Source
Developer
Sly
Midland

In Midland use Mike's tool to create the correct folders if you haven't already.
Put your route marker stuff into the RouteMarkers folder
Put your route blueprint in the TemplateRoutes folder

Fire up Kuju's Asset Editor (make sure you're in windowed mode, use the Test button on the launcher to make sure your screen res is acceptable).
In here you will see your file structure again. Navigate to the above 2 folders and open them up. Inside here you will see the blueprints, if you double click on one it will load the data into the editor so you can see it.
At the top you will now see the Export button. This is the magic button that takes the basic text xml, csv's etc and turns them into Kuju edible bins! Press it! Do the same for the other blueprints. If you get any errors in the box at the bottom, see if you can figure what's wrong from the text.. hint, when you list the csv file in marker xml blueprints don't add .csv on the end, the blueprint assumes this anyway.
Now if you check in the RailSimulator/Assets folder the bin files will have been added into the "live" folders (these mimic the same structure as the source folders) so RS can see them. Fire up RS (having closed the Asset Editor), create a new route (the blueprint you made should appear as an option), navigate to your start point and if you have the DEM data for the right place, press T and it will leap up around you.

A few other tips if you didn't use Mike's tools to create the blueprint...
Are your lat and long in the route blueprint correct? You don't want any 0,0's around!
Are the additional settings in the route blueprint correct? ie, aimed at the Kuju files for weather, timeofday, environment, etc.. my advice here is use Mike's tool, it does it ALL for you :)
Image
Links: Shop <> Blog <> Facebook
User avatar
balloonist2009
Been on the forums for a while
Posts: 271
Joined: Sun Jan 13, 2008 7:55 pm
Location: chippenham wilts
Contact:

Re: HGT data into Sim

Post by balloonist2009 »

this data does not match the long\lat of your route ie hills in the way and to change the hight will take a long time to get it right
GWML West Didcot Parkway To Bristol TM Via Bristol Parkway
User avatar
karma99
Very Active Forum Member
Posts: 2329
Joined: Wed Oct 17, 2007 8:21 pm
Location: Portsmouth, UK

Re: HGT data into Sim

Post by karma99 »

balloonist2009 wrote:this data does not match the long\lat of your route ie hills in the way and to change the hight will take a long time to get it right
You mean the DEM data you imported wasn't correct for where you wanted?
The DEM data I got was spot on to my lat/long points I've been creating in Google Earth... so spot on that when I misread my co-ordinates and tried to create the terrain 1 mile S of where I wanted (note to self decimal is not the same is minutes and degrees!) I spent an evening trying to import Portsmouth Harbour.. which being the sea is rather flat!
Once I sorted out MY mistake it's bang on.
Image
Links: Shop <> Blog <> Facebook
Sly401
Very Active Forum Member
Posts: 1860
Joined: Thu Apr 07, 2005 9:48 am
Contact:

Re: HGT data into Sim

Post by Sly401 »

Hi Guys


Thanks for the Help... success :D

The bit I have been struggling with was where to put the DEM data. nearly went back to making loco's :D

I eventually found that I had to create the new folders DEM \ SRTM and put the htg in there... still have not seen that info in any of the guides

But good news .. it is impressive to see the terrain formed before your eyes and yep its instantly recognizable..

Can you get higher res HTG data ? ( i used Nasa)
Thanks Again

Sly
godabyc
Getting the hang of things now
Posts: 70
Joined: Tue Feb 12, 2008 10:09 pm

Re: HGT data into Sim

Post by godabyc »

Sly401 wrote: The bit I have been struggling with was where to put the DEM data. nearly went back to making loco's :D
Damn, we should have kept our mouths shut :D
Sly401 wrote: Can you get higher res HTG data ? ( i used Nasa)
I think higher res data is only available for North America, although would love to be proved wrong.
User avatar
karma99
Very Active Forum Member
Posts: 2329
Joined: Wed Oct 17, 2007 8:21 pm
Location: Portsmouth, UK

Re: HGT data into Sim

Post by karma99 »

Sly401 wrote: nearly went back to making loco's :D
Nooooooooooooooooo! What have we done! :cry:

Glad it' worked for you mate :D
Pretty sure godabyc is right, I've seen North America at 1m resolution but only 3m for the UK... if only we had a space programme :)
Image
Links: Shop <> Blog <> Facebook
Sly401
Very Active Forum Member
Posts: 1860
Joined: Thu Apr 07, 2005 9:48 am
Contact:

Re: HGT data into Sim

Post by Sly401 »

HaHa I do have loco projects on the go but I need a break every now and then.. some relaxation haha crating routes.

I am sure there is some data used in flight sims that is higher res.. need to investigate the compatablity :D

Sly
Locked

Return to “[RS] Route Building”