plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

Please take a moment to read the platform’s guidelines before you get started!

question

WombiiActual avatar image
WombiiActual asked thealx answered

Weather variables and scenery models (AMBIENT VISIBILITY)

I'm not sure which category to post this under as it is associated with both sim variables and scenery design.

I am hoping to animate scenery depending on weather. Specifically, I want to have lead-in lights / running rabbits only enabled in bad weather and low visibility.

Looking at the simvars I can't really make sense of them:

AMBIENT VISIBILITY is supposed to give meters of visibility according to the docs. In live weather it gives values around 30 000-60 000. But in preset weather it specifically gives values between 112 000 and 138 600 only. Adjusting the weather sliders shows that the only slider that influences this variable is "Aerosol density". An aerosol density of 1 gives an AMBIENT VISIBILITY of 138 600 and density of 20 gives visibility value of 112 000. It is not related to actual visibility in any way. Why?

AMBIENT DENSITY gives a value of 0.0022453498095274 and nothing affects it. It's stuck at this value no matter the weather setting.

Are these variables working as intended, and if so, what is the intention? Is this a bug that should be reported?

Are there other ways to do scenery animation based on bad weather at the airport?

defaultsimconnectmodelingdocumentationanimation
10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

FlyingRaccoon avatar image
FlyingRaccoon answered

Hello.

Using the SimVarWatcher app from the SDK, I can see the AMBIENT DENSITY value changing as well, as I modify the aerosol density parameter

1626106245651.png

1626106257082.png

The ambient visibility only takes the aerosol density into account, it will not reflect the actual in game visibility that is also the result of cloud cover and precipitations.
We are looking into providing additional simvars for this.

Regards,
Sylvain


1626106245651.png (4.9 KiB)
1626106257082.png (4.9 KiB)
10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

thealx avatar image
thealx answered

For weather check you can also use AMBIENT PRECIP RATE, unit - millimeters of water

10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.