MapView fsMapViewSetWeatherRadarConeAngleInRadians sometimes not working

This is probably going to be a long shot as it’s not reproducible on demand, but… I’ll ask anyway - perhaps some kind soul can figure it out anyway.

Namely,

fsMapViewSetWeatherRadarConeAngleInRadians sometimes reverts to 360 degrees even though we set it with

FsMapViewSetWeatherRadarConeAngleInRadians(… , DEG2RAD * (179.90));

(we were originally using 180 deg, or even PI but both exhibit the same issue).

I would say it works 99.9% of the time, but the 0.1% is really distracting to everyone…

(users can also tell that it fails because when set to 180 deg, the radar does a back-and-forth sweep, but when it fails, it only sweeps one way).

I am not sure if you can detect anything in the code, but if you can, it’d be super perfect to fix this problem, as we can’t really do much about it other than to tell our customers “it’s not us”.

Hello
I’m taking a look at this issue, and I need more information if possible :

  • What are the other parameter of the radar (cone rate, stabilisation, …) ?
  • What is the graphic preset used for the repro, does it impact how the swipe is computed ?
  • Does the line swap when it’s in the bottom of the screen, teleports from one side to another, or is the swipe continuous ?
  • When the bug occurs, does the swipe in the bottom of the screen keep updating, or does the swipe occurs one time ?

Best Regards,
Edalyn

Hello Edalyn,

parameters are:

fsMapViewSetVisibility(context, texture_id, true);
fsMapViewSetViewMode(context, texture_id, FS_MAP_VIEW_MODE_ALTITUDE);
fsMapViewSet3D(context, texture_id, false);
fsMapViewSet2DViewFollowMode(context, texture_id, true);
fsMapViewSet2DViewRadiusInMeters(context, texture_id, 40 * 1852 );
fsMapViewSetWeatherRadarVisibility(context, texture_id, true);
fsMapViewSetWeatherRadarMode(context, texture_id, FS_MAP_VIEW_WEATHER_RADAR_MODE_HORIZONTAL);
fsMapViewSetWeatherRadarConeAngleInRadians(context, texture_id, DEG2RAD * (179.90));
fsMapViewSetBackgroundColor(context, texture_id, 0, 0, 0, 0);

The swipe is continuous (it’s supposed to be from side to side, not one-sided, as the cone angle is 180 deg)

Hope that helps!

2 Likes

Hello,

Even with the parameters, I don’t manage to reproduce or to understand why it can happens. Can you give us the package name that the user uses to reproduce ? Or can you send us the package to reproduce via Private content (you can find in section 3 of this page how to do so) ?

Thanks,
Edalyn

Hi Edalyn,

if only it were so easy. This only appears randomly and rarely - but when it does, it doesn’t respect the settings at all.

Just set up a sample wasm and it should happen for you eventually - our package is way too large to be relevant in this scenario and I doubt it will cause it for you either, as it only happens as I said randomly and very rarely.

Others have reported same, however, so it’s not us causing it…

@esoriaAsobo

Hello,

I am coming back to this as it doesn’t seem to be solved with latest version - were you possibly able to reproduce the issue, Edalyn?