SHO Weather Generator: Difference between revisions
Line 14: | Line 14: | ||
** The algorithm could be extracted, ported, and put inside another program to enable seamless weather scenarios in-game | ** The algorithm could be extracted, ported, and put inside another program to enable seamless weather scenarios in-game | ||
*** For example, maybe one day the algorithm is included as a DLL with the Crew Chief GTR2 Enhancements Plugin which transparently and seamlessly generates a weather scenario when you load into a track | *** For example, maybe one day the algorithm is included as a DLL with the Crew Chief GTR2 Enhancements Plugin which transparently and seamlessly generates a weather scenario when you load into a track | ||
'''Related:''' | |||
* See [[Weather_Data#Racing_Circuits_Real_Weather_Data|Racing Circuits Real Weather Data]] for the data that this generator consumes | |||
* See the [[Modernizing_GTR2_with_the_Crew_Chief_GTR2_Enhancements_Plugin#Real_Weather|Crew Chief GTR2 Enhancements Plugin Real Weather]] feature that uses the weather files produced by this generator to power real weather scenarios in GTR2 | |||
== Download == | == Download == |
Revision as of 19:35, 6 October 2024
Description
- PHP script that produces quasi-realistic weather scenarios from real weather data
- Uses sqlite databases populated with OpenWeatherMap.org real weather data
- Produces weather scenarios based on probabilities derived from real weather data metrics
- Supports weather parameters like Conditions (Sunny, Cloudy, Overcast, Rainy, Storm), Ambient Temperature, Track Temperature, and Track On/Off Path Initial Wetness
- Outputs real-time and slots-based weather scenarios generated from templates
- Fast and scalable:
- A single weather scenario can be generated in less than 100ms covering 7 distinct weather sessions and each containing up to 24 hours worth of weather progression.
- On an i7 2600 32GB RAM with SSDs, it takes:
- ~5min to generate weather for ~100 tracks x 12 months x realtime and 10/15/20/30/60/120min slots distinct outputs x 10 weather scenarios.
- ~26min for ~ x 100 weather scenarios
- ~5h for ~ x 1000 weather scenarios
- The algorithm could be extracted, ported, and put inside another program to enable seamless weather scenarios in-game
- For example, maybe one day the algorithm is included as a DLL with the Crew Chief GTR2 Enhancements Plugin which transparently and seamlessly generates a weather scenario when you load into a track
Related:
- See Racing Circuits Real Weather Data for the data that this generator consumes
- See the Crew Chief GTR2 Enhancements Plugin Real Weather feature that uses the weather files produced by this generator to power real weather scenarios in GTR2
Download
Getting Started
- See README.txt in the download
Sim Support
- Supported:
- Future:
- Since output files are generated from templates, the code could be updated to support other file formats
- The algorithm and data could be included in other software directly
What does SHO stand for?
SHO is the first three letters of my username (Shovas) but also happens to be an acronym used by Ford, which stands for "Super High Output", so I feel it's an appropriately fun acronym for a sim racing mod :)
License
SHO Weather Generator © 2024 by Shovas is licensed under Creative Commons Attribution-NonCommercial 4.0 International. This license requires that users give credit to the creator. It allows users to distribute, remix, adapt, and build upon the material in any medium or format, for noncommercial purposes only.
View the full license here: http://creativecommons.org/licenses/by-nc/4.0/
You don't have to ask permission for legitimate uses. You just have to give credit.
I think this provides clarity and is a nice compromise that maintains modding freedom while protecting the people that made them from losing credit to their work and against people who would cut out authors from profit from copying it.