FSX bglcomp.exe is not working

#1
I am trying to make an exclusion rectangle to exclude non-autogen objects. I tried to code an XML code, here it is:

<ExclusionRectangle
latitudeMinimum = "S27.4"
latitudeMaximum = "S26.3"
longitudeMinimum = "W109.5"
longitudeMaximum = "W107.5"
excludeAllObjects = "TRUE"/>

For somewhat when I drag the XML into bglcomp.exe nothing happens. What am I doing wrong?
 
#2
There are errors in your XML code. Below is an exclusion rectangle that does compile.

<?xml version="1.0" encoding="utf-8"?>
<FSData version="9.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="bglcomp.xsd">
<ExclusionRectangle
latitudeMinimum="N30* 32.13'"
latitudeMaximum="N30* 32.18'"
longitudeMinimum="W91* 9.56'"
longitudeMaximum="W91* 9.49'"
excludeAllObjects="TRUE">
</ExclusionRectangle>
</FSData>

Hope this helps.
Ed
 
#3
There are errors in your XML code. Below is an exclusion rectangle that does compile.

<?xml version="1.0" encoding="utf-8"?>
<FSData version="9.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="bglcomp.xsd">
<ExclusionRectangle
latitudeMinimum="N30* 32.13'"
latitudeMaximum="N30* 32.18'"
longitudeMinimum="W91* 9.56'"
longitudeMaximum="W91* 9.49'"
excludeAllObjects="TRUE">
</ExclusionRectangle>
</FSData>

Hope this helps.
Ed
I tried this and I corrected the coordinates, but still nothing happens
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#4
Try to compile from the command prompt to see which feedback bglcomp gives you. There's probably an error message there.
 
#6
Hello:

The "non-airport-specific" scenery library objects on Easter Island (Isla De Pascua) ICAO: SCIP are FS SDK BGLComp XML-type

placed by:

[FSX install path]\Scenery\0205\scenery\OBX18410.bgl


sourced from:

[FSX install path]\Scenery\Global\scenery\airport_objects.bgl

...and:

[FSX install path]\Scenery\Global\scenery\landmark.bgl


as seen in FSX default - with Instant Scenery 3 (aka "IS3") with the IS3 "Labels" feature displaying BGLComp XML-type:

* Objects

*Generic Buildings

* Exclusions

...from all such BGLComp XML-type BGLs installed / 'active' in Area layers of the FSX Scenery Library



This example BGLComp-type XML Exclude rectangle covering the entire island should eliminate display of ONLY those objects: :idea:

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Created by Scenery Design Engine (SDE) on 12/11/2015 -->
<FSData
   version="9.0"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:noNamespaceSchemaLocation="bglcomp.xsd">
   <ExclusionRectangle
      latitudeMinimum="-27.2038402408361"
      latitudeMaximum="-27.0564897358418"
      longitudeMinimum="-109.458533227444"
      longitudeMaximum="-109.227010756731"
      excludeAllObjects="FALSE"
      excludeGenericBuildingObjects="TRUE"
      excludeLibraryObjects="TRUE"
      />
</FSData>

NOTE: The above XML code example is de-compiled from a BGLComp-type XML "Objects & Buildings" Exclude rectangle made via IS3


Alternatively, one may a place a small BGLComp-type XML Exclude rectangle under each 3D object base, making sure that one has surrounded the entire base of the object to ensure one has intercepted its 3D datum placement Reference Point (aka "RefPoint"). :pushpin:


FYI: Rather than excluding ALL objects, one can instead specify ONLY 'certain' BGLComp-type objects to be excluded:

https://msdn.microsoft.com/en-us/library/cc526978.aspx#ExclusionRectangle



BTW: 1 other object at SCIP associated with the VOR:

sco_gen_vorsmall2dme {C0B537C3-808A-48BA- 8EFF-E1CA1A872E84}



...is placed via a 'different' BGLComp-type XML method as a 'visual model' for an airport-specific "non-scenery library" object <...in SCIP 'airport' code ?>, but still appears to be excluded by the above Exclude Rectangle parameter values :scratchch




A visual guide to the default FSX BGLComp-type XML scenery library objects is here:

http://lc0277.gratisim.fr/sceneobjects/


PS: Info on Instant Scenery 3 (aka "IS3") is here: http://www.flight1.com/products.asp?product=iscen3


Hope this helps ! :)

GaryGB
 

Attachments

Last edited:
#7
Thank you a lot Gary! This solved the problem and just made me go back on with the work! Thanks for the time you spent to help me, this world needs more people like you! :)
 
Top