Page MenuHomeFeedback Tracker

GetWind() Vector Doesn't Appear to Match Cloud/Rain Movement...
Closed, ResolvedPublic

Description

In game I can clearly see the clouds/rain are moving from the West to the East, yet GetWind() returns a vector[-10, 0, 0] indicating movement from the East to the West at -10 msp. Furthermore, monitoring numerous GetWind() outputs at varying weather conditions does not indicate any correlation between the movement of the clouds/rain and the vector GetWind() returns ... which is very perplexing. This brings me to the conclusion that there is NO direct correlation between the apparent 'in game' movement of the clouds/wind (i.e. they are moving to the East at 10 mps) and the vector returned by GetWind (i.e. vector[-10, 0, 0].

If this is NOT the case then how does one properly apply a wind vector to a movement vector (e.g. movement_vector = parachute_movement_vector[0,-5,0] + wind_vector[-10, 0, 0]).

If not, then when can this be slated for correction?

Details

Severity
Feature
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
Windows 10 x64 Pro with all the latest updates applied.
Category
Visual-Environment
Steps To Reproduce

Create a script that outputs weather information and compare those outputs in real-time to the movement of the clouds and rain while 'In Game'.

Additional Information

I'm working on updates to the Airdrop mod (available on Steam) and though adding the GetWind() vector DOES apply sideways movement to the descending parachute it does NOT correspond with the current 'In Game' weather conditions. Perhaps the vector needs to be inverted or rotated (as when you are converting an ATAN2(Z, X) into a bearing/heading).

Event Timeline

digiacomtech renamed this task from GetWind() Vector does not appear to match cloud or rain movement... to GetWind() Vector Doesn't Appear to Match Cloud/Rain Movement....
digiacomtech edited Additional Information. (Show Details)
digiacomtech added a comment.EditedAug 31 2019, 7:56 PM

After some testing I get the following results...

Wind Vector < -6.313,  19.647> Speed 20.637 mps Apparent 105°
Wind Vector < -9.271,  -9.653> Speed 13.385 mps Apparent 105°
Wind Vector < -2.931,  20.138> Speed 20.350 mps Apparent 110°
Wind Vector <  9.563, -12.598> Speed 15.817 mps Apparent 105°
Wind Vector < 16.246,  -4.712> Speed 16.916 mps Apparent 105°
Wind Vector <-11.981,  -3.542> Speed 12.494 mps Apparent  90°
Wind Vector <  5.589,   6.742> Speed  8.758 mps Apparent 100°
Wind Vector <  6.638,  -2.294> Speed  7.023 mps Apparent 105°

Here are 8 readings taken approximately 5 minutes apart, in each case we provide the wind vector & speed and the apparent wind heading based on the direction/movement of the clouds ... however the wind vector readings do not even come close to the apparent wind direction.

This link provided (below) indicates the wind readings above. the Red dots are the various wind vector readings and the Blue area represents the apparent wind direction taken from the (in game) cloud movement.

Winds Data Chart for Above Data

Would really appreciate it if you could either explain this or correct it.

digiacomtech changed Category from General to Visual-Environment.Sep 4 2019, 4:14 AM

@Geez ... Any chance you can take a look at this?

Hi,

please do not subscribe other people to tickets by force. You sent notifications to all people that are on the feedback tracker and in any of the DayZ X groups.

Your ticket will be reviewed once the time for it has come. Tagging Geez directly as well now won't speed up the process.

Arkensor removed a subscriber: Arkensor.Sep 4 2019, 8:26 AM

Please someone at BI disallow the ability to subscribe groups to tickets.

GrosTon1 removed a subscriber: GrosTon1.Sep 4 2019, 9:49 AM
Geez changed the task status from New to Assigned.Sep 4 2019, 11:16 AM
Geez closed this task as Resolved.Sep 4 2019, 3:54 PM
Geez claimed this task.
Geez removed subscribers: DayZ Xbox, DayZ PS4 , DayZ Modding, DayZ.
Geez added a subscriber: GrosTon1.

Hello digiacomtech.
The weather and environment corresponds correctly to the wind direction and speed. The issue is only with the clouds moving in an incorrect direction. We are aware of this issue and it is scheduled for a fix.
Regards,
Geez

Please someone at BI disallow the ability to subscribe groups to tickets.

Thank you for notifying us, we have disabled the option to add subscribers when creating tickets for now, and are going to see if it is possible to exclude just the groups.

Geez removed a subscriber: GrosTon1.Sep 4 2019, 3:56 PM
digiacomtech added a comment.EditedSep 4 2019, 6:56 PM

Thank you for the fast response and sorry if I did something wrong ... didn't realize that I could subscribe anyone to this ticket by creating a post to @ Geez .

However, your response does not make sense. That is, based on the data I have been collecting it appears the GetWind() function is NOT returning accurate/correct information (see the data and chart posted above). Though the wind vector may not currently control/match the apparent movement of the clouds/rain ... I would still expect the wind vector (i.e. it's speed and heading) to change gradually over time (similar to other weather features) ... vs. wildly changing direction by as much as 180° over 5 minutes ... as represented by the recorded data and chart provided (red vectors).

Perhaps, the GetWind() vector is returning the current wind forecast vs. the current/stable wind vector. Perhaps we need a method that returns the current average vector that could then be used used to drive the rain, clouds, smoke, and eventually aircraft.

But as you say, this is already scheduled for correction. Hopefully this will correct the vector GetWind() provides and/or expose new functions/methods to obtain more/better wind information ... that can then be applied to other things in the environment (e.g. clouds, rain, smoke, & aircraft).

ThanX!

Geez added a comment.EditedSep 9 2019, 10:54 AM

Hello digiacomtech.

That is, based on the data I have been collecting it appears the GetWind() function is NOT returning accurate/correct information (see the data and chart posted above). Though the wind vector may not currently control/match the apparent movement of the clouds/rain ... I would still expect the wind vector (i.e. it's speed and heading) to change gradually over time (similar to other weather features) ... vs. wildly changing direction by as much as 180° over 5 minutes ...

You are able to change how quickly does the wind vector change the direction:

SetWindFunctionParams( float fnMin, float fnMax, float fnSpeed )
fnSpeed Controls speed of change of function value. - the lower it is, slower the changes of speed and direction will be, but ultimately, wind direction does change dynamically and it is possible for it to change by tens of degrees in minutes.

Regards,
Geez

digiacomtech added a comment.EditedSep 9 2019, 10:18 PM

Thank you for the response ... but I'm still unsure of the values returned by GetWind() as further testing shows inconsistent wind vectors based on smoke in the game.

That is, if I drop a smoke grenade, the smoke is blown in a specific direction by the wind, and that direction gradually change over time just as you indicated and as I would expect. However, when I apply the GetWind() vector to a descending object it does NOT move that object in the same direction as the smoke from a smoke grenade.

I have tried inverting the vector and swapping the X/Z values. But nothing I try matches the direction of the wind blown smoke in game in all cases. That is, I can get the descending crate to match the smoke when the wind is coming from the East but when the wind shifts to the North the movement does not match at all.

This is causing a great deal of confusion as I assume the vector returned by GetWind() is the same as that being applied to the particles emanating from the smoke grenade. Note that I am NOT trying to change/alter the current weather state at all ... I'm letting the existing code do that. All I'm trying to do is get the wind vector and apply it to an object descending under parachute.

I have attached my code ... look at AirdropContainerFall and GetWindDrift as this is where the wind vector is retrieved and applied to the descending crate ...

SetVelocity(this, Vector(winddrift[0], -m_Settings.Container.FallRate, winddrift[2]));

... perhaps you can tell me if I'm doing something wrong therein :S