• 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.

Weather: Request Cloud State

Messages
2
Country
us-newyork
Has anyone successfully used the "SimConnect_WeatherRequestCloudState" API and corresponding response "SIMCONNECT_RECV_ID_CLOUD_STATE"?

I have gotten packets returned from FSX but they don't seem to be in the format I would expect from reading the SDK. Specifically:

1. Each byte of the returned array is either all 0x00 or 0xFF. There is no gradient for cloud intensities.
2. The byte array returned doesn't seem to correlate to the out-the-window scene.

I have tried all sorts of different parameters for the request call, many different types of cloud settings as well as flying around through the clouds. I must be doing something wrong.

Thanks in advance.

- Kevin
 
Hello friends.

I tried everything to get the power status of the cloud around the aircraft to create a StormScope, but so far without success.
Below is the code, everything works normally step around the range and altitude of the aircraft of the same, but the array of 64x64 rgbData always been zero. I do not know what else to do. Any hint or help will be very grateful. My little one StormScope project is stopped because of it. After all have any other way to get the status of the clouds by FSUIPC or other library?
I need help from friends.

//----------------------------------------------------------

case SIMCONNECT_RECV_ID_CLOUD_STATE:
{
SIMCONNECT_RECV_CLOUD_STATE* pWxData = (SIMCONNECT_RECV_CLOUD_STATE*) pData;

printf("%d\n", pWxData->dwArraySize); // OK. Returns 4096 = 64x64

for (int x=0; x < pWxData->dwArraySize; x++ )
{
if ( pWxData->rgbData[x] != 0 )
{
printf("pos:%d, val:%d :]\n", x, pWxData->rgbData[x]);
}
}
break;
}
 
Back
Top