Monday 2 March 2015

Accuracy of water masks.

I've reviewed what I did 2 years ago and can't for the life of me replicate the process.  So, I found an easier way to get it accurate, since the Google Earth imagery doesn't appear to be 100% aligned with the virtual earth imagery I use for photoscenery in FSET.

FSET loads the areaKML.kml file in its work folder when you click 'K'.  With Google Earth and FSET open alongside each other it's easy to quickly amend the polygon points for a water mask in Google Earth, save the KML file, click K in FSET to reload it and see whether it aligns OK.

The following image shows the three steps, with Google Earth displayed on the left and FSET on the right.  You can see in the Google Earth image that there is a loaded kml file shown by the thin red line.  The same line is shown in FSET by the thin blue line.


In the top pic we can see the blue watermask line is not properly aligned to the coast in FSET.  If we used this as it is, the transparency in the photoscenery wouldn't show the water correctly.

So in the middle pic we can see I have adjusted the kml file in Google Earth.  At this point nothing has changed in FSET.  Then I save the kml file to the work folder in FSET and click 'K'.

The bottom pic shows how the blue line changes in FSET and now far more closely follows the coastal imagery that I will be using to create photoscenery.  The transparency FSET introduces will now really match the water poly that will lie underneath and the actual coastline in the scenery, leading to good visual results in the sim!

This way I should be able to update all the water mask polys to show 99%accuracy with the coastline and interior water features quite easily.

I've also tested out a couple of values in the FSEarthMasks.ini file that control how FSET a deals with water transparency effects.  I don't like seeing a sharp definition where the water starts unless it's like that in real life, as it looks too fake for me.  I settled on values starting from 0 (no transparency) to 1 (full transparency) and altering the distance from my deep water lines that the transparency extends to.

I also, to prove I could still do it, worked out a method for importing kml files into SBuilderX, which is necessary to produce the water polys.

I ended up doing this by installing QGIS.   Easy to do, and free.  Now all I need to do is save an accurate (described above) KML file in Google Earth, import it into QGIS and save as an ESTI shp file that can be imported straight into SBuilderX.  I can fairly easily manipulate the polys in SBuilderX to only cover individual QMID11 squares (see the app that will build those in Google Earth for you in an earlier post!).  I can then use SBX to compile water polys and flattens for the appropriate water areas :)


1 comment:

Jester945 said...

Hi Kevin I am having some problems with FSET and could do with some adult supervision.

I am trying to integrate Aerosoft VFR London X with OrbX FTX EU using the method created by Etienne. I am using his instructions but when i compile the tiles in FSET using the AreaKML.kml file get the error "You have excluded all tiles or have not defined a polygon named area if using a KML file" Any ideas how I can overcome this???



I love this project and have got it to work but if you don't use the KML it includes the rivers and lakes in the image and these present an unrealistic lean to it all.

Hope you can give me some pointers