
Introduction
Like all scenery placement in the Flight Simulator world, effects placement is now handled via
an XML file and BGLComp. BGLComp is a tool that will parse an XML stream and extract
relevant data such as Latitude and Longitude and create a placement file (BGL file) that will
place an object or effect in the Flight Simulator world. In order to successfully use this SDK,
you must download and understand the BGLComp SDK.
For this SDK, we will place a small forest fire near Seattle. Before you can place the effect,
make sure it is copied to the correct directory in Flight Simulator. Copy the included
fx_ForestFire.fx file from the Special_Effects_samples folder to your local Flight Simulator
effects folder (…\Flight Simulator 9\effects).
Note: In Flight Simulator 2004 some special effects such as smoke and haze will be rendered
behind clouds regardless of their actual relative location. This is a known issue.
Placing an Effect
The Effects_placement folder contains one XML file required for this tutorial: ForestFire.XML.
PLEASE NOTE: Placing an effect requires BGLComp.exe and BGLComp.xsd. These are
located in the BGLComp SDK. If you have not already downloaded and read the BGLComp
SDK, please do so now. Copy BGLComp.exe and BGLComp.xsd into the Effects_placement
folder next to the ForestFire.XML.
The BGLComp.exe application allows you to place an effect in the Flight Simulator 2004 world.
BGLComp requires an XML file in order to place an effect. Open the included ForestFire.XML
file with Notepad or another text editor. Its content should look like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<FSData version="9.0" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:noNamespaceSchemaLocation="bglcomp.xsd">
<SceneryObject lat="47.405" lon="-122.136" alt="0" pitch="0" bank="0"
heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
<Effect effectName="fx_ForestFire" />
</SceneryObject>
</FSData>
The only XML parameters that we will be dealing with are those located within the
SceneryObject tag and those within the Effect tag. Here is what each of the parameters means:
In the SceneryObject section:
• lat= The latitude where you want to place the effect. This can be in decimal degrees (as
it is above) or degrees minutes seconds (N47 24.32).