• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Combining Flattens

Messages
22
Country
england
Hi,
First post in this forum.
I have created an airport in West Yorkshire, England, based on GenX Photo scenery. It is not a default 'live' airport. I have used FSX KML to slope and flatten the ground so that the runway looks and functions as it should. In doing so I have 18 individual flatten files. An AFCAD2 file for the runway and parking plus a couple of scenery files.
In order to reduce the number of files is it possible to merge the flattens using FSX KML? I note that they can be opened in notepad; which bits should I leave out?
Thanks in advance.
TonyM
 
Maybe its easier to open them all in Google Earth, then create a new folder in Google Earth and drag them all into that one folder. Save that folder as a .KML and you will have all your flattens in one .KML
 
Thanks for the suggestion. Can I word the question differently.
I have generated 19 bgl. files to give me the slopes I require to fit the photo scenery. If I open the xml. file for each one can I copy and paste them all into one xml. and then generate a single bgl. combined file. Are there any lines in the individual xml. files that should be excluded to get the file to generate the bgl.
If I sound like a complete novice at this the simple answer is that I am.
Regards and thanks in advance
Tony
 
Thanks for the suggestion. Can I word the question differently.
I have generated 19 bgl. files to give me the slopes I require to fit the photo scenery. If I open the xml. file for each one can I copy and paste them all into one xml. and then generate a single bgl. combined file. Are there any lines in the individual xml. files that should be excluded to get the file to generate the bgl.
If I sound like a complete novice at this the simple answer is that I am.
Regards and thanks in advance
Tony

I'm not really sure what you mean.

Do you mean you have 19 KML files with each one containing a single flatten?

If so, just create a single KML file and put all those flatten polygons in that KML file. You should end up with only one BGL file being created.

In other words, FSX KML generates a BGL for each KML file, so if you only have one KML file then you only get one BGL file. A single KML file can contain many tagged polylines and polygons. So there is no problem putting your 19 flatten polygons in a single KML file.
 
Hello

I'm interested in the technic to merge many flattens.
The purpose is to fix elevation for large streams (hydroplygons) to suit an improved mesh.

In FS9, I realized that with SceneGenX, drawing overlapping flattens, step 1m by 1m, compiled in one bgl file (it's SCA type).

This method doesn't work any more in FSX; I use a kml model file, with 1 polygon flatten; I got the coordinates of every previous polygon from SCA code in ScneGenX, paste in KML (adapt: swap lat/long, ...).
Then compile all polygons with FSX KML, but it was a very long work, and I get hundreds of files.

I would merge all files concerning the same river:
My kKML model files includes essentially:
1 Style section
1 StyleMap section
1 other Style section
1 Placemark section, including 1 Polygon and 1 Description (tag) section

All files have the same structure; how to merge them?
I suppose I may keep the 3 first sections; then create all Placemark sections, or all Polygon sections inside Placemark, with 1 time the common Description section?

******************************
Maybe rather long, but I post the code, if easier to give me solution (changing parts in blue); an adaptation with code for 2 dummy polygons would be good! As an other part, if any sections have no use for FSX KML, please show me if they may be deleted.

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<name>xfl_riv_fmnr00.kml</name>
<Style id="s_ylw-pushpin_copy6">
<IconStyle>
<scale>1.1</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
<BalloonStyle>
</BalloonStyle>
<ListStyle>
</ListStyle>
<PolyStyle>
<color>9cff55ff</color>
<outline>0</outline>
</PolyStyle>
</Style>
<StyleMap id="m_ylw-pushpin_copy5">
<Pair>
<key>normal</key>
<styleUrl>#s_ylw-pushpin_copy6</styleUrl>
</Pair>
<Pair>
<key>highlight</key>
<styleUrl>#s_ylw-pushpin_hl_copy6</styleUrl>
</Pair>
</StyleMap>
<Style id="s_ylw-pushpin_hl_copy6">
<IconStyle>
<scale>1.3</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
<BalloonStyle>
</BalloonStyle>
<ListStyle>
</ListStyle>
<PolyStyle>
<color>9cff55ff</color>
<outline>0</outline>
</PolyStyle>
</Style>
<Placemark>
<name>xfl_riv_fmnr00</name>
<styleUrl>#m_ylw-pushpin_copy5</styleUrl>
<Polygon>
<tessellate>1</tessellate>
<altitudeMode>absolute</altitudeMode>
<outerBoundaryIs>
<LinearRing>
<coordinates>
49.7591643219816,-15.4344381959382,0 49.753101001124,-15.4173507269288,0 49.762065571544,-15.4139077495875,0 49.7723795495248,-15.4369444372457,0 49.7669561810284,-15.444918841406,0 49.757754844756,-15.4487921234267,0 49.7474184843601,-15.4360079711648,0 49.7591643219816,-15.4344381959382,0 </coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
<description>Airport_Backgrounds_Flatten</description></Placemark>
</Document>
</kml>

*******************************

Thanks for help!
Pierrot - FMEP
 
Hello!

Merging problem solved after trying!
- I used 5 kml files from GE, 3 poly and 2 lines
- Keep one of files, delete all "Style" sections, and copy/paste the 5 separate "Description" sections of every poly and line.
- In FSX_KML, used different tags for each poly, and 1 road and 1 scenery object for lines.
- Build gives 2 files: 1 cvx bgl for 3 polys and 1 road, 1 scenery bgl for 1 line of objects.
Very interesting!

I tested the parameters Random for heading, and variance (0.5) for scale.
Is there a doc for those parameters? Is variance "mathematically" interpreted, as in a random normal distribution?

As an other part, could the SceneryObject tags be filtered (to know which libraries are needed for distribution): default libraries, global, local as in some object placement tools?

Thanks! Pierrot - FMEP
 
Back
Top