• 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.

Exclusion polygons

GHD

Messages
12,243
Country
england
I have successfully used BLN2SHP/SHP2VEC to create flattens but I am having no succes in creating excludes. The files compile correctly but the trees are still present in FSX.

The screenshot shows custom autogen trees (.agn files) which I am attempting to remove with an exclude polygon as shown.

The bln file is:

10,0
1.25235375859464,52.71066349760610,32.900000
1.25255209129871,52.71121642285200,32.900000
1.24621239629261,52.71289991515630,32.900000
1.24508672703970,52.71439345406010,32.900000
1.24284747898853,52.71336738565570,32.900000
1.24431108478640,52.71202210962100,32.900000
1.24643241171790,52.71172361710740,32.900000
1.24686489579382,52.71102957927090,32.900000
1.25116549105397,52.71071663510840,32.900000
1.25235375859464,52.71066349760610,32.900000


The generated xml is:

<?xml version="1.0"?>
<metadata xml:lang="en">
<FlightSim>
<Geometry clipLevel="11"></Geometry>
<AttributeSet>
<AttributeBlock name="Exclusion Polygons" guid="{AC39CDCB-DB78-4628-9A7C-051DA7AC864A}">
<Field name="Uuid" type="GUID" />
</AttributeBlock>
<AttributeBlock name="Texture" guid="{1B6A15BB-05FB-4401-A8D1-BB520E84904C}">
<Field name="Guid" type="GUID" />
</AttributeBlock>
</AttributeSet>
</FlightSim>
</metadata>

I can't find these GUIDs in the VectorShapePropertiesGuids.txt file.

I would be grateful for any advice.

George

 
Last edited:
Messages
288
Country
us-washington
I have successfully used BLN2SHP/SHP2VEC to create flattens but I am having no succes in creating excludes. The files compile correctly but the trees are still present in FSX.

The Exclusions are for vector types. I don't believe they work for autogen.

Try using the appropriate GUID listed below in the GUID field of your FLATTEN (a somewhat misleading name) SHAPEFILE (not xml file).

{6c0c6528-5cf1-483a-a586-2c905cf2757e} ExcludeAG
{47d48287-3ade-4fc5-8bec-b6b36901e612} Flatten
{5a7f944c-3d79-4e0c-82f5-04844e5dc653} Flatten + MaskClassMap
{1f2baab1-4132-416e-8f6f-28abe79cd60b} MaskClassMap
{46bfb3bd-ce68-418e-8112-feba17428ace} Flatten + MaskClassMap + ExcludeAG
{18580a63-fc8f-4a02-a622-8a1e073e627b} Flatten + ExcludeAG
{594e70c8-06a5-4e3f-be6e-4dbf50b49d11} MaskClassMap + ExcludeAG

-Doug
 
Last edited:
Messages
19
Country
portugal
Or try a .xml style exclusion, compiled with BGLComp, using

excludeAllObjects = "TRUE"

José Maia
 
Messages
288
Country
us-washington
Or try a .xml style exclusion, compiled with BGLComp, using

excludeAllObjects = "TRUE"

José Maia

That would work, assuming he is not trying to surgically replace parts of an airport. He is already creating the flatten. It would seem, in this case, the best thing to do would be to "turn on" the exclusion-ness of the polygon he is already creating.

-Doug
 

GHD

Messages
12,243
Country
england
No, the xml exclude doesn't exclude autogen, only airport facilities. This is not a default airport, all I wish to do is erase some autogen trees.

Unfortunately BLN2SHP doesn't have a flatten/exclude construct so I will need to write a program to create an shp file. Will the dbf file be ok as it is?

George
 
Messages
19
Country
portugal
No, the xml exclude doesn't exclude autogen, only airport facilities.

Are you sure about that?

I know that my english is very poor, but it´s not what i understand here:

Note that if excludeAllObjects is set to true all scenery objects will be excluded, whether specifically placed or created by Autogen.
(in the bgl compiler.html/FSX SDK)

José Maia
 

GHD

Messages
12,243
Country
england
Hi José,

Your English is excellent :)

This is what I tried before using BLN2SHL/SHP2VEC:

<ExclusionRectangle
latitudeMinimum="52.7106820"
latitudeMaximum=" 52.7116362"
longitudeMinimum="1.2503477"
longitudeMaximum="1.2526781"
excludeAllObjects = "TRUE"
/>

and this is what I see in FSX.



You can see that the user aircraft and the trees are inside the rectangle, but the trees are still visible.

George
 
Messages
288
Country
us-washington
No, the xml exclude doesn't exclude autogen, only airport facilities. This is not a default airport, all I wish to do is erase some autogen trees.

Unfortunately BLN2SHP doesn't have a flatten/exclude construct so I will need to write a program to create an shp file. Will the dbf file be ok as it is?

George

Use BLN2SHP to create a flatten. Then edit the .dbf file and change the value in the GUID field to be

{18580a63-fc8f-4a02-a622-8a1e073e627b}

Compile the updated Shapefile using Shp2Vec and you're done.

-Doug
 

GHD

Messages
12,243
Country
england
Thanks Doug.I don't have Access so I created the flatten and edited the dbf using Notepad, the exclude still didn't work. Obviously I had the agn file so I edited this and moved the offending vegetation rectangle. The results are shown below.

I would like to know why neither the xml exclude nor the flatten exclude worked.

George

agn before edit:



agn after edit:



Top-down



Spot:

 

GHD

Messages
12,243
Country
england
Thanks PakMac, that will be extremely useful.



José

Note that if excludeAllObjects is set to true all scenery objects will be excluded, whether specifically placed or created by Autogen.
(in the bgl compiler.html/FSX SDK)

I think they lied :D

George
 
Messages
3
Excludes & Flattens

Hello George, I have been reading your posts on Flattens and Excludes.
I too have created them both with BTNM and Shp2Vec and have the bgls but no matter where I put them EGNT still shows 82.2mtrs. and the is no exclusion. Where did you put your Flatten bgl to get it to work?. I think you might be right with your last post!

Any help appreciated,

Jack
 

GHD

Messages
12,243
Country
england
Hi Jack,

I have had no problems with flattens only excludes (perhaps it is just custom autogen which is not excluded?). I am modifying the afcads for the UK2000 airports and the main problem is with ground textures. Here is my EGNT, I set the height in the bln file to 81.0585938 and this is what shows in the screenshot as indicated by the ground height in Generate Helipad.

George

 
Last edited:
Messages
3
Thanks for the info George.

I have some UK2000, including Part 8 and my problem looks the same as your's, aprons and taxyways not showing over the green base.
UK VFR is ok and with APX47120 removed, Part 8 EGNT, with or without AFCAD it's just the runway and buildings.
I notice that without UK VFR and APX47120 , the default base is showing and is 82.2 mtrs all over. Perhaps if the default base could be excluded or removed things might improve?

Good luck with your task.

Jack
 

GHD

Messages
12,243
Country
england
Hi Jack,

I have found that you need to create a flatten at the height of the UK 2000 runway (probably best found in FS9) and place it below 0501/0601 base in the library priority list shown in Settings. You will probably find that the ground textures will continue to flicker due to way they have been programmed.

George
 

GHD

Messages
12,243
Country
england
Use BLN2SHP to create a flatten. Then edit the .dbf file and change the value in the GUID field to be

{18580a63-fc8f-4a02-a622-8a1e073e627b}

Compile the updated Shapefile using Shp2Vec and you're done.

-Doug
Hi Doug,

A BLN2SHP flatten already uses:

{46BFB3BD-CE68-418E-8112-FEBA17428ACE}

as the GUID in the .dbf file.

The VectorShapePropertiesGuids.txt has:

Airport_Backgrounds_Flatten_MaskClassMap_ExcludeAutoGen = { 0x46BFB3BD, 0xCE68, 0x418E, { 0x81, 0x12, 0xFE, 0xBA, 0x17, 0x42, 0x8A, 0xCE, } };

Does this mean that it should exclude autogen? In my case it doesn't seem to.

George
 

tgibson

Resource contributor
Messages
11,344
Country
us-california
Hi,

You say this is custom autogen. I'm sure you're not, but is the .agn file in the same folder as the exclude rectangle? This won't work.

Hope this helps,
 

GHD

Messages
12,243
Country
england
Hi Tom,

The agn files are in the texture folder together with photo-scenery bmp files. The cvx file is at a lower position in the Settings/Scenery library priority list.

George
 
Messages
288
Country
us-washington
Hi Tom,

The agn files are in the texture folder together with photo-scenery bmp files. The cvx file is at a lower position in the Settings/Scenery library priority list.

George

I want to be sure I understand exactly what you are doing. It sounds like you have annotated some imagery AND you have created an airport background you expect to exclude your annotations (to the extent they overlap). Is this correct?

Will you please forward a simple example exhibiting the undesirable behavior?

[And yes... we lied. You cannot exclude autogen using ExclusionRectangles].

-Doug
 

GHD

Messages
12,243
Country
england
Hi Doug,

The example is shown in the earlier screenshots. It is based upon photo scenery bmps with autogen added (the vegetation areas are shown in #9).

I created a simple xml airport to create a runway where you see the Trike sitting. I thought I could use an Exclusion or Flatten polygon to flatten the area and exclude the odd trees on the runway the flatten is fine but the exclusion didn't remove the trees. I finally moved the offending vegetation area and all is well.

And yes... we lied. You cannot exclude autogen using ExclusionRectangles.

And apparently nor with flattens, I did try your suggested GUID.

George


George
 
Top