The online racing simulator
Improvements on wind code
(9 posts, started )
Improvements on wind code
Improvements on wind code

Now that LFS is getting more realistic with diff preload in patch X and additional physic updates in patch Y iirc, maybe it's time to look for a more realistic race environment.

Most of the times there is wind in real life, and yet if you join 95% of all the lfs servers, you won't see a server with wind on.
I think the main reason for the absence of wind on the servers is the unrealistic wind code. What do I mean with unrealistic? Well, these are the things I've discovered.
- Wind speed stays constant (wind speed changes in real life)
- Wind direction changes when you proceed to the next session, or when you do a restart. Maybe this randomness is a little bit overenthusiastic (in real life wind direction changes too, but not with 180 degrees, unless you're in the path of a tornado!)
- There's still wind from a certain direction, even though that the wind should be blocked by a huge building. So maybe making a track wind profile (places where there can't be any wind or where wind will gust through a tunnel (like a street)) might be a nice addition, but maybe a little bit too hard seeing as aerodynamics aren't really advanced in LFS.


Anyhow, I've stated the problem now, let's work on a solution.

Wind direction.
Create a random number from 0 to 3 (0 = north, 1 = east, etc.) and stick with that value for 24 hours. Create another random number from 0 to 89 to get the exact degrees which can change with each session change.
Example:
1st random number is 1, 2nd random number is 44. In this case the wind direction should be north-east. The good thing about this setup is that the direction of the wind can only change from east to north, which is only 90 degrees of possible difference instead of the 180 degrees that is possible now.
It would be nice if there would be a third random number from -8 to 7 (signed short) for use of a live degrees offset, so the wind direction changes a little bit during the sessions. You can also make an additional random number to get the amount of time when lfs needs to get a new offset number.

Wind Speed.
The code for getting a random number for the wind speed is already there, but it can be improved with a live offset that I described above.

Wind Aerodynamics.
This would be the last step to make the wind system very realistic, and it would also be the hardest one. Luckily there aren't many tracks in LFS, so maybe the devs could make this a priority when they're starting on making new tracks.






If all this is deemed too difficult, low priority or possibly even crazy, please look at this request.

Another request I think most people would like to have, is the ability to change the wind setting.
In this case the dev only needs to make the wind values visible to us, so we can change it to possibly real world values. What I mean by that is getting the wind direction and speed of Kyoto in Japan, and putting it in LFS.
The only thing this request requires are 2 additional buttons in the race settings screen and that the false start system gets it's random number somewhere else.



Anyhow, I hope you appreciate the ideas. I'm sure that the lfs realism junkies do
#2 - Dru
+1

the other question would be, how a bout a tweak so that the low wind setting is 0-10kph and high is 10-25kph

I remember doing a UF1 with a head wind of 48kph... that was HEAVY going
Well, I specified that in my 2nd (backup) request to specify an absolute value as wind speed.
Btw, uf1's + high wind is fun
#4 - Davo
+1, the wind needs a lot of work. I guess it'll come with aero improvements so hopefully soon.
+1
Quote from mikey_G :
- Wind speed stays constant (wind speed changes in real life)

I wish you like surprises: wind in LFS changes speed too it is very noticeable in F view.

ps. here is similat thread about wind
+1 for more realistic wind

that being said, i think that the fact that almost all servers run without wind has nothing to do with whether it is realistic or not. i think it's because of hot lapping. people don't want their PB's to be called into question. "that's fast, but you probably had a tail wind on the straight.."
+1 from here as well.

Not too realistic though, I wouldn't want my UF1 sucked into a hurricane in Fern Bay...
+1 for more dynamic weather.

But I think the wind direction changes a bit already. For example do donuts until your tyres starts to smoke, then watch the smoke trails changing direction with the wind.
Quote from Dru :+1I remember doing a UF1 with a head wind of 48kph... that was HEAVY going

UF1 speed record attempt in 48km/h headwind:

We've got 38km/h...43km/h...45km/h...47km/h.......50km/h! Oh, wait......that's...a dog! my dog just overtook me! :faint2:

Improvements on wind code
(9 posts, started )
FGED GREDG RDFGDR GSFDG