• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    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.

Default Windsock Pole Length and Color

Messages
86
Country
us-arkansas
IMO The default windsock is ok and serves it's purpose, but the pole is huge and looks bad.

I recently tried to set the default windsock's pole length to 0 or the color transparent. It seems ADE limits the windsock's pole length to a minimum of 1.0, and the color section in the windsock xml doesn't show an alpha channel. If I could get either of these things to work, it would allow me to model a pole with the length and color(s) I need and place it at a field, on top of a building, or wherever. The default windsock could be placed on top using the altitude setting. I would still be free to set the windsock color as well.

Thank you.
 
Last edited:
This is a picture of the default windsock sitting atop a black 3/4" x 10' pole. The altitude of the windsock is set to 10'. I think it would look great, but it just needs that small amount of the default pole that's required set transparent or length limit removed.

I do not know if the length limit is required by the compiler, hard coded into ADE for another reason, or both. Having the ability to set the default pole color to transparent would be another option.

Jon, can you advise?
 

Attachments

  • Windsock.jpg
    Windsock.jpg
    251.3 KB · Views: 383
  • windsock3.jpg
    windsock3.jpg
    184.1 KB · Views: 408
  • Windsock2.jpg
    Windsock2.jpg
    295.1 KB · Views: 364
Last edited:
I am away from my office at the moment so I will not be able to check until later this week.
 
The probem appears to be as set in the compiler. I used the RDV (Raw Data View) to set the length to a small number 0.1ft. The compiler threw it out

1532441380239.png


Sadly the schema for ctColor which is the definition of color for the pole and sock does not include transparency:

1532441783918.png


So ADE is providing properties in accordance with the SDK. There is no way to either reduce the pole length or make the pole transparent with SDK compliant source that is accepted by the compiler.
 
You are welcome - sorry not to have an answer - other than making your own
 
I was hoping for a workaround rather than creating an entire windsock from scratch requiring SODE. I'm curious as to how the default windsock was made, and if it can be reproduced. It responds quite well to the wind in the simulator, and of course allows you to change things like the color. It's too bad it wasn't coded to use RGBA instead of just RGB. I'll have to do some reading.

Anyway, I suppose that a question for the FSDeveloper forum instead of ADE support. I've already read their topics on windsocks, so I will most likely get the "use SODE" response.

Thanks again for your help Jon.
 
Hi Jack;

<Yup, I actually intended to "Hi-Jack" this thread ! :rotfl:>


Have you seen this recent discussion: :pushpin:

https://www.fsdeveloper.com/forum/t...-windsock-placement-shell.443203/#post-803045

IIUC, your posting history suggests you are developing for FSX and not P3D at this time, so SODE is not required for a true animated windsock that follows the wind direction in FSX.


Try using the animated windsock already available packaged as a scenery object library BGL inside: :idea:

British Columbia PNW Tofino by Mike Mann:

https://library.avsim.net/search.php?SearchTerm=tofinobases.zip&CatID=root&Go=Search

[tofinobases install path]\FSX BC PNW Tofino\BCPNWFloatBases\scenery\Windsock.bgl


Please review the discussion regarding the "Tofino" animated windsock scenery library object cited in this post:

https://www.fsdeveloper.com/forum/t...e-windsock-placement-shell.443203/post-803000

...as additionally explained in the linked thread in this post:

https://www.fsdeveloper.com/forum/t...e-windsock-placement-shell.443203/post-803009


FYI: If the "Tofino" Windsock Pole displays a Orange and White banded texture you may wish to try this 'work-around':

1.) Make a ZIP backup of the mapped texture for that object,.

2.) Make an exact same size (in total pixel Rows and Columns) copy of that texture.

3.) Edit a transparent attribute in another 24-Bit or 8-Bit gray-scale layer via a Alpha channel containing ex: pure Black (RGB 0,0,0) 'color' in the area of the Pole image UVW-mapped onto the Pole in the texture file.

4.) Edit a non-transparent attribute in that same 24-Bit or 8-Bit gray-scale layer via a Alpha channel containing pure White (RGB 255,255,255) in areas (if any) which are not UVW-mapped onto the Pole in the texture file.

5.) Substitute that edited copy under the exact original file name in the local paired \Texture folder for the \Scenery folder containing the copy of the "Tofino" animated windsock scenery library object that you wish to use for display at your airport ...without a 'visible' Pole.


NOTE: This process does not modify the MDL file and therefore requires no re-compilation of the MDL via the SDK.


Hope this idea may prove to be easier to implement than the non-required use of SODE for the FSX (not P3D) version of flight simulator. :)

GaryGB
 
Last edited:
Hi Gary

Actually, I am creating scenery for both FSX and P3D. The issue I'm having with the windsock is just a result of me trying to keep things as simple, and I hoped that either solution mentioned above could allow me to substitute a better pole model that default.

I really appreciate your input, and I may look into the solution you suggested. Also, thank you for listing step-by-step instructions!
 
Hi again, Jack:

I have not had the time to test any of the few recent "worked examples" for S.O.D.E. placement and display of the excellent S.O.D.E.-ready windsocks that Christian Bahr so kindly contributed to the FSDeveloper Resources section of this web site,

FYI: Since the ability of MDL files to directly access certain FS internal variables was removed beginning with the FSX MDL format, for both FSX and P3D, one must instead acces those variables via SimConnect and a specially written utility that communicates with SimConnect.

Thus a practical option is to learn how to utilize the S.O.D.E. method via some relatively simple XML code created in ex: NotePad++ ...rather than learning how to program such a special utility to communicate with SimConnect.

Please keep us informed as to your work-flow if you opt to use the SimConnect methods via S.O.D.E. as I believe the FS community could benefit from having some more "worked examples" of windsock placement via S.O.D.E. posted here.

GaryGB
 
Back
Top