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!


Idea

IcemanFBW avatar image
IcemanFBW suggested cptalpdeniz commented

Create SimVars for accessing humidity and dewpoint environment data for an aircraft

The visual effects editor has just been added, and we are looking to add wing and engine condensation (pictured below) - however, these phenomena are dependent on temperature, humidity, dew point, and other aircraft data in order to calculate whether they should appear or not.


Currently, there are no simvars for retrieving the ambient humidity and dew point in the area immediately surrounding an aircraft. We would really appreciate if these were implemented.


1623113386998.png


1623113394813.png

aircraftsimconnectfx
1623113386998.png (687.3 KiB)
1623113394813.png (138.8 KiB)
10 |10000

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

9 Comments

·
Stardrifter avatar image
Stardrifter commented

Seconding this with another use case: I need to to calculate buoyancy in aerostats. With dewpoint alone we could calculate relative humidity. I wonder, is this simvar missing because the data isn't present? I admittedly don't know what all would be dependent upon it to know if that's a silly question.

10 |10000

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

Krazycolin avatar image
Krazycolin commented

We'd like to get this as well please.

10 |10000

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

Toneking avatar image
Toneking commented

Will be extremely useful when implemented!

10 |10000

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

tml avatar image
tml commented tml edited

In case it is more or less impossible to get that information from the sim, I wonder if there might exist some (suitable licensed) library (in C or C++, so that it could be incorporated into WASM) that could be used to "guesstimate" relative humidity based on temperature, pressure, altitude, time of day, time of year, and geographical region? Like "in Winter, the air over continental Canada is very dry" or "the air over the coast is typically quite humid in summer", or "when rain is falling, and you are inside the rain, the relative humidity is typically also quite large".

10 |10000

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

virtuali avatar image
virtuali commented virtuali edited

This might have been easier in previous simulators like FSX/P3D, when you could query the Weather and get a Metar report, which is the only way you could get the Dew Point from the sim, by decoding the Metar string so, all you needed was either write your own Metar-decoding routines, or use some existing library ( there are plenty to choose from, usually free ).

However, since all the Weather API has been deprecated in MSFS, this approach is no longer feasible, so there must be some other way to obtain that info, an adding a couple of Enviromental Simvars seems to be the most obvious choice.

However, considering the sim now has an in-game option to read the actual Metar available to users, I wonder why the Simconnect API is still deprecated: couldn't be just reinstated (at least the REQUEST API calls), and pass to the application the same data users can see when choosing the Metar option ?

10 |10000

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

IcemanFBW avatar image
IcemanFBW commented

I believe I hard somewhere that this will be coming in SU10+, can anyone confirm this?

10 |10000

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

MaVe_Creations avatar image
MaVe_Creations commented

Bump. Would like to make AI contrail lifetime dependent on humidity etc.

10 |10000

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

WombiiActual avatar image
WombiiActual commented

Would also be beneficial for scenerymakers to guesstimate visibility for things like approach light activation.

1 comment
10 |10000

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

cptalpdeniz avatar image cptalpdeniz commented ·
This is actually a great idea, even if it's day, a scenery package for example could have the lights turned on automatically depending on the environment variables like the OP suggested.
0 Likes 0 ·
cptalpdeniz avatar image
cptalpdeniz commented

A workaround for this would be requesting METAR of the current position/airport and do it according to that however this is obviously a workaround and would not yield correct results all the time.

10 |10000

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

Write a Comment

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

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.