Fr. Bill wrote on Apr 2
nd, 2010 at 3:23pm:
Read the SDK...
You need to create and/or edit an .xml placement file then use that to compile your scenery .mdl into a scenery .bgl file.
. . . using BGLComp, which is the compiler you get from the Scenery SDK found
here.
Place "bglcomp.exe" and "bglcomp.xsd" in the same location as your exported MDL from Gmax. It's very handy here to have both MDLCommander and MiddleMan set up. Export to Scenery MDL, which SHOULD give you both an MDL as well as an XML file of the same name in the location you specified.
Open the XML file. You should see something like:
Code:<?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">
<!-- Sample object placement. Remove comment markers to place object east of 34R at Sea Tac. -->
<!--
<SceneryObject lat="47 25.89" lon="-122 18.43" alt="0" pitch="0" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
<LibraryObject name="3C7322D14629319198FFC6A823AB59BB" scale="1.0" />
</SceneryObject>
-->
<!-- Inclusion of model data. Use the 'Name' of this object to place -->
<!-- it in other locations. -->
<ModelData name="3C7322D14629319198FFC6A823AB59BB" sourceFile="Fan_Moving.mdl" />
</FSData>
Find all instances of <!-- phrases so you can REMOVE them. This is important. The compiler won't work, otherwise. You must also remove all text that is inside the <!-- sections.
Now you must edit the variable info. Find the correct Lat/Long for the object, and all other pertinent information. The XML file gives you a list. DO NOT edit the LibraryObject name!
Now save the file and exit. In the folder where you have BGLComp.exe drag the XML file and drop it on the EXE file. That should compile the XML and MDL into a BGL.
This is the simplified version. If you want to add in weather or time variables, I can tell you about that later.