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.


Here is finally the tweaked animated windsock that I posted about before. Thanks to Jorg for sharing his sources with us, as that gave me a good basis for the tweaking. And also thanks to Jon for optimizing the models (adding LODs, reducing amount of polygons) and for testing my the tweaks I had made.
In the attached ZIP file you will find two MDL objects. One is for the normal windsock and the other is for a windsock that is lighted at night (using the _LM texture). Apart from this difference, the two windsocks are the same. So both have three windspeed conditions (calm, medium and high wind). And they rotate with the wind direction.
Of course the bug that you need to place at least two of these is still there, as with any object that interacts with the wind.

<?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">
<!-- Gaines Field, Saturna -->
	
<!-- Windsock -->
<SceneryObject lat="48.7936211" lon="-123.1145783" alt="0" pitch="0" bank="0" heading="85" altitudeIsAgl="TRUE" imageComplexity="NORMAL">
   <LibraryObject name="443e616064a211dbbd130800200c9a66" scale="1.0"/>
</SceneryObject>
<ModelData name="443e616064a211dbbd130800200c9a66" sourceFile="windsock.mdl" />
</FSData>Noki,
Here's a typical XML placement file. Just ensure you have "windsock.mdl" in the same folder as this XML when you compile the XML with BGLCOMP.
Jon
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"> <!-- Gaines Field, Saturna --> <!-- Windsock --> <SceneryObject lat="48.7936211" lon="-123.1145783" alt="0" pitch="0" bank="0" heading="85" altitudeIsAgl="TRUE" imageComplexity="NORMAL"> <LibraryObject name="443e616064a211dbbd130800200c9a66" scale="1.0"/> </SceneryObject> <ModelData name="443e616064a211dbbd130800200c9a66" sourceFile="windsock.mdl" /> </FSData>

I tested 19 placements of the windsock, and found that all worked with a single object, rather than having to place 2. Under what conditions would two be needed?
 .
.Is the placement offset issue fixed in this version? I'd found that the object was placed 4.4m south of the given coordinates, although the gmax model is centred at 0,0,0.

Here's a typical XML placement file. Just ensure you have "windsock.mdl" in the same folder as this XML when you compile the XML with BGLCOMP.
 .
.

 .
.
When using the code Jon provided, please be sure that you use your own GUID. If everybody copies and uses this code (with the GUID) we can run into trouble.

Hi all.
I haven't read of a single instance of anyone having GUID duplication problems.
Dick


Hi all,
as promised here my windsock containing three MDL/XML-objects and one texture-file in DXT-format. Normal size would be about scale 0,2
Don´t forget to place 2 of them (in summary 6 objects!) Edited to make it clear.
I use Library Creator for the Library and SGX for the placement of the object. Makes life much easier.
Feel free to use the object in your own projects, feedback is welcome.
Jörg

How odd, David. In testing I placed them side by side with the default to ensure the direction was the same.

- Did you place the windsock with a heading of 0 degrees? That is needed to get the correct rotation.
- Which side of the world are you placing the windsock. I must say I only tested in the northern hemisphere.
