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

FSX Using the Annotator

Messages
454
Country
wales
Hi guys me again.

Although the technical aspects of id'ing GenX scenery BGL's totally escapes me I am never the less pressing on with the few airfields I have been able to find.

These are near the coast and as such are more easily found unlike those inland.

I have had success in placing autogen trees but it is a bit hit and miss as to whether they actually appear.

I have read Luis Féliz-Tirado's instructions and have added the following to my cfg under Terrain

IMAGE_PIXELS_FOR_AUTOGEN_POLYGONS=1024

However I see no difference anywhere so do not understand this bit.

I have also set my autogen density to 30

It seems that the larger I draw my polygon (Polygon Region) the more trees appear however if I draw a narrow strip nothing appears. Now I understand (vaguely) that this has something to with how FSX samples "things".

I am using the Groupings as opposed to the Regionalizations.

Is there some way in which I can increase the number of trees that appear in a smallish polygon.

Any help on how to increase the number of trees in any given size polygon would be appreciated.

I also have to bear in mind that I shall be passing my results onto friends.

Regards

Richard

PS One more question and that is I can delete ALL of my polygons by selecting Polygon Regions and pressing delete but of course that deletes them all.

How can I delete just one polygon to be able to just redraw that one?

R

Later.
As you may remember I have using Instant Scenery placed many trees at my locations.

I have just run an experiment where I disabled my IS Tree BGl and low and behold my autogen trees appear even in narrow strips.

When I enable my IS trees the autogen ones, some but not all, disappear.

Now I guess there must be some madly complicated explanation for this.

Would my choice of tree play any part in this?

I have been using Forest Broadleaf and Forest Broadleaf 3-15m Short.

In the above I used Oak1 6-40m ALL (no Oldgrowth).

R
 
Last edited:
Hi Richard:

In Instant Scenery > Options, set to retain Autogen underneath any object that Instant Scenery (aka "IS") places.

If you have placed a lot of trees already, there is an easy way to edit your BGL, otherwise the objects would need to be deleted/"re-placed" with that option set in advance in IS.

If you are interested, I can explain further upon my return on Monday how to edit your BGL with a quick decompile, search and replace in NotePad, followed by a re-compile in BGLComp.

Once an IS object is added to that BGL, IS resumes using the BGL normally.

Hope this helps ! :)

GaryGB
 
Hi Gary and many thanks.

I have pondered for ages what the "keep Autogen underneath etc" meant and now I know.

This is obviously my problem so need to go back to the beginning.

I have done 97 airfields out of the 225 or so to do.

It would be expedient if I could find a quick way in which to change things so that I can add autogen without losing the IS trees.

I can wait till Monday certainly.
 
Hi Richard:

Yes, the XML edit of your IS BGL to "retain autogen" will keep all existing tree placement intact.

Talk with you Monday ! :)

GaryGB
 
I think it will not be as "that" quick Gary.

I have had to bear in mind that some of my airfields have been done by a couple of other chaps notably Gerry Winskill and although Gerry has agreed that I can do his again I have to bear in mind that some users may prefer to keep his rather than use mine therefore Each airfield has its own ADE BGL, its own Objects BGL and its own Tree BGL.

For example X3AS.BGL ( ADE) X3AS_Object.BGL ( IS things like buildings) and X3AS_Trees.BGL ( again Instant Scenery trees)

This will enable a user to be able to disable an individual airfield or part thereof.

So to change those I have already done will involve some 97 BGL's.

Still I guess that may be quicker than redoing them all.

Look forward to "talking" tomorrow.

Regards

Richard

Later, I have downloaded BGL2XML and have successfully decompiled a BGL to XML.

There are a great number of objects within this XML so I do hope I don't have to edit every one. ??
 
Last edited:
Hi Richard:

It will be intended that a semi-automated search and replace function does all the grunt work.


BTW: Are you using IS version 1.x or 2.x ?


Regardless, I suppose it would be best that we work with only a copy of your original files, and that you do not:

a.) change the sequence / position of any scenery object sub-section within the XML file

b.) remove or add any any scenery object sub-section within the XML file

...otherwise Instant Scenery version 2.x may not be able to resume normal use of the changed project file after recompiled by BGLComp.


I'll post more on this procedure later today. ;)

GaryGB
 
Last edited:
Hi Richard:

To DISABLE autogen suppression by superimposed placement of FS scenery library objects: :teacher:


First, download Arno's "CompileHelper 2.0":

http://www.fsdeveloper.com/forum/downloads.php?do=file&id=75


Install CompileHelper 2.0 into FSX BGL compiler SDK folder at:

[FSX SDK install path]\Environment Kit\BGL Compiler SDK


NOTE: Default SDK install location is:

C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\BGL Compiler SDK or other [install path]

Configure CompileHelper 2.0 path to BGLComp.exe as needed under 'Options' per the Manual:

http://www.fsdeveloper.com/wiki/index.php?title=CompileHelper_2.0



Next, download ScruffyDuck's BGL2XML decompiler GUI version (for FSX XML / BGLComp source code scenery BGLs) at:

http://www.downloadcenter.scruffyduck.org.uk/ > ScruffyDuck Utilities > BGL2XML > bgl2xml_gui_100



Using Scruffyduck's BGL2XML GUI, open and decompile object placement BGL to XML; then:

1.) Open XML version of decompiled object placement BGL in NotePad

2.) Click the mouse cursor into a position at the very top of the file

3.) Click Edit > Replace...

4.) In "Find what" text box, enter: imageComplexity="NORMAL">

5.) In "Replace with" text box, enter: imageComplexity="NORMAL"> <NoAutogenSuppression/>

6.) Click "Replace All" button

7.) Click File > Save as...
a.) set 'Save as type' to "All Files"
b.) set 'File name' to [file name].XML
c.) set 'Encoding:' to "ANSI"

8.) Click "SAVE" button

9.) In Windows Explorer, Drag and Drop edited XML file into FSX BGL compiler SDK folder (at location described above).

10.) In Windows Explorer, Drag and Drop edited, saved XML file onto the CompileHelper.exe icon

'CompileHelper Output' dialog appears with "Parse complete!" status (...or other explanatory error messages).


If all steps were completed correctly, you should have compiled a new BGL that has DISABLED autogen suppression by superimposed placement of FS scenery library objects; all other info including placement ref-points should be un-changed. :wizard:

[EDITED]
NOTE: I personally use imageComplexity="VERY_SPARSE"> to ensure visibility regardless of scenery complexity slider setting; substitute your own choice for "NORMAL" above if object display at a different complexity/density is desired:
"VERY_SPARSE"
"SPARSE"
"NORMAL"
"DENSE"
"VERY_DENSE"
"EXTREMELY_DENSE"
[END_EDIT]


CAVEATS:

* Work with only a copy of your original files; always keep a backup of original files

* When editing the XML file(s), do not:
a.) Change the sequence / position of any any scenery object sub-section within the XML file
b.) Remove or add any scenery object sub-section within the XML file

...otherwise Instant Scenery version 2.x may not be able to resume normal use of the changed project file after recompiled by BGLComp.


FYI: Once that recompiled BGL is placed in a FSX \Scenery subfolder nested under a top folder, added as an "active" scenery area layer in FSX scenery library, FSX re-indexes the Scenery.Cfg, and returns to your flight in progress, the scenery objects placed by IS should be displayed without suppression of underlying autogen. ;)


BTW: Once that BGL is opened in IS and another FS scenery library object is placed via IS without generating any error messages, one should be able to resume using that BGL 'normally' in IS (ex: adding moving, deleting objects). :idea:

PS: These edits are not needed if, when first starting an IS scenery object placement project:

1.) In IS > {Right-click} to bring up context menu; choose 'Object Properties'
2.) Under 'Object Properties' , check: "Keep Autogen under the object (FSX)" check box

IIRC, this "Keep Autogen" placement mode then persists for that IS project BGL until changed manually in IS).

CAVEAT: One cannot "toggle" that attribute ON for an object via the IS GUI after that object is 'placed'.


Hope this info helps get you started setting things the way you like in your BGLs ! :)

GaryGB
 
Last edited:
Hi Richard:

Glad that helped ! :D


PS: I added an additional clarification above for readers who might be less familiar with some XML object placement options. ;)


Happy Tree Planting ! :cool:

GaryGB
 
Back
Top