Tutorial: Google Earth Decals in Bulk

Are you thinking about building your own route? or are you already in progress? Talk to the experts in here and find out the best way to do things!

Moderator: Moderators

Tutorial: Google Earth Decals in Bulk

Postby nobkins on Thu Sep 10, 2009 1:23 am

*** EDIT START ***
RWDecal, a tool that automates and simplifies decal creation has been released. This tool makes this tutorial only useful to those who still wish to make decals by hand. Visit http://www.rwdecal.co.uk for more details or take a look at this thread.
*** EDIT END ***

This is my first post to the forum but I have been loitering for a long time and have taken up an interest in route building since the release of Rail Works. I am working on a Route from York to Leeds and including the lines to Harrogate and Bradford.

This tutorial will show how to import many Google Earth (GE) images as a single decal into Rail Works. This saves time and removes the need for you to align multiple decals in Rail Works to cover larger Yards or Stations.

What you will need
  1. First of all you should read and understand the process of bringing in a single decal from GE into Rail Works described in the excellent tutorial by "moranb". This has been indispensable to me when I started out with GE decals.
  2. An image editing program that has the ability to resize images with out constraining their dimensions (allow distortions during resize)
  3. Google Earth
  4. Microsoft Image Composite Editor Free Download
  5. Rail Works Convert to ACE tool (or some other method of saving as an ACE). Free Download - at bottom of page
    ** EDIT START 26/June/2010 ** RS.com seem to be blocking linking to the download (comes up with 403 - Forbidden) so you have to go to the site and click the link your self! ** EDIT END **

What do I do?
The first thing to do is start GE and find the area you wish to capture. This is ideal for stations, yards or complex track areas but there is nothing to stop you doing this for anything. Once you have found the area you wish to import to Rail Works make sure that your compass is pointing direct to north (click the N in the compass control) draw a rectangle around it using the Polygon tool. Make sure you leave a little extra space around the area you want to capture.

Top Tip
Enable the "Grid" view in GE to make it easier to draw the straight lines you need for the rectangle.

Once you have you polygon measure the height and width in meters using the tape measure tool. Take a note of these as you will need these later.

Now navigate to the section you wish to capture first within your polygon and adjust the altitude as necessary so that enough detail is shown for what you require. I find an altitude of 200m works well. Also make sure that the camera is not tilted at all (you need to be looking straight down).

Now take a series of pictures using the "Save Image" option (CTRL + ALT + S) making sure each image overlaps by a reasonable amount and that you capture past the area of the polygon. We will crop the image later to the size of the polygon so you don't need to go much further.

Note
I have an issue with my GE where I must save each image twice before moving to the next one otherwise the saved image is corrupt. This is probably my machine but worth checking before you save 20 or 30 images.

Once you have the images saved you need to start the Microsoft Image Composite Editor (ICE) and then drag and drop either the whole folder or selected images onto the ICE window. The software will then attempt to automatically stitch the images together. Providing you have enough overlap on the images this seems to work reliably.

Once you have the stitched image crop it down to the size of the polygon using the crop option. Then Export the image as a PNG using the best quality possible.

Once you have the stitched image you need to resize it to a height and width that is 512, 1024, 2048, 4096. Now most decals are done at either 512x512 or 1024x1024. However as this is likely to be a large image and we want to keep all that fine detail we have captured adjust these figures as you see fit. I saved one at 4096x4096 with no problems. When I went to 819x8192 RWAce would not convert my image due to an out of memory message. Obviously to resize to a fixed size the image will become distorted. You don't need to worry about this.

Once you have your resized image saved as a PNG we need to convert it to an ACE. There are several ways of doing this but the easiest I have found is the RWACE tool. This is very easy to use.

Once you have your ace we need to make a blueprint to allow us to import this into Rail Works. This is described in detail in the tutorial by "moranb"

Once you have it imported open up Rail Works and you should have your decal ready to use.

Top Tip
Export some named markers from GE into Rail Works to allow you to position the decal accurately.
Last edited by nobkins on Sat Jun 26, 2010 7:41 am, edited 5 times in total.
nobkins
Established Forum Member
 
Posts: 372
Joined: Fri Jun 12, 2009 11:51 pm
Location: Leeds

Re: Tutorial: Google Earth Decals in Bulk

Postby chaddockdk on Thu Sep 10, 2009 9:35 am

This should be useful, but I was wondering: could this be done for any shape, and how big could you go up to?

thanks,

chaddockdk
RAILWORKS NEEDS MORE FREEWARE!
part of the chaddock engineering group - trying to make things easy!
chaddockdk
Well Established Forum Member
 
Posts: 532
Joined: Wed Oct 04, 2006 11:26 am
Location: I haven't decided yet...

Re: Tutorial: Google Earth Decals in Bulk

Postby nobkins on Thu Sep 10, 2009 12:40 pm

Not sure what you mean by any shape. If you are asking does it have to be a rectangle the answer is yes because the decal is a rectangle.

Maybe this screenshot will make things clearer.
Screen shot inside Railworks
Image
Click image for larger version

Original JPG before import into Railworks
Image
Click image for larger version

You can see that the decal is a rectangle but I did not bother to capture the complete area just the track with in the area. The decal is bigger than i can make fit on the screen even at the max height you an go to in Railworks. It covers an area of 1659.58m wide by 493.87m high (1.6km by 0.5km approx). Quite a large area. The complete shape is a rather flat U shape within the rectangle. The image does not show the level of detail very effectivly due to the fact that I am at max height in railworks. Close up it shows everything you need to lay track and signals and surrounding terrain textures buildings etc very effectively.

I think the only limitiations are that the bigger the decal the bigger the ace has to be. This decal was made up of 10 GoogleEarth image saves stiched together. The advantage of 1 decal stiched rather than 10 is time saving as you don't have to manually allign 10 decals in Railworks and accuracy. I placed some Named Markers from GE into Railworks and the max deviation of any marker between the decal and the desired location was only 16m. Most were spot on.

An error of 16m in a decal of 1.6km wide is pretty good. You could use it to map a whole line if you were willing to put the time in. In areas requiring less details you could take image from an increased height in GE. Say 500m. This would rapidly give you a decal of several KM with only a few images.

Hope this answers your question.
RWDecal: Simple automated decal creation for RailWorks and Rail Simulator
Trans Pennine Route for RailWorks
nobkins
Established Forum Member
 
Posts: 372
Joined: Fri Jun 12, 2009 11:51 pm
Location: Leeds

Re: Tutorial: Google Earth Decals in Bulk

Postby dkightley on Thu Sep 10, 2009 5:03 pm

As an additional tip to enhance the above method....

If you make the black areas in the image shown transparent by the addition of a transparency map in your editor (PSP, etc) then you're decal will blend better into the surrounding terrain....and you might then be able to leave some of it in place to enhance the finished route.

And a reminder for anyone building a route at higher altitudes......there's an error in both RW and RS where the decal conforms to the terrain, but floats a little above the terrain surface. Keep an eye open for a solution on the Section 0 Status Updates page...that is if it ever gets fixed. :-?
Doug Kightley
Member of the UKTS forum Moderation Team
dkightley
Very Active Forum Member
 
Posts: 10561
Joined: Sat May 08, 2004 8:52 pm

Re: Tutorial: Google Earth Decals in Bulk

Postby nobkins on Thu Sep 10, 2009 5:22 pm

Thanks for the tip. I use PSP and my PNG before I convert to an ace has the black sections as transparent but I still end up with black sections in the ACE file. What do you mean by a transparency map?
RWDecal: Simple automated decal creation for RailWorks and Rail Simulator
Trans Pennine Route for RailWorks
nobkins
Established Forum Member
 
Posts: 372
Joined: Fri Jun 12, 2009 11:51 pm
Location: Leeds

Re: Tutorial: Google Earth Decals in Bulk

Postby stuart666 on Thu Sep 10, 2009 6:25 pm

Does the above method avoid losing any of the decal due to terrain deformation, or is it strictly for use with flat terrain?
stuart666
Well Established Forum Member
 
Posts: 695
Joined: Tue Feb 17, 2009 7:53 pm

Re: Tutorial: Google Earth Decals in Bulk

Postby nobkins on Thu Sep 10, 2009 6:44 pm

I'm not aware of losing any decal due to terrain. The area arround leeds that I am working on is not completely flat but it is not far off. I tried but in a large hill in the middle of my decal and it did not appear that I was losing any of it.
RWDecal: Simple automated decal creation for RailWorks and Rail Simulator
Trans Pennine Route for RailWorks
nobkins
Established Forum Member
 
Posts: 372
Joined: Fri Jun 12, 2009 11:51 pm
Location: Leeds

Re: Tutorial: Google Earth Decals in Bulk

Postby nobkins on Thu Sep 10, 2009 10:24 pm

Update:
I have found a few issues that do add some limits to the area you can stitch together. I have update the original post. IT seems that RW_Ace can not deal with coverting images with a resolution higher than 4096x4096. When I tried 8192x8192 convert to ace I got an out of memory message. I am not short of RAM (4Gb) so think it is a limit of RW_Ace.

Due to this resolution limit the maximum area for a decal of high detail is approx 1.5km x 1.5km as capturing more than this results in the details being lost when you resize the very large stiched image to 4096x4096

Another limitation does appear that you lose parts of the decal when there is terrain deformation with very large decals. This is what stuart666 was mentioning in previous quote so it appears that this is a major limitation.

stuart666 wrote:Does the above method avoid losing any of the decal due to terrain deformation, or is it strictly for use with flat terrain?


My hopes are dashed when I thought I ahd found an solution to allow GE to be used for accurate route building. :(

If the disappearing sections of a decal can be sorted then this solution is up and running again. Otherwise only useful on flat terrain

Image
Large decal on flat terrain. Click for full size

Image
Large decal on uneven terrain. Click for full size

I gave sent and email to RailWorks support with screens attached and a package of my large decal. Hopefully they will look into it.
RWDecal: Simple automated decal creation for RailWorks and Rail Simulator
Trans Pennine Route for RailWorks
nobkins
Established Forum Member
 
Posts: 372
Joined: Fri Jun 12, 2009 11:51 pm
Location: Leeds

Re: Tutorial: Google Earth Decals in Bulk

Postby CaptScarlet on Fri Sep 11, 2009 4:34 pm

dkightley wrote:Keep an eye open for a solution on the Section 0 Status Updates page...that is if it ever gets fixed. :-?


A fix for the floating decals problem is expected to be released soon.

John
CaptScarlet
Very Active Forum Member
 
Posts: 3080
Joined: Fri Nov 17, 2006 11:29 am
Location: The Netherlands

Re: Tutorial: Google Earth Decals in Bulk

Postby stuart666 on Fri Sep 11, 2009 5:45 pm

A facinating method though, Ill certainly use it before they do the fix to do lowland areas, like the entire city of Gloucester. Nice work Mr N. :D
stuart666
Well Established Forum Member
 
Posts: 695
Joined: Tue Feb 17, 2009 7:53 pm

Re: Tutorial: Google Earth Decals in Bulk

Postby moranb on Fri Sep 11, 2009 5:58 pm

I found in RailSimulator that once you have decals greater than 400 sq. meters, parts of them disappear in an unpredictable way. Sometimes when you re-load a route, they do not appear at all and you have to give them a nudge for them to reappear. I have not tried using decals in RW as I am building my route in RS, but I would be interested in knowing if a maximum size of decal which would appear without parts of it disappearing has been found for RW or is the situation the same in both programs. (I am using decals as a general guideline to set out field boundaries, rivers and roads as well as the location of buildings, so I do not need 100% accuracy).

BFM
moranb
Well Established Forum Member
 
Posts: 511
Joined: Tue Oct 05, 2004 7:41 am

Re: Tutorial: Google Earth Decals in Bulk

Postby nobkins on Sat Sep 12, 2009 12:18 pm

CaptScarlet wrote:A fix for the floating decals problem is expected to be released soon.

John


Is this the same / related to the large decals vanishing or having section disappear?

Also I will investigate the max size of a decal in RW before it starts to disappear. Will try a 350 sqm one first and then work up. I suspect it will be the same as RS and limited to 400m
RWDecal: Simple automated decal creation for RailWorks and Rail Simulator
Trans Pennine Route for RailWorks
nobkins
Established Forum Member
 
Posts: 372
Joined: Fri Jun 12, 2009 11:51 pm
Location: Leeds

Re: Tutorial: Google Earth Decals in Bulk

Postby nobkins on Sat Sep 12, 2009 8:18 pm

moranb wrote:I found in RailSimulator that once you have decals greater than 400 sq. meters, parts of them disappear in an unpredictable way. Sometimes when you re-load a route, they do not appear at all and you have to give them a nudge for them to reappear. I have not tried using decals in RW as I am building my route in RS, but I would be interested in knowing if a maximum size of decal which would appear without parts of it disappearing has been found for RW or is the situation the same in both programs. (I am using decals as a general guideline to set out field boundaries, rivers and roads as well as the location of buildings, so I do not need 100% accuracy).

BFM


It seems that the bigger the decal the more likely you are to have sections vanish. It starts somewhere in the region of approx. 400m to 500m but seems to happen rarely at these sort of sizes. Becomes much more common at arounnds 600m and much more than 750 means the decal is rarely possitioned without a section missing.

Fingers crossed for this being fixed with the floating decal update.
RWDecal: Simple automated decal creation for RailWorks and Rail Simulator
Trans Pennine Route for RailWorks
nobkins
Established Forum Member
 
Posts: 372
Joined: Fri Jun 12, 2009 11:51 pm
Location: Leeds

Re: Tutorial: Google Earth Decals in Bulk

Postby dkightley on Sat Sep 12, 2009 8:33 pm

A fix for the floating decals problem is expected to be released soon.

John

Thanks for the update on this (and I see it has appeared on the RS status page)....even the smallest bit of feedback is very much appreciated. When will RS.com realise that keeping customers updated does them a lot of good?
Doug Kightley
Member of the UKTS forum Moderation Team
dkightley
Very Active Forum Member
 
Posts: 10561
Joined: Sat May 08, 2004 8:52 pm

Re: Tutorial: Google Earth Decals in Bulk

Postby nobkins on Sun Sep 13, 2009 11:57 am

I have improved the process a little to ensure that decals of over 500x500m are not created. By creating a 500x500m grid in GoogleEarth you can ensure that you end up with a stiched together image of a guarenteed size without the need for polygons and measuring you also with a 500x500m decal greatly reduce the risk of vanishing sections in Railworks on uneven terrain.

All you need is another piece of free software call GE Path and then watch this flash tutorial of the whole process start to finish.
RWDecal: Simple automated decal creation for RailWorks and Rail Simulator
Trans Pennine Route for RailWorks
nobkins
Established Forum Member
 
Posts: 372
Joined: Fri Jun 12, 2009 11:51 pm
Location: Leeds

Next

Return to [RW] Route Building

Who is online

Users browsing this forum: No registered users and 1 guest