Hello There, Guest! Login or Register


Weather
#1
Yo. We need weather!
  • Weather ID 1: Normal good weather
    [Image: 1_thumb.png]
  • Weather ID 2: Kindof dull, normal non-clouded weather
    [Image: 2_thumb.png]
  • Weather ID 3: Bright on the horizon, good weather
    [Image: 3_thumb.png]
  • Weather ID 4: Dull, on the edge of becoming misty
    [Image: 4_thumb.png]
  • Weather ID 5: Blue dull colour, probably for usage at sea. Some clouds on the horizon
    [Image: 5_thumb.png]
  • Weather ID 6: Blue doll colours, also for usage at sea.
    [Image: 6_thumb.png]
  • Weather ID 7: Dutch kind of weather, clouded but not raining
    [Image: 7_thumb.png]
  • Weather ID 8: Rain, quite bad (messes up sound)
    [Image: 8_thumb.png]
  • Weather ID 9: Quite intense fog (fucks up on ATI cards)
    [Image: 9_thumb.png]
  • Weather ID 10: Good weather, default in SA-MP
    [Image: 10_thumb.png]
  • Weather ID 11: Good weather, on the edge of becoming dull
    [Image: 11_thumb.png]
  • Weather ID 12: Clouded but bright, just before clearing up?
    [Image: 12_thumb.png]
  • Weather ID 13: Clear weather
    [Image: 13_thumb.png]
  • Weather ID 14: Clear weather
    [Image: 14_thumb.png]
  • Weather ID 15: Bit.. "down" weather
    [Image: 15_thumb.png]
  • Weather ID 16: Storming, worse than ID 8
    [Image: 16_thumb.png]
  • Weather ID 17: Very hot
    [Image: 17_thumb.png]
  • Weather ID 18: Very hot (preferred over 17, minor differences)
    [Image: 18_thumb.png]
  • Weather ID 19: Sandstorm for in the deserts
    [Image: 19_thumb.png]

Now, in order to control this it'd be cool to have an automated climate system. Using a yet-to-be-developed aglorithm we'll decide what kind of weather needs to take place at which position. Thunderstorms over Las Venturas and good weather in San Fierro at the same time, that's kindof cool. In order to achieve this, I think it's a good idea to devide the map of San Andreas in ~36 area's, each about 1000x1000 units in size.

I've requested an additional time parameter for MTA's setWeatherBlended, combined with this aglorithm it would create really cool results. On top of that, we could have weather reports on the website, possible even forecasts (cache 5 weather-states and update once every 3, 4 minutes, that would allow us to give 20 minute forecasts). The problem is, we need an aglorithm. I'll be playing with it myself, if anyone has any idea's or suggestions on how to create a system like this, please post.

Requirements:
  • Relational weather times: If zone A is totally sunny, there cannot be thunderstorms in zone B.
  • Climate definition: Hot weathers need to occur (way) more often than rain.
  • Preferably using a matrix (WeatherTypes [zoneX][zoneY] ?)
Reply
#2
has there been any work on this? seems like this would be fun to make.
Reply
#3
We have been thinking of a very complicated weather system using different weather type areas moving over the map. We'll have to decide if we first want to build a standard, basic weather controller to first have the gamemode running (which i think is quite important at this point) or if we want to start building this complicated weather algorithm. I'd like to ask Peter to make a decision in this, he's the one eventually building this algorithm.
Reply
#4
I don't know if someone knows about Perlin noise, it's an algorithm to create fluent noise, excellent for a realistic weather system.
[Image: woodgrain.gif]

I don't know how you can create a "shifting" pattern which continues to generate schemes based on the previous pattern, but it might be interesting to look into. This page has some basic information :)

(slightly offtopic; it would be awesome, if the reports ever return, to include a "weather forecast" in it :D people will probably like that)
Peter already said that, I should learn to read :P
Reply
#5
Very nice, Chillosophy. I've been researching a bit and playing around a bit with an existing Perlin class and this is the result, which I think might be pretty useful for the weather system: http://badeend.sa-mp.nl/weather/
Reply
#6
A first version of this weather system is now running on the regulars server. SA-MP doesn't really support weather blending and although the weather changes are as smooth as possible, sometimes the changes are a bit 'hard'. I think this is the best we can get in SA-MP.
Reply
#7
Pretty nice system. As you already stated it would be impossible to get it perfect in SA-MP, but that sequence you are using in the regular server is niceĀ  8)
Reply
#8
Little note: The weather system is now also running on the main server.
Reply