Exclusion cause autogen suppression

jtanabodee

Resource contributor
#1
Hi,
I was wondering if my autogens were suppressed by ground poly or something else. So, I find that my ground poly do some suppression but the file cause most suppression is the exclusion file from ADE. I am using ADE 1.65. I am not sure if it because ADE is too old and the problem was get rid by the new one yet.
But it is weird since when I use xml file and recompile to see what cause that suppression. I found that the result is the same whether I got the file from ADE or XML. I think ADE is supposed to make a small rectangle of exclusion to all the object in default airport and generate XML code and compile to bgl. But it seems like it generate a big bounding box to compress all the autogen too. I am trying to edit the exclusion XML and see which code cause that compression.
Before exclusion:
Autogen1.jpg


After exclusion:
Autogen2.jpg
 
Last edited:
#2
I think ADE 1,75 is the newer version .... although i'm using ADE 1777018 beta version now. (P3D4)

I was following this tutorial here :
Don't know if that helps you, but i used it in combination with GIMP and it worked pretty good, helped me a lot. (you can use photoshop as well)
 

=rk=

Resource contributor
#3
Autogen is suppressed by photo ground, you have to manually add autogen over photographic style ground polygons.

 

jtanabodee

Resource contributor
#4
Autogen is suppressed by photo ground, you have to manually add autogen over photographic style ground polygons.
I have checked that by removing almost all the bgl files and left over just only Photoscenery (by resample tool). Autogens were there. Then I added all the ground poly (custom made ground poly and converted by MCX). Autogens were still there. When I added all the 3d models (XML has <NoAutogenSuppression> and compiled with bglcomp), autogens were there. But when I ADE files, (separated Airport file, Object file and CVX file), I found that the object file was the bad guys, did the suppression. When I look up Obj file, there are only the exclusion file to exclude the default airport. There are a lot of exclusion, small area I guess. But the suppression is huge.
I will try to find the exclusion that cause compression of autogen later.
The problem is definitely not the custom ground poly as I though earlier.
 
Last edited:

jtanabodee

Resource contributor
#5
I did a test and I found the XML line that cause a wide autogen suppression.
<ExclusionRectangle
latitudeMinimum="8.10333111289738"
latitudeMaximum="8.11531559947454"
longitudeMinimum="98.3009969488353"
longitudeMaximum="98.3341800054224"
excludeAllObjects="TRUE"/>
This exclusion rectangle is quite big and it cause autogen suppression a wide area. Unfortunately, I cannot just throw it out.

Picture below is without this line of exclusion. There is a big black shadow which I don't know what it is. There is no terminal buildings or something at all.

autogenNoXclude.jpg


After this line of exclusion, the big black shadow disappear. All the autogen disappear too.

autogenWxclude.jpg


My conclusion is the exclusion rectangle cause autogen suppression. But I cannot do something about that since there is a "black thing" needs that line to be excluded.
So, I will do the models to replace those missing autogen. The same that I have been doing all the time, sigh! At least I know what cause that.
 
Last edited:
#7
Hi Tic:

As you may already know, a G-Poly is a flat 3D scenery object which will exclude other 3D scenery objects within the 3D space of its Bounding Box, unless that G-Poly has a:

* <NoAutogenSuppression> attribute assigned via an AttachPoint on the MDL

...or:

* <NoAutogenSuppression> attribute as an Element in the BGLComp XML placement code.



BTW: Info on using NoAutogenSuppression vs. NoShadow XML Elements vs. a MDL "SuppressShadow" attribute::pushpin:

http://www.fsdeveloper.com/forum/threads/autogen-supression.433757/


FYI: A G-Poly placed with its 3D datum (Reference Point aka "RefPt") offset below local ground level as determined by its assigned Altitude AGL, will not exclude Autogen. :pushpin:


Autogen annotations on default land class textures (but not CVX vector meta-object Autogen such as Telephone Poles or Utility Towers along linear objects) can be excluded by a Exclusion Rectangle compiled via SDK BGLComp.

Custom Autogen annotations on custom photo-real imagery compiled via SDK Resample (technically a 'special type' of land class different than default land class) ...must be excluded via a CVX vector Polygon compiled via SDK SHP2VEC.


CAVEAT: It is important to distinguish between a Exclusion Rectangle and a Exclusion Polygon).


It is also important to distinguish between custom photo-real imagery compiled to- and placed by- SDK Resample ...versus a flat 3D scenery object mapped with a photo-real texture image that is compiled and placed by SCASM / BGLC or SDK BGLComp.


IIUC, the issue here is how to exclude "Default" versus "Custom" Autogen annotations on land class textures.

Default
Autogen = BGLComp Exclusion Rectangle required

Custom Autogen = CVX vector Polygon required


NOTE: Be certain to only exclude the type of objects desired when creating a BGLComp Exclusion Rectangle

http://www.prepar3d.com/SDK/Environment Kit/BGL Compiler SDK/Compiling BGL.html#ExclusionRectangle


Hope this helps. :)

GaryGB
 
Last edited:

jtanabodee

Resource contributor
#8
Hi Tic:

As you may already know, a G-Poly is a flat 3D scenery object which will exclude other 3D scenery objects within the 3D space of its Bounding Box, unless that G-Poly has a:

* <NoAutogenSuppression> attribute assigned via an AttachPoint on the MDL

...or:

* <NoAutogenSuppression> attribute as an Element in the BGLComp XML placement code.



BTW: Info on using NoAutogenSuppression vs. NoShadow XML Elements vs. a MDL "SuppressShadow" attribute::pushpin:

http://www.fsdeveloper.com/forum/threads/autogen-supression.433757/


FYI: A G-Poly placed with its 3D datum (Reference Point aka "RefPt") offset below local ground level as determined by its assigned Altitude AGL, will not exclude Autogen. :pushpin:


Autogen annotations on default land class textures (but not CVX vector meta-object Autogen such as Telephone Poles or Utility Towers along linear objects) can be excluded by a Exclusion Rectangle compiled via SDK BGLComp.

Custom Autogen annotations on custom photo-real imagery compiled via SDK Resample (technically a 'special type' of land class different than default land class) ...must be excluded via a CVX vector Polygon compiled via SDK SHP2VEC.


CAVEAT: It is important to distinguish between a Exclusion Rectangle and a Exclusion Polygon).


It is also important to distinguish between custom photo-real imagery compiled to- and placed by- SDK Resample ...versus a flat 3D scenery object mapped with a photo-real texture image that is compiled and placed by SCASM / BGLC or SDK BGLComp.


IIUC, the issue here is how to exclude "Default" versus "Custom" Autogen annotations on land class textures.

Default Autogen = BGLComp Exclusion Rectangle required

Custom Autogen = CVX vector Polygon required


NOTE: Be certain to only exclude the type of objects desired when creating a BGLComp Exclusion Rectangle

http://www.prepar3d.com/SDK/Environment Kit/BGL Compiler SDK/Compiling BGL.html#ExclusionRectangle


Hope this helps. :)

GaryGB
I appreciate your detailed answer. But I think you haven't read my problem and understand it before you made the answer. My finding by removing all the bgl files back and fort for quite sometime are:
1. Custom made ground poly does a compression a bit, not really much as I know.
2. All the MDL file with <NoAutogenSuppression> in XML does the job, no compression at all.
3. The EXCLUSION RECTANGLE (not the CVX vector polygon) do compress autogen.
 
Last edited:

jtanabodee

Resource contributor
#9
I might not make myself clear enough or my English is the problem. Let the pictures tell the story. You can see the files on the right screen. Which file does the compression, you can truly understand that.
1. Only photoscenery in the folder Scenery of the airport. The default airport shows up. Autogens are fine.

1.jpg

2. When add all the Custom Made Ground poly, Autogens are fine too. Some houses are missing but very few.

2.jpg

3. When add the MDL file which compiled to BGL by <NoAutogenSuppression>, some compression happens.

3.jpg


4. When add the Airport files from ADE including vector file (road, cost lines, traffic), no compression further.

4.jpg


5. The last file that cause a lot compression is Exclusion file that is in OBJ file compiled from ADE.

5.jpg


That is how I know which file cause compression. Not GP as I thought.
 

jtanabodee

Resource contributor
#10
Anyway, I decided not to dig up more. I can make autogen myself and it looks prettier than the default. I can control the roof color better and the shape I want. It is time consuming but not much. I can live with that.
VTSP_2019_31.jpg
 
#11
Hi Tic:

Please be assured I did read your posted description of a problem with Autogen excluded by an Exclusion Rectangle, and I posted the info which I believe applied to- and explains how to resolve- the scenery issues cited in the OP above.


Autogen "excluded" by an Exclusion Rectangle would only be annotations of default land class textures.

Autogen "excluded" by a custom CVX vector Exclusion Polygon would only be annotations of custom photo-real imagery land class textures.


AFAIK, this meant that a Blend Mask for custom photo-real imagery land class textures seen where Autogen was being excluded by the BGLComp-compiled Exclusion Rectangle had been configured with sufficient transparency to allow the underlying Autogen annotations of default land class textures to 'show through to the top' of your custom scenery.

Some FS developers may find this to be useful to reduce workload and add-on package size by allowing default land class textures and associated Autogen annotations be displayed in surrounding areas distant from airports.

As you may already know, when this technique of allowing default land class textures and associated Autogen annotations be displayed on top of custom scenery in areas closer to airports and/or within the "boundary" / "background" of an airport, complications may occur when the scenery is rendered in FSX / P3D at run time, especially when an end user may also have other 3rd party versions of that same airport installed and set 'Active'.


I'm glad to see you have decided to utilize your own custom Autogen annotations on your own custom photo-real imagery land class textures at Phuket, as the new package is already looking like another fine addition to your collection of beautifully detailed scenery packages. :)


BTW: You may wish to use a very small Exclusion Rectangle for each airport object you wish to "exclude"; this is what ADE does to "exclude" certain default airport objects, when 'stock' airports are opened / decompiled / imported / and their BGLComp source code re-constituted from data stored in the proprietary *.AD4 project file during BGL compilation.

If a large Exclusion Rectangle is used to intercept all airport objects you wish to "exclude", complications may occur. ;)


FYI: Although ADE version 1.65 was useful and well-vetted in addition to being the last version for which a PDF manual was made available, there may be further feature changes in a more recent ADE "production" version 1.7x that merit its use.


PS: Interested readers may wish to follow Tic's current fascinating work on Phuket ...in his other thread here: :cool:

https://www.fsdeveloper.com/forum/threads/new-phuket-airport.446052/#post-830059


GaryGB
 
Last edited:

jtanabodee

Resource contributor
#13
I have made my own custom autogen both trees and buildings by using default texture. I found that a lot of vegetation textures are in separated 256x256 pixels textures. OMG, I can imagine how many drawcall that would be when we fly though the jungle. I did a test flying and I found that the fps when I am in default autogen is lower than myself-made autogen since I have collected all the tree textures in one sheet and make custom trees from that default textures. So my trees are identical to the surrounding trees. The buildings are the same method. So, the fps is surprisingly good when flying in my autogen.
 

jtanabodee

Resource contributor
#14
One little nice thing I have got from making my own autogen is: I can have shadow from texture baking. Autogen Trees in FSX cannot have shadow.
VTSP_2019_32.jpg
VTSP_2019_33.jpg
 
Top