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

Bounding Box Question

Messages
687
Country
us-texas
Does the bounding box affect autogen vegetation placed by the annotator? I have a situation where a heavily populated area with vegetation had a custom object introduced and the vegetation around that object is excluded after reloading the sim. If I remove the object, the vegetation returns. In MCX. although I can view the bounding box, I don't see any way of adjusting any of it's settings, if there are any.
 
Last edited:
There should be a few programs that give you options to only exclude a specific type of item. This is the route you need to go!
 
"There should be"? Ok, well there should be a way to designate in the model prior to compiling that I don't want it to suppress autogen too. I use Instant Scenery 3 to place all my objects and it has a checkbox to "allow autogen vegetation under model", but it doesn't, so either that isn't doing it's job or something about the model overrides that and forces the vegetation to be suppressed anyway. . .that's what I need to know one way or the other before I go looking for any programs that "should be".
 
The 'No Autogen Suppression' tag should be set to 'true' if you want the autogen to appear around any object. You can set that 'flag' in the .XML prior to compiling the BGL, or if you are using MCX you can set that value from the placement dialog.
not sure why IS3 wouldnt work though.
 
I am limited in experience, xml files are greek to me and while I do use MCX to build the mdl file I don't use it for placement which means I can't set that value unless I use the placement tool. . .I need to see what I'm placing and where. Placement in the way MCX does it seems random at best, like taking a push pin and sticking it on a map where you think an object should be. So it appears that unless I can figure out why IS3 suppresses the autogen I'm stuck with filling those areas with vegetation objects rather than seasonal vegetation.
 
or decompile the IS3 .bgl with Bgl2Xml and add the <NoAutogenSuppression/> tag in the XML and recompile with Bglcomp.


<SceneryObject
lat="40.701449252665"
lon="-74.0112291276455"
alt="500.0M"
altitudeIsAgl="TRUE"
pitch="0"
bank="0"
heading="104.996337890625"
imageComplexity="NORMAL">
<NoAutogenSuppression/>
<LibraryObject
name="{3f2ed2d1-c593-46b2-9627-289bab40e80f}"
scale="1.00"
/>
</SceneryObject>
 
Just decompiled the IS3 placement bgl and <NoAutogenSuppression/> is there on every object. None the less those objects still kill the autogen.
 
that's odd.
Well, try this, get the Lat/Lon/altitude/heading from that XML file and use it in MCX placement dialog. Set the NoAutogenSuppression to 'true' and export a scenery .BGL file. See if this works any better. remember to remove the .bgl that you saved when placing the object through IS3.
 
that's odd.
Well, try this, get the Lat/Lon/altitude/heading from that XML file and use it in MCX placement dialog. Set the NoAutogenSuppression to 'true' and export a scenery .BGL file. See if this works any better. remember to remove the .bgl that you saved when placing the object through IS3.
That works, thanks! Only problem I see, other than being one royal PITA to do 40 or 50 objects this way is that despite using the Lat/Lon/Heading info from the IS3 placement bgl, the object I placed is about 50' from where it should be. I don't know if this proves my argument that the <NoAutogenSuppression> tag in IS3 doesn't work correctly, or if there's still something else interfering with it. . .what. . .I have no idea. Anyway, I know now that this works and for a few objects it would be fine, but doing more than that. . .I doubt it.
 
Try compiling the xml directly with BglComp, IS3 uses its own compiler.
 
Here's a kicker. . . .In an effort to try anything once, just to see if I get a different outcome, I removed all the agn files from the scenery folder. I then placed one object with Instant Scenery 3, marked it to allow autogen under the object and saved the flight. I closed the sim, added the agn files back into the scenery folder and loaded the flight again. This time there was autogen vegetation right up against the building. I can't say it has allowed all of the trees that were there before I placed the object, however the fact that there are trees right up against the building now shows a marked improvement. I will again remove the agn files and continue to place the remaining objects. Once all the objects I plan to introduce are there then I'll replace the autogen files and see if in fact this method allows the autogen to populate closer to the objects.

My thinking on this was that since I originally placed all the autogen vegetation prior to setting the objects in place and then tagging them to allow autogen, that possibly that kept the "NoAutogenSuppression" tag from having the desired effect. By setting the objects first, tagging them and then introducing the autogen, it somehow allowed the autogen to show through. Convoluted I know, but nothing else has worked, so I'm taking any measure that even remotely sounds feasible.
 
Just to quickly update. . . .this has, in fact, corrected the problem of autogen being suppressed despite the "NoAutogenSuppression" tag being present in the xml file. Maybe someone with more brain cells than mine can make sense of why that is, but to verify, I loaded the sim, the autogen was still close to the object I placed last evening and I then loaded Instant Scenery 3. In the past when doing this, once IS3 loaded the placement file for the objects, the remaining autogen would appear. . .this time there was no change in the amount of autogen vegetation displayed, so nothing was being suppressed. Very odd, but thankful it works, for whatever reason, lol
 
Hi Ed:

That seems like a valid rationale for performing more tests as you described, especially considering the ongoing and valid concerns you've had with how IS3 appears to be working in your current and prior test scenarios, and considering your described workflow with autogen annotation.

Nice troubleshooting idea ! ;)


Since IS3 stores all the possible placement info it can inside the BGL via its proprietary BGL compiler (functionally similar overall, but distinct from the FS SDK BGLComp compiler), and since IS3 does also exercise "control" over display of BGLs it 'knows the location of' after having created / edited such BGLs, IS3 likely maintains additional info required for operation ...elsewhere outside the BGL.

It is possible that depending on one's personal workflow "sequence" in which one adds / edits autogen scenery object content 'placement' via either autogen-type *.XML or *an.agn files inside a \Texture folder locally paired with the \Scenery folder containing one's placement BGL(s) created / edited / controlled by IS3, ones workflow might ultimately require IS3 to do a ex: "complete" (rather than 'partial' update) type of re-index for a external database utilized by the IS3 OpenGL scenery object display engine ...each and every time FS / P3D is re-started.

One might wonder if IS3 may need to add an option in its GUI to allow end users to manually "Force a complete re-index" ...for a (presumed) hidden external database utilized by the IS3 OpenGL scenery object display engine ...the next time FS / P3D is re-started. :scratchch


I'll look forward to reading your further posts reporting how this test turns out for your scenery project. :)

[EDITED]

PS: Looks like our posts crossed on the server; congratulations on finding your workaround ! :D

[END_EDIT]


GaryGB
 
Last edited:
My guess is you had "keep autogen under object" ticked for some of your placements but not all of them. When you decompiled to XML you found a few occurrences of <NoAutogenSuppression/> and assumed you were covered. Every object in the .bgl needs that tag.

A better solution IMHO:
Place the objects, don't worry about the autogen checkbox. Decompile with Bgl2Xml, replace every occurrence of imageComplexity="NORMAL"> with imageComplexity="NORMAL"><NoAutogenSuppression/> using good ole Notepad. (if you already have some placements with the tag replace <NoAutogenSuppression/><NoAutogenSuppression/> with simply <NoAutogenSuppression/> after the first replace routine.) Save, then drag/drop the XML on bglcomp.exe when you're done. Move the resulting .bgl into the scenery folder. You've just added the tag to every placement in the .bgl in 30 seconds and you can forget about ticking that stupid box every time (and forgetting to do so half the time).

Additionally you now have a P3D2 native placement compiled with the SDK supplied compiler rather than the proprietary IS compiler (which actually compiles an FS9 native placement). Yes I know it works fine but it's like having JC Whitney pistons in your Harley. :)

EDIT: Oh, and if your autogen is truly in the scenery folder try making a texture folder and moving them there, the scenery folder is kind of a non-standard place for .agn files.
 
My guess is you had "keep autogen under object" ticked for some of your placements but not all of them. When you decompiled to XML you found a few occurrences of <NoAutogenSuppression/> and assumed you were covered. Every object in the .bgl needs that tag.
Actually that's incorrect. Because this has been a recurring problem for several years, with every scenery I do, I went slowly through every line entry in the xml file checking the object and the suppression tag. Since I had only placed about 10 objects that was relatively easy to check. All objects had been tagged with the <NoAutogenSuppression> tag.

A better solution IMHO:
Place the objects, don't worry about the autogen checkbox. Decompile with Bgl2Xml, replace every occurrence of imageComplexity="NORMAL"> with imageComplexity="NORMAL"><NoAutogenSuppression/> using good ole Notepad. (if you already have some placements with the tag replace <NoAutogenSuppression/><NoAutogenSuppression/> with simply <NoAutogenSuppression/> after the first replace routine.) Save, then drag/drop the XML on bglcomp.exe when you're done. Move the resulting .bgl into the scenery folder. You've just added the tag to every placement in the .bgl in 30 seconds and you can forget about ticking that stupid box every time (and forgetting to do so half the time).
Good suggestion, but I think I'll stick with what I'm doing.

EDIT: Oh, and if your autogen is truly in the scenery folder try making a texture folder and moving them there, the scenery folder is kind of a non-standard place for .agn files.
That was a typo. Autogen files are always in the texture folder. . .thanks.
 
Back
Top