Forums

Full Version: Time/Weather Options
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There should be an option to drive tracks with different weather conditions, such as Nuerburgring at night or rainy Monaco ect.
Dynamic daytime is planned.

I am not sure about the weather/rain. Don't know how to implement it realistically. :?
Aye. I see. What about if it was right after it rained or snowed?
open up vdrift/data/tracks/(your favorite track here)/surfaces.txt

in surfaces.txt, change the sections to reduce traction.

example:

Code:
[ ASPHALT ]

ID = 1
BumpWaveLength = 0.0
BumpAmplitude = 0.0
FrictionNonTread = 1.0
FrictionTread = 0.9
RollResistanceCoefficient = 1.0
RollingDrag = 0.0

becomes:

Code:
[ ASPHALT ]

ID = 1
BumpWaveLength = 0.0
BumpAmplitude = 0.0
FrictionNonTread = 0.7
FrictionTread = 0.6
RollResistanceCoefficient = 1.0
RollingDrag = 0.0

taking about 0.3 points away from every friction number feels like rain to me. also makes grass feel like mud.

i've been thinking about how to implement changing this automatically from the track selection screen.
maybe friction presets?
and then later on, we can add graphical effects to the track according to which weather preset you select. (rain falling, water spray from tires, mud spray, glossy asphalt).

the hardest part i see in that is implementing actual falling rain in the air.

snow would come later because that would require much more graphical work.
Sorry for mixing in an old thread again but can't you take some part of the rain and time code that is in Speed-Dreams/TORCS since they are open source? Those are pretty realistic. It doesn't look good but the change in handling is pretty close to what you expect on a wet road.
Is it a good base to build upon or implementing that is way to much work?
hmm, we could start doing it visually by implementing a composite skybox.

right now my vdrift data is hopelessy out of date. but if i were to get the latest (which is preferred now same old svn or git??). then do hand painted alpha on all the non-terrain parts of the skybox...

...then someone makes a clear-sky skybox (not that hard)...

...would we then have very rudimentary day/night/clear/cloudy support?

if this is desirable i'd be happy to do it. just a bit of a trudge through all the track skyboxes. my guess is, that if it messes with anyone's ip that we just revert that track...but maybe we just give the images new filenames like: composite_sybox.png. so if someone's ip feels infringed we just delete the derivative file.
zimluura Wrote:(which is preferred now same old svn or git??)
We still use svn for the data at the moment Smile
If someone needs testing of such feature I'm kinda open. I'll submit feedback as soon as I can. I usually visit the site every weekend.