Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
Adding an element to data for Bgl_comp (Read 120 times)
Oct 18th, 2004 at 4:53pm

mauricegambles   Offline
Colonel

Posts: 23
*****
 
I have eventually managed to produce a bgl file for a windsock, by dropping the appropriate text file into the Bglcomp exe file. What I need to kbow now is how to add a parameter to this file i.e. change the colour of a windsock pole.

the text file reads:-

<?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="N56 27.7100" lon="W5 24.3200" alt="06" pitch="0" bank="0" heading="0" imageComplexity="SPARSE">

<Windsock
poleHeight="13.5"
sockLength="10.5"
lighted="TRUE">

<!--windsock data-->

</Windsock>

</SceneryObject>
</FSData>

The specified data to change the pole color reads:-

<PoleColor
red=”128”
blue=”128”
green=”128”/>

Does anyone know where in the text file this should be placed to make it work? I seem to have tried all combinations without success. The instructions with Bglcomp do not seem to help
 
IP Logged
 
Reply #1 - Oct 18th, 2004 at 5:15pm
RollerBall   Ex Member

 
Hi maurice, here's the general format for a windsock.

Try playing around with this.

<?xml version="1.0"?>
<FSData
version="9.0"
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:noNamespaceSchemaLocation="bglcomp.xsd">

  <SceneryObject
    lat="42.6286"
    lon="-88.5999"
    alt="0"
    altitudeIsAgl="TRUE"
    pitch="0"
    bank="0"
    heading="0"
    imageComplexity="NORMAL">

    <Windsock
     poleHeight="5.5"
     sockLength="3.5"
     lighted="TRUE">

     <PoleColor red="128" blue="128"
green="128"/>
     <SockColor red="255" blue="128"
green="128"/>

    </Windsock>

</SceneryObject>
</FSData>
 
IP Logged
 
Reply #2 - Oct 18th, 2004 at 6:03pm

mauricegambles   Offline
Colonel

Posts: 23
*****
 
Brilliant!... and you don't even need to put in the altitude.

Thanks a lot!
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print